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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x442480
xor eax, eax
jmp 0x442775
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004b6500
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00442790
add esp, 0xc
mov dword [ebp - 0x238], 0
push 0x110
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.004b6500
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 0x44250d
cmp dword [ebp - 0x234], 6
jne 0x44250d
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x118], 0
jne 0x44253e
lea edx, [ebp - 0x114]
push edx
call fcn.00442ac0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x442550
lea eax, [ebp - 0x114]
push eax
call fcn.004427f0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x442759
mov dword [ebp - 0x3b0], 0x44
push 0x40
push 0
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.004b6500
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.00442b90
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x4425ba
lea edx, [ebp - 0x114]
push edx
call fcn.00442cc0
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 0x442640
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 0x442681
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x3b4]
push eax
call dword [ebp - 0x240]
test eax, eax
je 0x442677
mov ecx, dword [ebp - 0x364]
or ecx, 0x400
mov dword [ebp - 0x364], ecx
jmp 0x442681
mov dword [ebp - 0x3b4], 0
mov byte [ebp - 0x360], 0
push 0x103
push 0
lea edx, [ebp - 0x35f]
push edx
call fcn.004b6500
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x103
lea ecx, [ebp - 0x360]
push ecx
call fcn.004bf7bf
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 0x442717
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24c], 0
je 0x44272d
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
je 0x442743
mov eax, dword [ebp - 0x3b4]
push eax
call dword [ebp - 0x254]
cmp dword [ebp - 0x23c], 0
je 0x442759
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x114], 0
je 0x44276f
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.004b645d
mov esp, ebp
pop ebp
ret