Function at 0x407a03
Capabilities:
Get system information on windows

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x10c
mov eax, 0x4a98ee
call fcn.00490adb
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]
push 8
mov esi, ecx
mov dword [ebp - 0x18], eax
pop ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x74], ebx
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x5c], 6
je 0x407a7f
xor eax, eax
cmp dword [ebp - 0x5c], 9
sete al
dec eax
and eax, 0xffff7ae8
add eax, 0x8664
mov dword [ebp - 0x30], eax
jmp 0x407a86
mov dword [ebp - 0x30], 0x200
push 0xa0
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.0048e0e0
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 [0x4f4a0c]
mov edi, 0x4f4a0c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x4f4a0c]
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 [0x4f7460]
lea eax, [ebp - 0x118]
push dword [0x4f7450]
push ebx
push esi
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [0x4f744c]
test eax, eax
je 0x407c42
cmp dword [ebp - 0x118], ebx
je 0x407be0
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.0048e0e0
add esp, 0xc
cmp dword [ebp - 0x4c], ebx
je 0x407bc1
mov eax, dword [0x4f7464]
cmp eax, ebx
je 0x407bc1
push 0x104
lea ecx, [ebp]
push ecx
push dword [ebp - 0x4c]
push dword [ebp - 0x20]
call eax
test eax, eax
je 0x407bc1
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x4c]
push eax
push edi
push str._s0x_08x
lea eax, [ebp - 0x14]
call fcn.0040202d
add esp, 0xc
mov byte [ebp - 0xd], bl
jmp 0x407bee
push dword [ebp - 0x118]
lea eax, [ebp - 0x14]
push str.0x_08x
cmp byte [ebp - 0xd], bl
je 0x407bd7
lea eax, [ebp - 0x2c]
call fcn.0040202d
pop ecx
pop ecx
jmp 0x407bee
push 0x4c4530
lea eax, [ebp - 0x14]
push eax
call fcn.00404b7d
push dword [ebp - 0x14]
lea edi, [ebp - 0x28]
call fcn.0040961b
mov ebx, dword [ebp - 0x18]
mov eax, edi
push eax
mov byte [ebp - 4], 2
call fcn.00409791
mov byte [ebp - 4], 1
call fcn.00409751
push 0x4c4534
lea edi, [ebp - 0x1c]
call fcn.0040961b
mov eax, edi
push eax
mov byte [ebp - 4], 3
call fcn.00409791
mov byte [ebp - 4], 1
call fcn.00409751
inc dword [ebp - 0x24]
xor ebx, ebx
cmp dword [ebp - 0x24], 0xf
jbe 0x407af5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, ebx
je 0x407c4f
mov ecx, dword [eax]
jmp 0x407c51
xor ecx, ecx
mov esi, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x407c65
cmp eax, ebx
je 0x407c5e
mov ebx, dword [eax]
xor eax, eax
cmp ax, word [ebx]
jne 0x407c82
push esi
lea edi, [ebp - 0x1c]
call fcn.0040961b
mov ebx, dword [ebp - 0x18]
mov eax, edi
push eax
mov byte [ebp - 4], 4
call fcn.00409791
call fcn.00409751
mov eax, dword [ebp - 0x18]
call fcn.0040967b
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
lea eax, [esi - 0x10]
neg edi
call fcn.00404bfa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404bfa
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.00488e60
add ebp, 0x210
leave
ret