Function at 0x42fc86
Capabilities:
Get system information on windows

Disassembly:
push ebp
sub esp, 0xb8
lea ebp, [esp - 4]
mov eax, dword [0x4960a8]
xor eax, ebp
mov dword [ebp + 0xb8], eax
push 0x44
mov eax, 0x46d9de
call fcn.0045d47b
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
cmp dword [esi + 0xc], ebx
jne 0x42fcea
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x42fce3
test byte [eax + 0x1c], 1
je 0x42fce3
cmp byte [eax + 0x19], 2
jb 0x42fce3
push 0x472a68
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
add esp, 0x10
xor eax, eax
jmp 0x4300fb
mov ecx, dword [esi + 8]
mov edi, dword [ebp + 0xc4]
cmp ecx, edi
jne 0x42fd2c
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x42fd24
test byte [eax + 0x1c], 1
je 0x42fd24
cmp byte [eax + 0x19], 3
jb 0x42fd24
push 0x472a68
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
add esp, 0x10
mov eax, dword [esi + 0xc]
jmp 0x4300fb
mov eax, dword [esi + 4]
dec eax
dec eax
je 0x430023
dec eax
je 0x42ff71
dec eax
je 0x42ff28
dec eax
je 0x42fd8d
dec eax
je 0x430023
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x4300f9
test byte [eax + 0x1c], 1
je 0x4300f9
cmp byte [eax + 0x19], 2
jb 0x4300f9
push 0x472a68
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
add esp, 0x10
jmp 0x4300f9
cmp edi, 0x80
jbe 0x42ff23
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x3c]
call fcn.0042a635
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push edi
mov byte [ebp - 4], 2
call fcn.00429c4e
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x42fdd2
lea ecx, [ebp - 0x50]
call fcn.00402cd3
push 0x490a34
lea eax, [ebp - 0x50]
push eax
call fcn.0045d016
mov dword [ebp - 4], ebx
jmp 0x42fece
lea ecx, [ebp - 0x3c]
call fcn.0042a5f3
test al, al
je 0x42fee2
lea eax, [esi + 0x10]
mov dword [esi + 0xc], eax
jmp 0x42ff19
push edi
push 0
push dword [esi + 0xc]
mov dword [esi + 4], 2
mov dword [esi + 8], edi
call fcn.0045b990
mov eax, dword [esi]
add esp, 0xc
push dword [esi + 8]
mov ecx, esi
push dword [esi + 0xc]
call dword [eax + 4]
push dword [ebp - 0x18]
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.0045cb00
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0042a615
jmp 0x42ff69
mov dword [esi + 8], edi
jmp 0x42ff69
mov ecx, dword [0x497c48]
cmp ecx, ebx
jne 0x42ff43
push 0x497c44
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x497c48]
xor edx, edx
mov eax, edi
div ecx
xor ebx, ebx
imul eax, ecx
cmp ebx, edx
sbb edx, edx
and edx, ecx
mov ecx, dword [esi + 8]
add edx, eax
cmp ecx, eax
jbe 0x430023
cmp edx, ecx
jb 0x430023
mov ebx, dword [esi + 0xc]
jmp 0x4300f9
push edi
push dword [esi + 0xc]
cmp edi, 0x80
jbe 0x42fff3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x42ffc4
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x4300f9
test byte [eax + 0x1c], 1
je 0x4300f9
cmp byte [eax + 0x19], 2
jb 0x4300f9
push 0x472a68
push 0x15
jmp 0x42fd7a
mov eax, dword [esi + 8]
push ebx
push 0
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edx, dword [esi]
mov dword [esi + 8], eax
sub eax, dword [ebp - 0x14]
mov ecx, esi
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x14]
push eax
call dword [edx + 4]
jmp 0x4300f9
lea ebx, [esi + 0x10]
push ebx
mov dword [esi + 4], 5
mov dword [esi + 8], edi
call fcn.0045cb00
add esp, 0xc
push dword [esi + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0xc], ebx
jmp 0x4300f9
lea ecx, [ebp]
call fcn.0042f538
and dword [ebp - 4], 0
cmp dword [esi + 4], 6
jne 0x430076
push dword [esi + 0x94]
lea ecx, [ebp]
push dword [esi + 0x90]
call fcn.0042f5d1
test eax, eax
jne 0x430076
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x4300ea
test byte [eax + 0x1c], 1
je 0x4300ea
cmp byte [eax + 0x19], 2
jb 0x4300ea
push 0x472a68
push 0x13
jmp 0x4300a5
push edi
push dword [esi + 4]
lea ecx, [ebp]
call fcn.0042fa66
test eax, eax
jne 0x4300b5
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x4300ea
test byte [eax + 0x1c], 1
je 0x4300ea
cmp byte [eax + 0x19], 2
jb 0x4300ea
push 0x472a68
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
add esp, 0x10
jmp 0x4300ea
push dword [ebp + 8]
mov eax, dword [esi]
push dword [ebp + 0xc]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 8]
cmp dword [ebp + 8], eax
jae 0x4300cd
mov eax, dword [ebp + 8]
push eax
push dword [esi + 0xc]
push dword [ebp + 0xc]
call fcn.0045cb00
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0042fbff
mov ebx, dword [esi + 0xc]
lea ecx, [ebp]
mov dword [ebp], 0x472a78
call fcn.0042f55d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.00459871
add ebp, 0xbc
leave
ret 4