Function at 0x40b600
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], 0x40
rep stosd dword es:[edi], eax
push eax
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x68]
push eax
call fcn.00414810
test eax, eax
jne 0x40b647
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40b673
mov edx, dword [ebp + 0x20]
push edx
push 0x64
push 0
push 0
push 0
call eax
test al, al
jne 0x40b673
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
or eax, edx
je 0x40b897
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x60]
xor edi, edi
shrd ecx, eax, 1
shr eax, 1
cmp edx, eax
mov dword [esp + 0x24], esi
ja 0x40b6a9
jb 0x40b6a4
cmp dword [ebp + 0x10], ecx
jae 0x40b6a9
mov ecx, dword [ebp + 0x10]
mov eax, edx
test eax, eax
ja 0x40b6b4
jb 0x40b6b9
cmp ecx, 0xffffffff
jb 0x40b6b9
or ecx, 0xffffffff
xor eax, eax
cmp eax, edi
jb 0x40b6c3
ja 0x40b6c5
cmp ecx, esi
ja 0x40b6c5
mov ecx, esi
test esi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], esi
ja 0x40b6d2
int3
mov eax, dword [ebp + 0x18]
and eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
jne 0x40b6e4
mov eax, ecx
push 4
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b89c
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
xor eax, eax
cmp ecx, eax
jb 0x40b730
ja 0x40b728
cmp edi, esi
jbe 0x40b730
lea edx, [esp + 0x10]
push edx
push esi
jmp 0x40b736
lea edx, [esp + 0x10]
push edx
push edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00417660
test al, al
je 0x40b841
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b780
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00417680
test al, al
je 0x40b841
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x40b841
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
sub eax, edx
test ecx, ecx
jne 0x40b7d1
cmp eax, 0xfa
ja 0x40b7a7
mov eax, dword [esp + 0x2c]
add esi, esi
cmp esi, eax
jb 0x40b7c7
jmp 0x40b7c5
cmp eax, 0x7d0
jb 0x40b7b4
mov esi, dword [esp + 0x24]
jmp 0x40b7d1
cmp eax, 0x2ee
jb 0x40b7d1
mov eax, dword [esp + 0x24]
shr esi, 1
cmp esi, eax
ja 0x40b7c7
mov esi, eax
xor edx, edx
mov eax, esi
div dword [esp + 0x28]
sub esi, edx
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1c]
sub edi, eax
sbb edx, 0
mov dword [esp + 0x18], edi
test ecx, ecx
mov dword [esp + 0x1c], edx
je 0x40b831
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push 0x64
push eax
push ecx
push edx
push edi
call fcn.0040b410
and eax, 0xff
mov ecx, 0x64
sub ecx, eax
lea edx, [esp + 0x44]
push ecx
push edx
push 0
call dword [ebp + 0x1c]
test al, al
je 0x40b841
mov ecx, dword [esp + 0x1c]
mov eax, edi
or eax, ecx
jne 0x40b70e
jmp 0x40b84d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
or eax, ecx
jne 0x40b879
test byte [ebp + 0x18], 0x10
jne 0x40b874
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
push eax
call fcn.00417660
test al, al
je 0x40b879
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b879
mov byte [esp + 0xf], 1
mov ecx, dword [esp + 0x14]
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, byte [esp + 0xf]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov byte [esp + 0xf], 1
mov al, byte [esp + 0xf]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c