42 lines
1,013 B
C
42 lines
1,013 B
C
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
|
* Ghidra 12.1.2 decompiler output for 0x1400d34c0 FUN_1400d34c0
|
|
* Pseudocode, not original source. */
|
|
|
|
int FUN_1400d34c0(undefined8 *param_1,undefined8 *param_2)
|
|
|
|
{
|
|
void *_Buf2;
|
|
void *_Buf1;
|
|
uint uVar1;
|
|
int iVar2;
|
|
uint uVar3;
|
|
uint uVar4;
|
|
|
|
uVar3 = *(uint *)(param_1 + 1);
|
|
uVar4 = *(uint *)(param_2 + 1);
|
|
_Buf2 = (void *)*param_2;
|
|
_Buf1 = (void *)*param_1;
|
|
uVar1 = uVar4;
|
|
if (uVar3 < uVar4) {
|
|
uVar1 = uVar3;
|
|
}
|
|
iVar2 = memcmp(_Buf1,_Buf2,(ulonglong)uVar1);
|
|
if ((iVar2 == 0) && (uVar3 != uVar4)) {
|
|
if (uVar4 < uVar3) {
|
|
for (; uVar4 < uVar3; uVar4 = uVar4 + 1) {
|
|
if (*(char *)((ulonglong)uVar4 + (longlong)_Buf1) != '\0') {
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
for (; uVar3 < uVar4; uVar3 = uVar3 + 1) {
|
|
if (*(char *)((ulonglong)uVar3 + (longlong)_Buf2) != '\0') {
|
|
return -1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return iVar2;
|
|
}
|
|
|