Function at 0x5e158c
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 [0x7abe24]
mov esi, edx
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x5e16bc
mov eax, dword [0x7abe24]
test eax, eax
je 0x5e16bc
push 0x7f63e0
call fcn.00607e00
add esp, 4
mov eax, dword [0x7f63e4]
test eax, eax
je 0x5e15d0
xor ebx, ebx
jmp 0x5e15f9
xor ebx, ebx
push ebx
push ebx
push str.FOR_DISABLE_KMP_MALLOC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
ja 0x5e15e5
je 0x5e15ef
mov dword [0x7abe24], 0
mov dword [0x7f63e4], 1
mov eax, 0x5e2030
mov dword [ebp - 0x2c], fcn.005e2020
mov dword [ebp - 0x28], fcn.005e2040
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], fcn.005e2020
lea edx, [eax + 1]
mov dword [ebp - 0x1c], fcn.005e2040
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
je 0x5e164b
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
je 0x5e164b
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x5c]
cmp eax, edx
je 0x5e164b
mov dword [0x7f63e8], 1
mov dword [ebp - 0x44], fcn.005e2050
mov dword [ebp - 0x40], fcn.005e2070
mov dword [ebp - 0x3c], fcn.005e2090
mov dword [ebp - 0x38], fcn.005e2050
mov dword [ebp - 0x34], fcn.005e2070
mov dword [ebp - 0x30], fcn.005e2090
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
cmp eax, edx
je 0x5e169d
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
cmp eax, edx
je 0x5e169d
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp eax, edx
je 0x5e169d
mov dword [0x7f63ec], 1
mov eax, dword [0x7f63ec]
test eax, eax
je 0x5e16b0
mov dword [0x7f63f0], 1
mov dword [0x7abe24], ebx
mov dword [0x7f63e0], 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 0x5e16ff
test al, 1
je 0x5e16e6
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.0060b140
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 0x5e1711
mov edi, 1
shl ebx, cl
cmp ebx, 0x10
jae 0x5e1739
test eax, 0x80
jne 0x5e1732
test edx, edx
jne 0x5e1739
movzx ecx, word [ebp + 0x12]
and ecx, 0x1e0
cmp ecx, 0x20
jne 0x5e1739
mov ebx, 0x10
jmp 0x5e1743
cmp ebx, 8
jae 0x5e1743
mov ebx, 8
test al, 8
je 0x5e18b7
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 0x5e176f
mov ebx, 0x18
jmp 0x5e18b7
cmp eax, 0x400000
jle 0x5e1780
mov ebx, 0x17
jmp 0x5e18b7
cmp eax, 0x200000
jle 0x5e1791
mov ebx, 0x16
jmp 0x5e18b7
cmp eax, 0x100000
jle 0x5e17a2
mov ebx, 0x15
jmp 0x5e18b7
cmp eax, 0x80000
jle 0x5e17b3
mov ebx, 0x14
jmp 0x5e18b7
cmp eax, 0x40000
jle 0x5e17c4
mov ebx, 0x13
jmp 0x5e18b7
cmp eax, 0x20000
jle 0x5e17d5
mov ebx, 0x11
jmp 0x5e18b7
cmp eax, 0x10000
jle 0x5e17e6
mov ebx, 0x10
jmp 0x5e18b7
cmp eax, 0x8000
jle 0x5e17f7
mov ebx, 0xf
jmp 0x5e18b7
cmp eax, 0x4000
jle 0x5e1808
mov ebx, 0xe
jmp 0x5e18b7
cmp eax, 0x2000
jle 0x5e1819
mov ebx, 0xd
jmp 0x5e18b7
cmp eax, 0x1000
jle 0x5e182a
mov ebx, 0xc
jmp 0x5e18b7
cmp eax, 0x800
jle 0x5e183b
mov ebx, 0xb
jmp 0x5e18b7
cmp eax, 0x400
jle 0x5e1849
mov ebx, 0xa
jmp 0x5e18b7
cmp eax, 0x200
jle 0x5e1857
mov ebx, 9
jmp 0x5e18b7
cmp eax, 0x100
jle 0x5e1865
mov ebx, 8
jmp 0x5e18b7
cmp eax, 0x80
jle 0x5e1873
mov ebx, 7
jmp 0x5e18b7
cmp eax, 0x40
jle 0x5e187f
mov ebx, 6
jmp 0x5e18b7
cmp eax, 0x20
jle 0x5e188b
mov ebx, 5
jmp 0x5e18b7
cmp eax, 0x10
jle 0x5e1897
mov ebx, 4
jmp 0x5e18b7
cmp eax, 8
jle 0x5e18a3
mov ebx, 3
jmp 0x5e18b7
cmp eax, 4
jle 0x5e18af
mov ebx, 2
jmp 0x5e18b7
xor ebx, ebx
cmp eax, 2
setg bl
test edx, edx
je 0x5e194d
mov eax, dword [0x7f63f0]
test eax, eax
je 0x5e194d
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 0x22dfb08
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 0x5e1a06
mov ecx, dword [0x7f63f4]
test ecx, ecx
jne 0x5e193d
mov ecx, dword [0x7f63ec]
test ecx, ecx
jne 0x5e192e
test edx, edx
je 0x5e1999
push 0
push 0x312
call fcn.0060b140
jmp 0x5e1996
push dword [ebp - 0x18]
push edi
push eax
call fcn.005e2070
add esp, 0xc
jmp 0x5e19a3
push dword [ebp - 0x18]
push edi
push ebx
push eax
call fcn.005e2050
add esp, 0x10
jmp 0x5e19a3
test byte [ebp + 0x10], 0x40
jne 0x5e1a40
test byte [ebp + 0x11], 1
je 0x5e196f
mov eax, dword [0x7f63e8]
test eax, eax
je 0x5e196f
push ebx
push edi
call fcn.005e2020
jmp 0x5e19a0
cmp edi, 0x1000000
jae 0x5e19c1
cmp dword [ebp - 0x58], 0
jne 0x5e1986
mov eax, dword [0x7f63e8]
test eax, eax
jne 0x5e1966
test edx, edx
je 0x5e1999
push 0
push 0x312
call fcn.0060b140
add esp, 8
push ebx
push edi
call fcn.006c6a77
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x5e19fc
test byte [ebp + 0x10], 1
jne 0x5e1a4e
push 0
push 0x29
call fcn.0060b140
add esp, 8
jmp 0x5e19fc
push 0x7f63f8
call fcn.00607e00
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 0x5e1a32
mov eax, edx
shr eax, 0x18
mov dword [0x7f63f8], 0
mov dword [esi], edx
mov dword [eax*4 + 0x7f5fe0], edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, dword [0x7f63f4]
test edx, edx
je 0x5e1a20
push dword [ebp - 0x10]
push edi
push ebx
push eax
call fcn.005e2050
add esp, 0x10
jmp 0x5e19a3
push dword [ebp - 0x10]
push edi
push eax
call fcn.005e2070
add esp, 0xc
jmp 0x5e19a3
xor eax, eax
mov dword [0x7f63f8], eax
mov dword [esi], eax
jmp 0x5e19a9
push edi
call fcn.00623360
add esp, 4
jmp 0x5e19a3
mov eax, 0x29
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret