Function at 0x401590
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
jne 0x401694
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004014b0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4015f3
xor eax, eax
jmp 0x401955
push 0
push 0x20000080
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 8], 0xffffffff
jne 0x401641
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ee
je 0x401641
mov dword [ebp - 0x28], 0
push 0x469eec
lea eax, [ebp - 0x28]
push eax
call fcn.00434e8b
nop
push 0
push 0
push 0
push 4
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
jne 0x40167d
mov dword [ebp - 0x2c], 0
push 0x469eec
lea eax, [ebp - 0x2c]
push eax
call fcn.00434e8b
nop
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [edx + 0x1c]
jb 0x4016b9
ja 0x4016b2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ecx + 0x18]
jbe 0x4016b9
xor eax, eax
jmp 0x401955
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
xor edx, edx
mov eax, dword [ebp - 0x30]
mov cl, 0x20
call fcn.00432a70
add eax, dword [ebp - 0x50]
adc edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp dword [0x1435aac], 0
jne 0x4016fc
push 0x1435a90
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
mov eax, dword [0x1435aac]
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edx, dword [0x1435aac]
xor eax, eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x64]
jg 0x401734
jl 0x401729
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x68]
jae 0x401734
mov eax, dword [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x44]
jb 0x401776
ja 0x401746
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x48]
jbe 0x401776
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0x14]
adc edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
push edx
push ecx
call fcn.00432ac0
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
push edx
push eax
call fcn.00432a30
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp - 0x44]
jb 0x4017df
ja 0x401798
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x48]
jb 0x4017df
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00432ac0
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
push edx
push eax
call fcn.00432a30
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.00432b30
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
jmp 0x4017eb
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x48]
shl edx, 1
xor eax, eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], eax
push 0
push 2
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.00432a30
add eax, dword [ebp - 0x58]
adc edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x6c]
cmp eax, dword [edx + 0x1c]
jb 0x40183b
ja 0x401833
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x70]
cmp edx, dword [ecx + 0x18]
jbe 0x40183b
xorps xmm0, xmm0
movlpd qword [ebp - 0x78], xmm0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
je 0x40185b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov cl, 0x20
call fcn.00432bb0
push eax
push 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
jne 0x4018a5
mov dword [ebp - 0x34], 0
push 0x469eec
lea ecx, [ebp - 0x34]
push ecx
call fcn.00434e8b
nop
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
push 2
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00401970
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4018f4
mov dword [ebp - 0x3c], 0
push 0x469eec
lea eax, [ebp - 0x3c]
push eax
call fcn.00434e8b
nop
jmp 0x401942
mov dword [ebp - 4], 0xffffffff
jmp 0x401952
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18