Function at 0x405dc0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405e31
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push ecx
push edi
call eax
test eax, eax
jne 0x405e26
mov eax, 2
jmp 0x405e31
xor eax, eax
cmp dword [ebp - 0x124], eax
setne al
push 0x118
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.00411010
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 0xb
jne 0x405e89
lea eax, [edx + 0xb]
jmp 0x405fe1
cmp edx, 0xa
jne 0x405f92
cmp eax, 0x585d
jb 0x405ea1
lea eax, [edx + 0xd]
jmp 0x405fe1
cmp eax, 0x55f0
jb 0x405eb2
mov eax, 0x16
jmp 0x405fe1
cmp eax, 0x4f7c
jb 0x405ec3
mov eax, 0x15
jmp 0x405fe1
cmp eax, 0x4a65
jb 0x405ed4
mov eax, 0x14
jmp 0x405fe1
cmp eax, 0x4a64
jb 0x405ee5
mov eax, 0x13
jmp 0x405fe1
cmp eax, 0x4a63
jb 0x405ef6
mov eax, 0x12
jmp 0x405fe1
cmp eax, 0x4a62
jb 0x405f07
mov eax, 0x11
jmp 0x405fe1
cmp eax, 0x4a61
jb 0x405f18
mov eax, 0x10
jmp 0x405fe1
cmp eax, 0x47bb
jb 0x405f29
mov eax, 0xf
jmp 0x405fe1
cmp eax, 0x47ba
jb 0x405f3a
mov eax, 0xe
jmp 0x405fe1
cmp eax, 0x4563
jb 0x405f4b
mov eax, 0xd
jmp 0x405fe1
cmp eax, 0x42ee
jb 0x405f5c
mov eax, 0xc
jmp 0x405fe1
cmp eax, 0x3fab
jb 0x405f6a
mov eax, 0xb
jmp 0x405fe1
cmp eax, 0x3ad7
jb 0x405f78
mov eax, 0xa
jmp 0x405fe1
cmp eax, 0x3839
jb 0x405f86
mov eax, 9
jmp 0x405fe1
cmp eax, 0x295a
sbb eax, eax
add eax, 8
jmp 0x405fe1
cmp edx, 6
jbe 0x405f9e
mov eax, 0x18
jmp 0x405fe1
jne 0x405fcb
sub ecx, 0
je 0x405fc4
sub ecx, 1
je 0x405fbd
sub ecx, 1
je 0x405fb6
mov eax, 6
jmp 0x405fe1
mov eax, 5
jmp 0x405fe1
mov eax, 4
jmp 0x405fe1
mov eax, 3
jmp 0x405fe1
cmp edx, 5
jne 0x405fdf
test ecx, ecx
je 0x405fdf
xor eax, eax
cmp ecx, 1
setne al
inc eax
jmp 0x405fe1
xor eax, eax
mov dword [esi], eax
movzx eax, word [ebp - 0xc]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
test eax, eax
je 0x40605d
cmp eax, 6
je 0x406054
cmp eax, 9
jne 0x406064
mov dword [esi + 0x18], 1
jmp 0x406064
mov dword [esi + 0x18], 2
jmp 0x406064
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x134]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f104
mov esp, ebp
pop ebp
ret