Function at 0x4082d2
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.0040301d
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40831a
lea ecx, [ebp - 0x338]
call fcn.0040755e
movzx eax, al
test eax, eax
je 0x408318
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401262
jmp 0x40833b
lea ecx, [ebp - 0x338]
call fcn.0040806c
movzx eax, al
test eax, eax
je 0x40833b
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401262
cmp dword [ebp + 0xc], 0
je 0x408362
push 2
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + eax]
test eax, eax
je 0x408362
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004034ba
jmp 0x408473
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.00403acb
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x4083a1
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 0x4083c0
call fcn.00401380
test eax, eax
je 0x408464
push 0x100
push 0xfe
lea eax, [ebp - 0x128]
push eax
push 0x467fd0
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403acb
add esp, 0x10
movzx eax, al
test eax, eax
je 0x408403
lea eax, [ebp - 0x128]
push eax
call fcn.00429d81
pop ecx
cmp eax, 0x2710
jge 0x408454
push 0x100
push 0xfe
lea eax, [ebp - 0x128]
push eax
push 0x467fd0
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, SysReAllocStringLen
call fcn.00403acb
add esp, 0x10
movzx eax, al
test eax, eax
je 0x408446
lea eax, [ebp - 0x128]
push eax
call fcn.00429d81
pop ecx
cmp eax, 0x2710
jge 0x408454
push 0x7f
pop edx
lea ecx, [ebp - 0x128]
call fcn.004080c9
mov edx, str.4ed6bfa8
lea ecx, [ebp - 0x128]
call fcn.004081e9
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
call fcn.004034ba
call fcn.004081f6
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4084a7
push dword [ebp - 4]
push 0x462934
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.00401b2b
movzx eax, al
test eax, eax
jne 0x4084d1
lea ecx, [ebp - 0x338]
call fcn.004031ac
lea ecx, [ebp - 0x338]
call fcn.004011bb
jmp 0x408579
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 0x40853a
movzx eax, word [ebp - 6]
test eax, eax
je 0x40853a
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.004031ac
lea ecx, [ebp - 0x338]
call fcn.004011bb
jmp 0x408579
call fcn.0040826b
push eax
push 0x46aa80
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.004031ac
lea ecx, [ebp - 0x338]
call fcn.004011bb
pop edi
leave
ret