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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
cmp dword [ecx + 0x48], 0
jne 0x404bf6
lea esi, [esp + 0xb0]
mov dword [esp + 0x70], ecx
push esi
call fcn.0040cdb0
add esp, 4
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
movzx eax, word [esp + 0xb0]
xor ecx, ecx
mov ebx, 1
mov edi, 0
mov word [esp + 0x2a], ax
mov eax, 0x80000000
mov esi, ebx
cpuid
xchg ebx, esi
cmp eax, 0x80000004
jb 0x404789
mov dword [esp + 0x24], eax
movzx eax, byte [0x529189]
push 4
push 0x50
call fcn.00402c90
add esp, 8
test eax, eax
je 0x404c71
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov edi, 0x80000000
mov esi, 0x80000000
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0
nop word cs:[eax + eax]
nop
cmp edi, eax
mov eax, edi
adc esi, 0
xor ecx, ecx
mov ebx, ebx
cpuid
xchg ebx, ebx
mov dword [esp + 4], ebx
mov ebx, eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x1c]
jne 0x4045fd
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x7c], edx
call fcn.004064a0
mov edx, dword [esp + 0x7c]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
shl eax, 4
mov dword [ecx + eax], ebx
mov ebx, dword [esp + 4]
mov dword [ecx + eax + 4], ebx
mov ebx, dword [esp + 8]
mov dword [ecx + eax + 8], ebx
mov dword [ecx + eax + 0xc], edx
mov eax, dword [esp + 0x24]
inc dword [esp + 0x20]
cmp edi, eax
jae 0x40462d
cmp esi, eax
mov edi, esi
jbe 0x4045c0
movzx eax, byte [0x529189]
push 1
push 0x30
call fcn.00402c90
add esp, 8
test eax, eax
je 0x404c7f
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], 0
cmp ecx, 3
jb 0x404737
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0xc]
mov dword [esp + 8], ecx
mov ecx, esi
mov edx, dword [ebx + 0x20]
call fcn.00404cb0
mov edx, dword [ebx + 0x24]
mov ecx, esi
call fcn.00404cb0
mov edx, dword [ebx + 0x28]
mov ecx, esi
call fcn.00404cb0
mov edx, dword [ebx + 0x2c]
mov ecx, esi
call fcn.00404cb0
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x404703
shl ecx, 4
mov esi, 0xfffffff0
add ecx, ebx
add ebx, 0x30
mov dword [esp + 8], ecx
nop dword [eax]
mov edx, dword [ebx + esi + 0x10]
lea edi, [esp + 0xc]
mov ecx, edi
call fcn.00404cb0
mov edx, dword [ebx + esi + 0x14]
mov ecx, edi
call fcn.00404cb0
mov edx, dword [ebx + esi + 0x18]
mov ecx, edi
call fcn.00404cb0
mov edx, dword [ebx + esi + 0x1c]
mov ecx, edi
call fcn.00404cb0
mov ecx, dword [esp + 8]
test esi, esi
je 0x404703
lea eax, [ebx + esi + 0x20]
add esi, 0x10
cmp eax, ecx
jne 0x4046c0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
xor edx, edx
test ecx, ecx
je 0x404737
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp byte [eax + edx], 0
je 0x40472f
inc edx
cmp ecx, edx
jne 0x404720
mov edx, ecx
jmp 0x404737
cmp edx, ecx
ja 0x404c94
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00438560
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x404bfe
xor edi, edi
mov ebx, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40476f
push 1
push eax
push dword [esp + 0x14]
call fcn.00402ca0
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404789
shl eax, 4
push 4
push eax
push dword [esp + 0x20]
call fcn.00402ca0
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 4], edi
xor eax, eax
xor ecx, ecx
mov esi, ebx
cpuid
xchg ebx, esi
mov dword [esp + 8], ecx
mov ebx, edx
movzx eax, byte [0x529189]
push 1
push 0xc
call fcn.00402c90
add esp, 8
test eax, eax
je 0x404c63
lea edi, [esp + 0xc]
mov edx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.00404cb0
mov ecx, edi
mov edx, ebx
call fcn.00404cb0
mov edx, dword [esp + 8]
mov ecx, edi
call fcn.00404cb0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x404817
xor edx, edx
nop
cmp byte [eax + edx], 0
je 0x40480d
inc edx
cmp ecx, edx
jne 0x404800
jmp 0x404817
cmp edx, ecx
ja 0x404c8d
mov ecx, edx
lea edx, [esp + 0x38]
push ecx
push eax
push edx
call fcn.00438560
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x404849
movzx eax, word [esp + 0x2a]
cmp ax, 0xe
ja 0x40487c
cwde
mov edi, dword [eax*4 + 0x519ecc]
mov ebx, dword [eax*4 + 0x519f08]
jmp 0x404886
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
test edi, edi
je 0x404c31
js 0x404c5c
movzx eax, byte [0x529189]
push 1
push edi
call fcn.00402c90
add esp, 8
mov esi, eax
test eax, eax
jne 0x4048a2
jmp 0x404c24
mov ebx, 0x519e2b
mov edi, 7
movzx eax, byte [0x529189]
push 1
push edi
call fcn.00402c90
add esp, 8
test eax, eax
je 0x404c24
mov esi, eax
push edi
push ebx
push esi
call fcn.0043b9a0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x4048c8
push 1
push eax
push dword [esp + 0x14]
call fcn.00402ca0
add esp, 0xc
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc4]
cmp byte [ebp + 8], 0
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
je 0x404925
lea ecx, [esp + 0x54]
mov edx, ebx
call fcn.00404d40
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
inc ebx
mov dword [esp + 4], eax
jne 0x404981
xor edi, edi
mov eax, 8
mov ebx, ecx
jmp 0x4049c8
test ebx, ebx
mov dword [esp + 4], 8
je 0x404961
cmp ebx, 0xfffffff
ja 0x404c5c
lea esi, [ebx*8]
test esi, esi
js 0x404c5c
je 0x404961
push 8
push esi
call fcn.00402ce0
add esp, 8
test eax, eax
mov dword [esp + 4], eax
je 0x4049b6
mov eax, dword [esp + 4]
lea edi, [ebx + 1]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
cmp edi, 0x1ffffff
jbe 0x404991
jmp 0x404c5c
mov edi, ebx
mov ebx, ecx
cmp edi, 0x1ffffff
ja 0x404c5c
mov esi, edi
shl esi, 6
test esi, esi
js 0x404c5c
je 0x4049c3
movzx eax, byte [0x529189]
push 8
push esi
call fcn.00402c90
add esp, 8
test eax, eax
jne 0x4049c8
push esi
push 8
call fcn.00442780
add esp, 8
ud2
mov eax, 8
test ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
je 0x404b52
shl ebx, 3
mov edi, 1
jmp 0x404a68
mov ecx, dword [esp + 0x2c]
shl eax, 6
inc edi
mov dword [ecx + eax], ebx
mov dword [ecx + eax + 4], esi
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x68]
mov dword [ecx + eax + 0x10], edx
movsd xmm0, qword [esp + 0x60]
movsd qword [ecx + eax + 8], xmm0
movsd xmm0, qword [esp + 0xa0]
movsd qword [ecx + eax + 0x14], xmm0
mov edx, dword [esp + 0xa8]
mov dword [ecx + eax + 0x1c], edx
mov edx, dword [esp + 0x98]
mov dword [ecx + eax + 0x28], edx
movsd xmm0, qword [esp + 0x90]
movsd qword [ecx + eax + 0x20], xmm0
mov dword [ecx + eax + 0x2c], 0
mov dword [ecx + eax + 0x30], 0
inc dword [esp + 0x34]
add ebx, 0xfffffff8
je 0x404b52
mov dword [esp + 8], ebx
lea eax, [esp + 0x60]
lea esi, [esp + 0xc]
lea ebx, [esp + 0x38]
mov dword [esp + 0x38], 0x519ec4
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x60], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], fcn.0043a330
mov dword [esp + 0x44], 1
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004352a0
add esp, 8
lea eax, [esp + 0x78]
push eax
push esi
call fcn.00435fe0
add esp, 8
lea eax, [esp + 0x84]
push eax
push ebx
call fcn.00435fe0
add esp, 8
mov eax, dword [esp + 4]
movsd xmm0, qword [esp + 0x18]
mov ebx, dword [eax + edi*8 - 8]
mov esi, dword [eax + edi*8 - 4]
mov eax, dword [esp + 0x20]
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [esp + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
movsd qword [esp + 0xa0], xmm0
movsd xmm0, qword [esp + 0x38]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x40]
movsd qword [esp + 0x90], xmm0
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x30]
jne 0x4049f0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004061f0
add esp, 8
mov eax, dword [esp + 0x34]
jmp 0x4049f0
mov eax, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
movsd qword [esp + 0x38], xmm0
test eax, eax
je 0x404b80
shl eax, 3
push 8
push eax
push dword [esp + 0xc]
call fcn.00402ca0
add esp, 0xc
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x70]
movzx ebx, byte [ebp + 8]
test eax, eax
je 0x404ba5
push 1
push eax
push dword [esp + 0x8c]
call fcn.00402ca0
add esp, 0xc
mov eax, dword [esp + 0x7c]
lea esi, [edi + 0x40]
test eax, eax
je 0x404bc2
push 1
push eax
push dword [esp + 0x80]
call fcn.00402ca0
add esp, 0xc
push esi
call fcn.004067d0
add esp, 4
mov eax, dword [edi + 0x44]
test eax, eax
je 0x404be2
shl eax, 6
push 8
push eax
push dword [esi]
call fcn.00402ca0
add esp, 0xc
mov eax, dword [esp + 0x40]
movsd xmm0, qword [esp + 0x38]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov byte [edi + 0x4c], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
test edi, edi
je 0x404c3b
js 0x404c5c
movzx eax, byte [0x529189]
push 1
push edi
call fcn.00402c90
add esp, 8
mov ebx, eax
test eax, eax
jne 0x404c40
push edi
push 1
call fcn.00442780
add esp, 8
ud2
mov esi, 1
jmp 0x4048a2
mov ebx, 1
push edi
push esi
push ebx
call fcn.0043b9a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x404760
jmp 0x40476f
call fcn.00434ef0
ud2
push 0xc
push 1
call fcn.00442780
add esp, 8
ud2
push 0x50
push 4
call fcn.00442780
add esp, 8
ud2
push 0x30
push 1
call fcn.00442780
add esp, 8
ud2
push 0x519eb0
jmp 0x404c99
push 0x519ea0
push ecx
push edx
call fcn.00442ca0
add esp, 0xc
ud2