Function at 0x408613
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push edi
lea ecx, [ebp - 0x338]
call fcn.00403b9b
mov ecx, dword [ebp + 8]
call fcn.00403241
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40865b
lea ecx, [ebp - 0x338]
call fcn.004077b3
movzx eax, al
test eax, eax
je 0x408659
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.004033c1
jmp 0x40867c
lea ecx, [ebp - 0x338]
call fcn.0040822f
movzx eax, al
test eax, eax
je 0x40867c
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.004033c1
cmp dword [ebp + 0xc], 0
je 0x4086a3
push 2
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + eax]
test eax, eax
je 0x4086a3
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004035e9
jmp 0x4087b4
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.00403ce0
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x4086e2
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 0x408701
call fcn.004083c0
test eax, eax
je 0x4087a5
push 0x100
push 0xfe
lea eax, [ebp - 0x128]
push eax
push 0x50a910
mov edx, 0x50a8d4
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403ce0
add esp, 0x10
movzx eax, al
test eax, eax
je 0x408744
lea eax, [ebp - 0x128]
push eax
call fcn.0042bc61
pop ecx
cmp eax, 0x2710
jge 0x408795
push 0x100
push 0xfe
lea eax, [ebp - 0x128]
push eax
push 0x50a910
mov edx, 0x50a8d4
mov ecx, closesocket
call fcn.00403ce0
add esp, 0x10
movzx eax, al
test eax, eax
je 0x408787
lea eax, [ebp - 0x128]
push eax
call fcn.0042bc61
pop ecx
cmp eax, 0x2710
jge 0x408795
push 0x7f
pop edx
lea ecx, [ebp - 0x128]
call fcn.0040840a
mov edx, str.4ed6bfa8
lea ecx, [ebp - 0x128]
call fcn.0040852a
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
call fcn.004035e9
call fcn.00408537
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4087e8
push dword [ebp - 4]
push 0x4f9924
lea eax, [ebp - 0x338]
push eax
call fcn.00403732
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.004033c1
mov ecx, dword [ebp + 8]
call fcn.00401887
movzx eax, al
test eax, eax
jne 0x408812
lea ecx, [ebp - 0x338]
call fcn.004033a5
lea ecx, [ebp - 0x338]
call fcn.00402a34
jmp 0x4088ba
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 0x40887b
movzx eax, word [ebp - 6]
test eax, eax
je 0x40887b
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
push 0x50d380
lea eax, [ebp - 0x338]
push eax
call fcn.00403732
add esp, 0x10
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.004033c1
lea ecx, [ebp - 0x338]
call fcn.004033a5
lea ecx, [ebp - 0x338]
call fcn.00402a34
jmp 0x4088ba
call fcn.004085ac
push eax
push 0x50d38c
lea eax, [ebp - 0x338]
push eax
call fcn.00403732
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
call fcn.004033c1
lea ecx, [ebp - 0x338]
call fcn.004033a5
lea ecx, [ebp - 0x338]
call fcn.00402a34
pop edi
leave
ret