Function at 0x407040
Capabilities:
Check os version
Get hostname
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push edi
add esp, 0xfffffcf4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov dword [ebp - 8], 0x40
call sub.KERNEL32.DLL_GetComputerNameW
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0x10
push 0x41dd80
call fcn.00401670
lea ecx, [ebp - 0x19c]
push ecx
mov byte [0x41dd91], 0
mov dword [0x41dd94], 0
mov word [0x41dd98], 0
mov dword [ebp - 0x19c], 0x114
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x40737c
mov eax, dword [ebp - 0x194]
mov dword [0x41dd94], eax
cmp dword [ebp - 0x198], 4
je 0x4071dc
lea eax, [ebp - 0x2b8]
push eax
mov dword [ebp - 0x2b8], 0x11c
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x40737c
mov eax, dword [ebp - 0x2b0]
mov dword [0x41dd94], eax
mov eax, dword [ebp - 0x2b4]
add eax, 0xfffffffb
cmp eax, 1
ja case.default.0x407185
cmp eax, 0
jbe 0x40717b
mov eax, dword [0x41dd94]
cmp eax, 2
ja case.default.0x407185
jmp dword [eax*4 + 0x407388]
movzx eax, byte [ebp - 0x19e]
cmp eax, 1
je 0x407133
mov byte [0x41dd91], 0xe
jmp case.default.0x407185
mov byte [0x41dd91], 0xd
jmp case.default.0x407185
movzx eax, byte [ebp - 0x19e]
cmp eax, 1
je 0x407154
mov byte [0x41dd91], 0xc
jmp case.default.0x407185
mov byte [0x41dd91], 0xb
jmp case.default.0x407185
movzx eax, byte [ebp - 0x19e]
cmp eax, 1
je 0x407172
mov byte [0x41dd91], 0xa
jmp case.default.0x407185
mov byte [0x41dd91], 9
jmp case.default.0x407185
mov eax, dword [0x41dd94]
cmp eax, 2
ja case.default.0x407185
jmp dword [eax*4 + 0x407394]
movzx eax, byte [ebp - 0x19e]
cmp eax, 1
je 0x4071b5
push 0x59
call sub.USER32.DLL_GetSystemMetrics
test eax, eax
je 0x4071ac
mov byte [0x41dd91], 8
jmp case.default.0x407185
mov byte [0x41dd91], 7
jmp case.default.0x407185
mov byte [0x41dd91], 6
jmp case.default.0x407185
mov byte [0x41dd91], 6
jmp case.default.0x407185
mov byte [0x41dd91], 5
mov eax, dword [ebp - 0x1a4]
mov word [0x41dd98], ax
jmp 0x407227
mov eax, dword [0x41dd94]
cmp eax, 0xa
jbe 0x4071f4
cmp eax, 0x5a
jne 0x407227
mov byte [0x41dd91], 4
jmp 0x407227
cmp eax, 0xa
jae 0x407220
test eax, eax
jne 0x407227
mov eax, dword [ebp - 0x18c]
dec eax
cmp eax, 1
ja 0x407227
cmp eax, 0
jbe 0x407217
mov byte [0x41dd91], 2
jmp 0x407227
mov byte [0x41dd91], 1
jmp 0x407227
mov byte [0x41dd91], 3
push 0
push 0
push 0
push str.DISPLAY
call sub.GDI32.DLL_CreateDCW
mov edi, eax
push 0xc
push edi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [0x41dd9c], eax
push edi
call sub.GDI32.DLL_DeleteDC
lea eax, [ebp - 0x2f8]
push eax
mov dword [ebp - 0x2f8], 0x40
call sub.KERNEL32.DLL_GlobalMemoryStatusEx
push 0x1000
fld qword [ebp - 0x2f0]
fstp qword [ebp - 0x300]
mov ecx, dword [ebp - 0x2fc]
shl ecx, 0xc
mov eax, dword [ebp - 0x300]
shr eax, 0x14
add ecx, eax
mov dword [0x41dda0], ecx
call sub.USER32.DLL_GetSystemMetrics
push str.kernel32
test eax, eax
setne byte [0x41dda4]
mov byte [0x41dda6], 0
call sub.KERNEL32.DLL_GetModuleHandleW
push str.IsWow64Process
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
test edi, edi
je 0x4072ca
call sub.KERNEL32.DLL_GetCurrentProcess
push 0x41dda6
push eax
call edi
push 0x10
lea eax, [ebp - 0x310]
push eax
push 0
push str.1234.5
push 0
push 0x400
mov byte [0x41dd90], 0x2c
mov byte [0x41dda5], 0x2e
call sub.KERNEL32.DLL_GetNumberFormatA
test eax, eax
je 0x40737c
push 0x31
push 0x10
lea eax, [ebp - 0x310]
push eax
call fcn.00406840
mov edi, eax
cmp edi, 0xffffffff
je 0x40733c
push edi
push 0x32
push 0x10
lea ecx, [ebp - 0x310]
push ecx
call fcn.00406860
cmp eax, 0xffffffff
je 0x40733c
lea ecx, [edi + 2]
cmp ecx, eax
jne 0x40733c
mov al, byte [edi + ebp - 0x30f]
mov byte [0x41dda5], al
push 0x34
push 0x10
lea eax, [ebp - 0x310]
push eax
call fcn.00406840
mov edi, eax
cmp edi, 0xffffffff
je 0x40737c
push edi
push 0x35
push 0x10
lea ecx, [ebp - 0x310]
push ecx
call fcn.00406860
cmp eax, 0xffffffff
je 0x40737c
lea ecx, [edi + 2]
cmp ecx, eax
jne 0x40737c
mov al, byte [edi + ebp - 0x30f]
mov byte [0x41dd90], al
sub esp, 0xfffffcf4
pop edi
pop ebp
ret