Function at 0x408a19
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push edi
lea ecx, [ebp - 0x338]
call fcn.0040117c
mov ecx, dword [ebp + 8]
call fcn.004034d8
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x408a61
lea ecx, [ebp - 0x338]
call fcn.00407d37
movzx eax, al
test eax, eax
je 0x408a5f
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401262
jmp 0x408a82
lea ecx, [ebp - 0x338]
call fcn.004087b3
movzx eax, al
test eax, eax
je 0x408a82
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401262
cmp dword [ebp + 0xc], 0
je 0x408aa9
push 2
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + eax]
test eax, eax
je 0x408aa9
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040380a
jmp 0x408bba
push 0x100
push 0xfe
lea eax, [ebp - 0x128]
push eax
push str.ProductId
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d72
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x408ae8
push 2
pop eax
imul eax, eax, 0
xor ecx, ecx
mov word [ebp + eax - 0x128], cx
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x128]
test eax, eax
je 0x408b07
call fcn.004013bb
test eax, eax
je 0x408bab
push 0x100
push 0xfe
lea eax, [ebp - 0x128]
push eax
push 0x46d090
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d72
add esp, 0x10
movzx eax, al
test eax, eax
je 0x408b4a
lea eax, [ebp - 0x128]
push eax
call fcn.0042a425
pop ecx
cmp eax, 0x2710
jge 0x408b9b
push 0x100
push 0xfe
lea eax, [ebp - 0x128]
push eax
push 0x46d090
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, closesocket
call fcn.00403d72
add esp, 0x10
movzx eax, al
test eax, eax
je 0x408b8d
lea eax, [ebp - 0x128]
push eax
call fcn.0042a425
pop ecx
cmp eax, 0x2710
jge 0x408b9b
push 0x7f
pop edx
lea ecx, [ebp - 0x128]
call fcn.00408810
mov edx, str.4ed6bfa8
lea ecx, [ebp - 0x128]
call fcn.00408930
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040380a
call fcn.0040893d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408bee
push dword [ebp - 4]
push 0x4679e4
lea eax, [ebp - 0x338]
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401262
mov ecx, dword [ebp + 8]
call fcn.00401b89
movzx eax, al
test eax, eax
jne 0x408c18
lea ecx, [ebp - 0x338]
call fcn.0040363c
lea ecx, [ebp - 0x338]
call fcn.004011bb
jmp 0x408cc0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 8]
test eax, eax
je 0x408c81
movzx eax, word [ebp - 6]
test eax, eax
je 0x408c81
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
push str._u._u
lea eax, [ebp - 0x338]
push eax
call fcn.004011fb
add esp, 0x10
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401262
lea ecx, [ebp - 0x338]
call fcn.0040363c
lea ecx, [ebp - 0x338]
call fcn.004011bb
jmp 0x408cc0
call fcn.004089b2
push eax
push 0x46feb0
lea eax, [ebp - 0x338]
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401262
lea ecx, [ebp - 0x338]
call fcn.0040363c
lea ecx, [ebp - 0x338]
call fcn.004011bb
pop edi
leave
ret