Function at 0x459a60
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x459a80
xor eax, eax
jmp 0x459d75
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004b83b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00459d90
add esp, 0xc
mov dword [ebp - 0x238], 0
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x238], 0x114
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x459b0d
cmp dword [ebp - 0x234], 6
jne 0x459b0d
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x118], 0
jne 0x459b3e
lea edx, [ebp - 0x114]
push edx
call fcn.0045a0c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x459b50
lea eax, [ebp - 0x114]
push eax
call fcn.00459df0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x459d59
mov dword [ebp - 0x3b0], 0x44
push 0x40
push 0
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x250], 0
xor edx, edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x114]
push eax
call fcn.0045a190
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x459bba
lea edx, [ebp - 0x114]
push edx
call fcn.0045a2c0
add esp, 4
mov dword [ebp - 0x3a8], str.Winsta0Default
mov dword [ebp - 0x364], 0x30
mov dword [ebp - 0x3b4], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x23c], 0
push str.userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x459c40
push str.CreateEnvironmentBlock
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x240], eax
push str.DestroyEnvironmentBlock
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x240], 0
je 0x459c81
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x3b4]
push eax
call dword [ebp - 0x240]
test eax, eax
je 0x459c77
mov ecx, dword [ebp - 0x364]
or ecx, 0x400
mov dword [ebp - 0x364], ecx
jmp 0x459c81
mov dword [ebp - 0x3b4], 0
mov byte [ebp - 0x360], 0
push 0x103
push 0
lea edx, [ebp - 0x35f]
push edx
call fcn.004b83b0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x103
lea ecx, [ebp - 0x360]
push ecx
call fcn.004bf2fa
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x3b0]
push eax
push 0
mov ecx, dword [ebp - 0x3b4]
push ecx
mov edx, dword [ebp - 0x364]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x360]
push eax
push 0
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x248]
mov dword [edx], eax
cmp dword [ebp - 0x250], 0
je 0x459d17
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24c], 0
je 0x459d2d
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
je 0x459d43
mov eax, dword [ebp - 0x3b4]
push eax
call dword [ebp - 0x254]
cmp dword [ebp - 0x23c], 0
je 0x459d59
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x114], 0
je 0x459d6f
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret