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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bb28
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x11c
lea eax, [ebp - 0x148]
push esi
push eax
mov dword [ebp - 0x14c], esi
mov dword [edi + 0x344], esi
mov dword [edi + 0x34c], esi
mov dword [edi + 0x358], esi
call fcn.00454850
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x148], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x144]
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
mov dword [edi + 0x32c], eax
mov eax, dword [ebp - 0x138]
mov dword [edi + 0x338], eax
lea eax, [ebp - 0x134]
mov dword [edi + 0x334], edx
mov dword [edi + 0x330], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401120
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [edi + 0x310]
call fcn.00401740
mov ax, word [ebp - 0x32]
mov dx, word [ebp - 0x34]
mov cx, word [ebp - 0x30]
mov word [edi + 0x33e], ax
mov al, byte [ebp - 0x2d]
mov byte [edi + 0x343], al
movzx eax, word [ebp - 0x174]
mov word [edi + 0x33c], dx
mov dl, byte [ebp - 0x2e]
mov word [edi + 0x340], cx
mov byte [edi + 0x342], dl
cmp eax, 9
jg 0x4011e8
je 0x4011ca
cmp eax, esi
je 0x4011b0
cmp eax, 6
jne 0x40120b
lea ecx, [edi + 0x2bc]
push ecx
mov edx, 0x472b8c
call fcn.00401530
mov eax, 1
mov dword [edi + 0x34c], eax
mov dword [ebp - 0x14c], eax
jmp 0x40120b
push 3
push 0x472b9c
lea ecx, [edi + 0x2bc]
call fcn.00401740
mov dword [edi + 0x34c], esi
jmp 0x40120b
push 3
push 0x472b84
lea ecx, [edi + 0x2bc]
call fcn.00401740
mov dword [edi + 0x34c], 1
jmp 0x40120b
cmp eax, 0xffff
jne 0x40120b
push 7
push 0x472ba4
lea ecx, [edi + 0x2bc]
call fcn.00401740
mov dword [ebp - 0x14c], 1
mov ecx, 0x472bb4
mov ebx, 0x472bd0
mov edx, 0x80000002
lea esi, [ebp - 0x2c]
call fcn.00419920
lea ecx, [edi + 0x1c]
push eax
mov dword [ebp - 4], 0
call fcn.00401560
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x40124b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0044e60d
add esp, 4
lea eax, [ebp - 0x150]
push eax
push 0x20019
push 0
push 0x472c30
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x150]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
test esi, esi
jne 0x401287
mov dword [edi + 0x358], ebx
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0x401394
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x4012cf
push 0xc
push 0x472c94
mov ecx, edi
call fcn.00401740
push 0x3b
push 0x472cb0
lea ecx, [edi + 0x2d8]
mov dword [edi + 0x344], 0
call fcn.00401740
jmp 0x401470
cmp eax, ebx
jne 0x4012ec
push 0xa
push 0x472d28
mov ecx, edi
call fcn.00401740
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 2
jne 0x401458
cmp byte [ebp - 0x2e], bl
jne 0x40131a
cmp word [ebp - 0x174], 9
jne 0x40131a
push edi
mov edx, 0x472d40
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x40133e
push edi
mov edx, 0x472d78
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
test dword [ebp - 0x30], 0x8000
je 0x401372
push edi
mov edx, 0x472da0
call fcn.00401530
lea edx, [edi + 0x2d8]
push edx
mov edx, 0x472cb0
mov dword [edi + 0x344], 0
call fcn.00401530
jmp 0x401470
push 0x59
call esi
test eax, eax
je 0x401470
push edi
mov edx, 0x472dc8
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 6
jne 0x4014c3
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x4013d7
push edi
cmp byte [ebp - 0x2e], bl
jne 0x4013c2
mov edx, 0x472df8
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, 0x472e14
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, ebx
jne 0x401405
push edi
cmp byte [ebp - 0x2e], bl
jne 0x4013f3
mov edx, 0x472e3c
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, 0x472e50
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 2
jne 0x401453
cmp byte [ebp - 0x2e], bl
jne 0x4014b0
cmp dword [edi + 0x30], 8
lea eax, [edi + 0x1c]
jb 0x40141e
mov eax, dword [eax]
push 0x472e80
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push edi
test eax, eax
je 0x401441
mov edx, 0x472e80
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, 0x472e98
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 3
je 0x40140a
push 0xf
push 0x472f10
mov ecx, edi
call fcn.00401740
mov dword [edi + 0x344], 0
cmp dword [edi + 0x2c], 0
jne 0x401483
push 0xffffffffffffffff
push 0
push edi
lea ecx, [edi + 0x1c]
call fcn.004015e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x348], eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret
push edi
mov edx, 0x472eac
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
cmp eax, 0xa
jne 0x401458
cmp dword [ebp - 0x140], 0
jne 0x401458
push edi
cmp byte [ebp - 0x2e], bl
jne 0x4014e9
mov edx, 0x472ed0
call fcn.00401530
mov dword [edi + 0x344], ebx
jmp 0x401470
mov edx, 0x472ee8
call fcn.00401530
jmp 0x401466