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

Disassembly:
sub esp, 0x17c
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x178], eax
push esi
mov esi, dword [esp + 0x184]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x6c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x6c], 5
jne 0x405f30
cmp dword [esp + 0x70], 0
jne 0x405f30
push esi
call fcn.00405e50
add esp, 4
pop esi
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x17c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
call ebp
mov esi, eax
test esi, esi
je 0x405f5b
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405f77
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
mov eax, 0x4005
pop esi
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x17c
ret
push ebx
push edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
mov ebx, eax
call edi
push str.Wtsapi32.dll
call ebp
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x405fa8
push str.WTSQueryUserToken
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
jne 0x405fb2
push esi
call edi
mov eax, 0x4005
jmp 0x40610a
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x1c], ebp
call eax
push esi
mov ebx, eax
call edi
cmp ebx, ebp
jne 0x405fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40610a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 1
push 1
push ebp
push 0x2000000
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x406012
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40600b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40610a
mov ecx, dword [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ebp
mov esi, 0x30
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x406035
mov esi, 0x430
push 0x44
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.0049fd30
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
push eax
push esi
push ebp
push ebp
push ebp
push ecx
push ebp
push edx
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x64], 0x4d6810
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4060c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4060a9
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4060b4
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4060c3
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, edi
jmp 0x40610a
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4060d8
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4060e3
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4060ee
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4060f9
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x406108
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
xor eax, eax
mov ecx, dword [esp + 0x188]
pop edi
pop ebx
pop ebp
pop esi
xor ecx, esp
call fcn.0049fcf1
add esp, 0x17c
ret