Function at 0x413027
Capabilities:
Get system information on windows

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x10c
mov eax, 0x4f724e
call fcn.004de80b
mov eax, dword [ebp + 0x218]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x21c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x220]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x74]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x5c], 6
je 0x413094
xor eax, eax
cmp dword [ebp - 0x5c], 9
sete al
dec eax
and eax, 0xffff7ae8
add eax, 0x8664
mov dword [ebp - 0x30], eax
jmp 0x41309b
mov dword [ebp - 0x30], 0x200
push 0xa0
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004dbcc0
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xb4]
add esp, 0xc
mov dword [ebp - 0x118], eax
push 3
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xf8], eax
mov eax, dword [0x545cc4]
mov edi, 0x545cc4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x545cc4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x24], ebx
push ebx
push dword [0x54735c]
lea eax, [ebp - 0x118]
push dword [0x54734c]
push ebx
push esi
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [0x547348]
test eax, eax
je 0x41324d
cmp dword [ebp - 0x118], ebx
je 0x4131eb
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
push 0x1c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor eax, eax
push 0x208
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.004dbcc0
add esp, 0xc
cmp dword [ebp - 0x4c], ebx
je 0x4131cc
mov eax, dword [0x547360]
cmp eax, ebx
je 0x4131cc
push 0x104
lea ecx, [ebp]
push ecx
push dword [ebp - 0x4c]
push dword [ebp - 0x20]
call eax
test eax, eax
je 0x4131cc
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [ebp - 0x118]
sub ecx, dword [ebp - 0x4c]
push ecx
push eax
push str._s0x_08x
lea eax, [ebp - 0x14]
call fcn.00405e6e
add esp, 0xc
mov byte [ebp - 0xd], bl
jmp 0x4131f9
push dword [ebp - 0x118]
lea eax, [ebp - 0x14]
push str.0x_08x
cmp byte [ebp - 0xd], bl
je 0x4131e2
lea eax, [ebp - 0x2c]
call fcn.00405e6e
pop ecx
pop ecx
jmp 0x4131f9
push 0x51155c
lea eax, [ebp - 0x14]
push eax
call fcn.00406723
push dword [ebp - 0x14]
lea edi, [ebp - 0x28]
call fcn.00414806
mov ebx, dword [ebp - 0x18]
mov eax, edi
push eax
mov byte [ebp - 4], 2
call fcn.0041497c
mov byte [ebp - 4], 1
call fcn.0041493c
push 0x511560
lea edi, [ebp - 0x1c]
call fcn.00414806
mov eax, edi
push eax
mov byte [ebp - 4], 3
call fcn.0041497c
mov byte [ebp - 4], 1
call fcn.0041493c
inc dword [ebp - 0x24]
xor ebx, ebx
cmp dword [ebp - 0x24], 0xf
jbe 0x41310c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, ebx
je 0x41325a
mov ecx, dword [eax]
jmp 0x41325c
xor ecx, ecx
mov esi, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x413270
cmp eax, ebx
je 0x413269
mov ebx, dword [eax]
xor eax, eax
cmp ax, word [ebx]
jne 0x41328d
push esi
lea edi, [ebp - 0x1c]
call fcn.00414806
mov ebx, dword [ebp - 0x18]
mov eax, edi
push eax
mov byte [ebp - 4], 4
call fcn.0041497c
call fcn.0041493c
mov eax, dword [ebp - 0x18]
call fcn.00414866
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
lea eax, [esi - 0x10]
neg edi
call fcn.00406ace
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00406ace
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d5a7d
add ebp, 0x210
leave
ret