Function at 0x401000
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x206
xor esi, esi
lea ecx, [esp + 0x56]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x1c], 0xffffffff
mov word [esp + 0x5c], ax
call fcn.0040e6d0
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x25c], eax
mov dword [esp + 0x260], eax
mov dword [esp + 0x264], eax
mov dword [esp + 0x268], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esp + 0x2c]
cmp ax, 9
je 0x4010a6
mov dword [esp + 0x1c], 0x20
cmp ax, 6
jne 0x4010ae
mov dword [esp + 0x1c], 0x40
lea eax, [esp + 0x10]
push eax
call fcn.004041a0
mov edi, eax
movzx eax, dx
mov ecx, esi
or ecx, eax
mov ebx, edx
mov dword [esp + 0x24], ebx
je 0x4010e2
push ebx
push edi
push 0xb3
push str..SystemPartitionInfo.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
movzx eax, word [esp + 0x24]
or esi, eax
je 0x401106
push ebx
push edi
push 0x27
push str..W2GFix.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
jmp 0x40123d
push 0x430
call fcn.00409c6f
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x4011b5
push 0x218
lea edx, [esi + 8]
push edi
push edx
mov dword [esi], vtable.CUASPSupporter.0
mov dword [esi + 4], edi
mov dword [esi + 0x220], edi
mov dword [esi + 0x224], edi
call fcn.0040e6d0
add esp, 0xc
push 0x418cac
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.00409560
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
sub eax, 0x20
add esp, 0xc
neg eax
sbb eax, eax
and eax, 9
cdq
mov dword [esp + 0x258], eax
mov dword [esp + 0x25c], edx
mov dword [esp + 0x260], ecx
mov dword [esp + 0x264], 1
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call edx
mov edi, eax
movzx ecx, dx
xor eax, eax
or eax, ecx
mov ebx, edx
mov dword [esp + 0x14], ebx
je 0x401204
push ebx
push edi
push 0x3a
jmp 0x401222
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.004148f0
mov esi, eax
mov edi, edx
add esi, 0x2e0000
adc edi, 4
push edi
push esi
push 0x2f
push str..W2GFix.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00409551
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov edi, eax
movzx ecx, dx
xor eax, eax
or eax, ecx
mov ebx, edx
mov dword [esp + 0x14], ebx
je 0x401234
push ebx
push edi
push 0x41
push str..W2GFix.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.00409551
mov esp, ebp
pop ebp
ret