Function at 0x405390
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 0x405a76
lea esi, [esp + 0xb0]
mov dword [esp + 0x70], ecx
push esi
call fcn.00414e50
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 0x405609
mov dword [esp + 0x24], eax
movzx eax, byte [0x537199]
push 4
push 0x50
call fcn.00403b10
add esp, 8
test eax, eax
je 0x405af1
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 0x40547d
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x7c], edx
call fcn.00407320
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 0x4054ad
cmp esi, eax
mov edi, esi
jbe 0x405440
movzx eax, byte [0x537199]
push 1
push 0x30
call fcn.00403b10
add esp, 8
test eax, eax
je 0x405aff
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 0x4055b7
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0xc]
mov dword [esp + 8], ecx
mov ecx, esi
mov edx, dword [ebx + 0x20]
call fcn.00405b30
mov edx, dword [ebx + 0x24]
mov ecx, esi
call fcn.00405b30
mov edx, dword [ebx + 0x28]
mov ecx, esi
call fcn.00405b30
mov edx, dword [ebx + 0x2c]
mov ecx, esi
call fcn.00405b30
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x405583
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.00405b30
mov edx, dword [ebx + esi + 0x14]
mov ecx, edi
call fcn.00405b30
mov edx, dword [ebx + esi + 0x18]
mov ecx, edi
call fcn.00405b30
mov edx, dword [ebx + esi + 0x1c]
mov ecx, edi
call fcn.00405b30
mov ecx, dword [esp + 8]
test esi, esi
je 0x405583
lea eax, [ebx + esi + 0x20]
add esi, 0x10
cmp eax, ecx
jne 0x405540
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
xor edx, edx
test ecx, ecx
je 0x4055b7
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp byte [eax + edx], 0
je 0x4055af
inc edx
cmp ecx, edx
jne 0x4055a0
mov edx, ecx
jmp 0x4055b7
cmp edx, ecx
ja 0x405b14
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00432910
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x405a7e
xor edi, edi
mov ebx, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4055ef
push 1
push eax
push dword [esp + 0x14]
call fcn.00403b20
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405609
shl eax, 4
push 4
push eax
push dword [esp + 0x20]
call fcn.00403b20
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 [0x537199]
push 1
push 0xc
call fcn.00403b10
add esp, 8
test eax, eax
je 0x405ae3
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.00405b30
mov ecx, edi
mov edx, ebx
call fcn.00405b30
mov edx, dword [esp + 8]
mov ecx, edi
call fcn.00405b30
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x405697
xor edx, edx
nop
cmp byte [eax + edx], 0
je 0x40568d
inc edx
cmp ecx, edx
jne 0x405680
jmp 0x405697
cmp edx, ecx
ja 0x405b0d
mov ecx, edx
lea edx, [esp + 0x38]
push ecx
push eax
push edx
call fcn.00432910
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x4056c9
movzx eax, word [esp + 0x2a]
cmp ax, 0xe
ja 0x4056fc
cwde
mov edi, dword [eax*4 + 0x528d0c]
mov ebx, dword [eax*4 + 0x528d48]
jmp 0x405706
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
test edi, edi
je 0x405ab1
js 0x405adc
movzx eax, byte [0x537199]
push 1
push edi
call fcn.00403b10
add esp, 8
mov esi, eax
test eax, eax
jne 0x405722
jmp 0x405aa4
mov ebx, 0x528c6b
mov edi, 7
movzx eax, byte [0x537199]
push 1
push edi
call fcn.00403b10
add esp, 8
test eax, eax
je 0x405aa4
mov esi, eax
push edi
push ebx
push esi
call fcn.00436b50
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x405748
push 1
push eax
push dword [esp + 0x14]
call fcn.00403b20
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 0x4057a5
lea ecx, [esp + 0x54]
mov edx, ebx
call fcn.00405bc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
inc ebx
mov dword [esp + 4], eax
jne 0x405801
xor edi, edi
mov eax, 8
mov ebx, ecx
jmp 0x405848
test ebx, ebx
mov dword [esp + 4], 8
je 0x4057e1
cmp ebx, 0xfffffff
ja 0x405adc
lea esi, [ebx*8]
test esi, esi
js 0x405adc
je 0x4057e1
push 8
push esi
call fcn.00403b60
add esp, 8
test eax, eax
mov dword [esp + 4], eax
je 0x405836
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 0x405811
jmp 0x405adc
mov edi, ebx
mov ebx, ecx
cmp edi, 0x1ffffff
ja 0x405adc
mov esi, edi
shl esi, 6
test esi, esi
js 0x405adc
je 0x405843
movzx eax, byte [0x537199]
push 8
push esi
call fcn.00403b10
add esp, 8
test eax, eax
jne 0x405848
push esi
push 8
call fcn.0043daa0
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 0x4059d2
shl ebx, 3
mov edi, 1
jmp 0x4058e8
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 0x4059d2
mov dword [esp + 8], ebx
lea eax, [esp + 0x60]
lea esi, [esp + 0xc]
lea ebx, [esp + 0x38]
mov dword [esp + 0x38], 0x528d04
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.00434680
mov dword [esp + 0x44], 1
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0042f930
add esp, 8
lea eax, [esp + 0x78]
push eax
push esi
call fcn.00430390
add esp, 8
lea eax, [esp + 0x84]
push eax
push ebx
call fcn.00430390
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 0x405870
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00407070
add esp, 8
mov eax, dword [esp + 0x34]
jmp 0x405870
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 0x405a00
shl eax, 3
push 8
push eax
push dword [esp + 0xc]
call fcn.00403b20
add esp, 0xc
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x70]
movzx ebx, byte [ebp + 8]
test eax, eax
je 0x405a25
push 1
push eax
push dword [esp + 0x8c]
call fcn.00403b20
add esp, 0xc
mov eax, dword [esp + 0x7c]
lea esi, [edi + 0x40]
test eax, eax
je 0x405a42
push 1
push eax
push dword [esp + 0x80]
call fcn.00403b20
add esp, 0xc
push esi
call fcn.00407650
add esp, 4
mov eax, dword [edi + 0x44]
test eax, eax
je 0x405a62
shl eax, 6
push 8
push eax
push dword [esi]
call fcn.00403b20
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 0x405abb
js 0x405adc
movzx eax, byte [0x537199]
push 1
push edi
call fcn.00403b10
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405ac0
push edi
push 1
call fcn.0043daa0
add esp, 8
ud2
mov esi, 1
jmp 0x405722
mov ebx, 1
push edi
push esi
push ebx
call fcn.00436b50
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4055e0
jmp 0x4055ef
call fcn.0042f5e0
ud2
push 0xc
push 1
call fcn.0043daa0
add esp, 8
ud2
push 0x50
push 4
call fcn.0043daa0
add esp, 8
ud2
push 0x30
push 1
call fcn.0043daa0
add esp, 8
ud2
push 0x528cf0
jmp 0x405b19
push 0x528ce0
push ecx
push edx
call fcn.0043dfc0
add esp, 0xc
ud2