Function at 0x5c0aac
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x74
mov edi, eax
mov eax, dword [0x6d3164]
mov esi, edx
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x5c0bdc
mov eax, dword [0x6d3164]
test eax, eax
je 0x5c0bdc
push 0x718a00
call fcn.005e0700
add esp, 4
mov eax, dword [0x718a04]
test eax, eax
je 0x5c0af0
xor ebx, ebx
jmp 0x5c0b19
xor ebx, ebx
push ebx
push ebx
push str.FOR_DISABLE_KMP_MALLOC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
ja 0x5c0b05
je 0x5c0b0f
mov dword [0x6d3164], 0
mov dword [0x718a04], 1
mov eax, 0x5c13a0
mov dword [ebp - 0x2c], fcn.005c1390
mov dword [ebp - 0x28], fcn.005c13b0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], fcn.005c1390
lea edx, [eax + 1]
mov dword [ebp - 0x1c], fcn.005c13b0
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
je 0x5c0b6b
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
je 0x5c0b6b
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x5c]
cmp eax, edx
je 0x5c0b6b
mov dword [0x718a08], 1
mov dword [ebp - 0x44], fcn.005c13c0
mov dword [ebp - 0x40], fcn.005c13e0
mov dword [ebp - 0x3c], fcn.005c1400
mov dword [ebp - 0x38], fcn.005c13c0
mov dword [ebp - 0x34], fcn.005c13e0
mov dword [ebp - 0x30], fcn.005c1400
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
cmp eax, edx
je 0x5c0bbd
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
cmp eax, edx
je 0x5c0bbd
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp eax, edx
je 0x5c0bbd
mov dword [0x718a0c], 1
mov eax, dword [0x718a0c]
test eax, eax
je 0x5c0bd0
mov dword [0x718a10], 1
mov dword [0x6d3164], ebx
mov dword [0x718a00], ebx
movzx eax, byte [ebp + 0x10]
mov edx, eax
and edx, 0x20
mov dword [ebp - 0x58], edx
movzx edx, byte [ebp + 0x13]
and edx, 2
shr edx, 1
test al, 0x10
je 0x5c0c1f
test al, 1
je 0x5c0c06
mov eax, 0xb3
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0
push 0xb3
mov dword [ebp - 0x14], edx
call fcn.005b16e0
mov edx, dword [ebp - 0x14]
add esp, 8
movzx eax, byte [ebp + 0x10]
mov ebx, 1
test edi, edi
movzx ecx, byte [ebp + 0x12]
jne 0x5c0c31
mov edi, 1
shl ebx, cl
cmp ebx, 0x10
jae 0x5c0c59
test eax, 0x80
jne 0x5c0c52
test edx, edx
jne 0x5c0c59
movzx ecx, word [ebp + 0x12]
and ecx, 0x1e0
cmp ecx, 0x20
jne 0x5c0c59
mov ebx, 0x10
jmp 0x5c0c63
cmp ebx, 8
jae 0x5c0c63
mov ebx, 8
test al, 8
je 0x5c0dd7
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x14]
cmp eax, 0x800000
jle 0x5c0c8f
mov ebx, 0x18
jmp 0x5c0dd7
cmp eax, 0x400000
jle 0x5c0ca0
mov ebx, 0x17
jmp 0x5c0dd7
cmp eax, 0x200000
jle 0x5c0cb1
mov ebx, 0x16
jmp 0x5c0dd7
cmp eax, 0x100000
jle 0x5c0cc2
mov ebx, 0x15
jmp 0x5c0dd7
cmp eax, 0x80000
jle 0x5c0cd3
mov ebx, 0x14
jmp 0x5c0dd7
cmp eax, 0x40000
jle 0x5c0ce4
mov ebx, 0x13
jmp 0x5c0dd7
cmp eax, 0x20000
jle 0x5c0cf5
mov ebx, 0x11
jmp 0x5c0dd7
cmp eax, 0x10000
jle 0x5c0d06
mov ebx, 0x10
jmp 0x5c0dd7
cmp eax, 0x8000
jle 0x5c0d17
mov ebx, 0xf
jmp 0x5c0dd7
cmp eax, 0x4000
jle 0x5c0d28
mov ebx, 0xe
jmp 0x5c0dd7
cmp eax, 0x2000
jle 0x5c0d39
mov ebx, 0xd
jmp 0x5c0dd7
cmp eax, 0x1000
jle 0x5c0d4a
mov ebx, 0xc
jmp 0x5c0dd7
cmp eax, 0x800
jle 0x5c0d5b
mov ebx, 0xb
jmp 0x5c0dd7
cmp eax, 0x400
jle 0x5c0d69
mov ebx, 0xa
jmp 0x5c0dd7
cmp eax, 0x200
jle 0x5c0d77
mov ebx, 9
jmp 0x5c0dd7
cmp eax, 0x100
jle 0x5c0d85
mov ebx, 8
jmp 0x5c0dd7
cmp eax, 0x80
jle 0x5c0d93
mov ebx, 7
jmp 0x5c0dd7
cmp eax, 0x40
jle 0x5c0d9f
mov ebx, 6
jmp 0x5c0dd7
cmp eax, 0x20
jle 0x5c0dab
mov ebx, 5
jmp 0x5c0dd7
cmp eax, 0x10
jle 0x5c0db7
mov ebx, 4
jmp 0x5c0dd7
cmp eax, 8
jle 0x5c0dc3
mov ebx, 3
jmp 0x5c0dd7
cmp eax, 4
jle 0x5c0dcf
mov ebx, 2
jmp 0x5c0dd7
xor ebx, ebx
cmp eax, 2
setg bl
test edx, edx
je 0x5c0e6d
mov eax, dword [0x718a10]
test eax, eax
je 0x5c0e6d
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x58]
push eax
call 0x81f664
movzx ecx, word [ebp + 0x12]
add esp, 4
and ecx, 0x1e0
shr ecx, 5
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp ecx, 0xf
je 0x5c0f26
mov ecx, dword [0x718a14]
test ecx, ecx
jne 0x5c0e5d
mov ecx, dword [0x718a0c]
test ecx, ecx
jne 0x5c0e4e
test edx, edx
je 0x5c0eb9
push 0
push 0x312
call fcn.005b16e0
jmp 0x5c0eb6
push dword [ebp - 0x18]
push edi
push eax
call fcn.005c13e0
add esp, 0xc
jmp 0x5c0ec3
push dword [ebp - 0x18]
push edi
push ebx
push eax
call fcn.005c13c0
add esp, 0x10
jmp 0x5c0ec3
test byte [ebp + 0x10], 0x40
jne 0x5c0f60
test byte [ebp + 0x11], 1
je 0x5c0e8f
mov eax, dword [0x718a08]
test eax, eax
je 0x5c0e8f
push ebx
push edi
call fcn.005c1390
jmp 0x5c0ec0
cmp edi, 0x1000000
jae 0x5c0ee1
cmp dword [ebp - 0x58], 0
jne 0x5c0ea6
mov eax, dword [0x718a08]
test eax, eax
jne 0x5c0e86
test edx, edx
je 0x5c0eb9
push 0
push 0x312
call fcn.005b16e0
add esp, 8
push ebx
push edi
call fcn.00658021
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x5c0f1c
test byte [ebp + 0x10], 1
jne 0x5c0f6e
push 0
push 0x29
call fcn.005b16e0
add esp, 8
jmp 0x5c0f1c
push 0x718a18
call fcn.005e0700
add esp, 4
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x5c0f52
mov eax, edx
shr eax, 0x18
mov dword [0x718a18], 0
mov dword [esi], edx
mov dword [eax*4 + 0x718600], edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, dword [0x718a14]
test edx, edx
je 0x5c0f40
push dword [ebp - 0x10]
push edi
push ebx
push eax
call fcn.005c13c0
add esp, 0x10
jmp 0x5c0ec3
push dword [ebp - 0x10]
push edi
push eax
call fcn.005c13e0
add esp, 0xc
jmp 0x5c0ec3
xor eax, eax
mov dword [0x718a18], eax
mov dword [esi], eax
jmp 0x5c0ec9
push edi
call fcn.005f06f0
add esp, 4
jmp 0x5c0ec3
mov eax, 0x29
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret