Function at 0x5c0fd8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x44
mov ebx, edx
mov ecx, dword [0x6d3164]
mov edi, eax
test ecx, ecx
je 0x5c1106
mov eax, dword [0x6d3164]
test eax, eax
je 0x5c1106
push 0x718a00
call fcn.005e0700
add esp, 4
mov eax, dword [0x718a04]
test eax, eax
je 0x5c101a
xor esi, esi
jmp 0x5c1043
xor esi, esi
push esi
push esi
push str.FOR_DISABLE_KMP_MALLOC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
ja 0x5c102f
je 0x5c1039
mov dword [0x6d3164], 0
mov dword [0x718a04], 1
mov eax, 0x5c13a0
mov dword [ebp - 0x20], fcn.005c1390
mov dword [ebp - 0x1c], fcn.005c13b0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], fcn.005c1390
lea edx, [eax + 1]
mov dword [ebp - 0x10], fcn.005c13b0
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x5c1095
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
cmp eax, edx
je 0x5c1095
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x50]
cmp eax, edx
je 0x5c1095
mov dword [0x718a08], 1
mov dword [ebp - 0x38], fcn.005c13c0
mov dword [ebp - 0x34], fcn.005c13e0
mov dword [ebp - 0x30], fcn.005c1400
mov dword [ebp - 0x2c], fcn.005c13c0
mov dword [ebp - 0x28], fcn.005c13e0
mov dword [ebp - 0x24], fcn.005c1400
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
cmp eax, edx
je 0x5c10e7
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
cmp eax, edx
je 0x5c10e7
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
cmp eax, edx
je 0x5c10e7
mov dword [0x718a0c], 1
mov eax, dword [0x718a0c]
test eax, eax
je 0x5c10fa
mov dword [0x718a10], 1
mov dword [0x6d3164], esi
mov dword [0x718a00], esi
movzx edx, byte [ebp + 0xc]
mov eax, edx
mov esi, edx
and eax, 4
shr eax, 2
and esi, 0x20
test byte [ebp + 0xf], 2
je 0x5c1128
test eax, eax
je 0x5c1159
mov eax, 1
jmp 0x5c112e
test eax, eax
je 0x5c11aa
xor eax, eax
test dl, 1
je 0x5c1140
mov eax, 0xad
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0
push 0xad
mov dword [ebp - 0x4c], eax
call fcn.005b16e0
mov eax, dword [ebp - 0x4c]
add esp, 8
test eax, eax
je 0x5c11a6
mov eax, dword [0x718a10]
test eax, eax
je 0x5c11a6
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
call 0x81f664
mov edx, eax
add esp, 4
movzx eax, word [ebp + 0xe]
and eax, 0x1e0
shr eax, 5
cmp eax, 0xf
je 0x5c1230
push eax
push edi
push edx
call fcn.005c1400
add esp, 0xc
jmp 0x5c1226
movzx edx, byte [ebp + 0xc]
test dl, 0x40
jne 0x5c123d
test byte [ebp + 0xd], 1
je 0x5c11cd
mov eax, dword [0x718a08]
test eax, eax
je 0x5c11cd
push edi
call fcn.005c13b0
add esp, 4
jmp 0x5c1226
push 0x718a18
call fcn.005e0700
add esp, 4
mov ebx, edi
shr ebx, 0x18
cmp edi, dword [ebx*4 + 0x718600]
je 0x5c120a
mov dword [0x718a18], 0
test esi, esi
jne 0x5c11ff
mov eax, dword [0x718a08]
test eax, eax
jne 0x5c11c2
push edi
call fcn.00658007
add esp, 4
jmp 0x5c1226
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov dword [ebx*4 + 0x718600], eax
mov dword [0x718a18], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
push edi
push edx
call fcn.005c1400
add esp, 0xc
jmp 0x5c1226
push edi
call fcn.005f0b30
add esp, 4
jmp 0x5c1226