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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x11064c1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x12c], edi
cmp ecx, edi
je 0x1100180d
mov dword [ebp - 0x11c], ecx
jmp 0x11001819
lea edx, [ebp - 0x178]
mov dword [ebp - 0x11c], edx
cmp eax, edi
je 0x11001827
mov esi, eax
mov dword [ebp - 0x124], esi
jmp 0x11001835
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x124], eax
mov esi, eax
push 0x114
lea ecx, [ebp - 0x118]
push edi
push ecx
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x130], edi
call fcn.110278e0
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x1100195d
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.110012f0
add esp, 8
test eax, eax
je 0x110018f2
push 0x60000
push edi
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov ebx, eax
mov dword [ebp - 0x138], ebx
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov esi, eax
push ebx
mov dword [ebp - 0x130], esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x110018f2
push 0x60081
push edi
push edi
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
mov dword [ebp - 0x140], edi
test edi, edi
jne 0x11001905
push esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push ebx
call dword [sym.imp.USER32.dll_CloseWindowStation]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.110278cd
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 1
push 1
push edi
call esi
mov dword [ebp - 0x128], eax
test eax, eax
je 0x11001aec
push 1
push 1
push ebx
call esi
mov dword [ebp - 0x128], eax
test eax, eax
je 0x11001aec
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x12c]
push ecx
push 1
push edx
push edi
push ebx
call fcn.11001560
mov ebx, dword [ebp - 0x134]
mov esi, dword [ebp - 0x124]
add esp, 0x14
xor edi, edi
push 0x44
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.110278e0
add esp, 0xc
mov dword [esi], 0x44
cmp dword [esi + 8], edi
jne 0x11001981
mov dword [esi + 8], str.Winsta0Default
push str.userenv
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x110019e2
push str.CreateEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x110019e2
push 0
push ebx
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x110019d8
mov edx, dword [ebp - 0x120]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x110019d8
or dword [ebp + 0x20], 0x400
mov dword [ebp - 0x13c], 1
jmp 0x110019e2
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x20]
push esi
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp - 0x144]
push eax
push ecx
push 0
push 0
push edx
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x13c], 0
mov esi, eax
mov dword [ebp - 0x128], esi
je 0x11001a3e
push str.DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x11001a3e
mov ecx, dword [ebp - 0x120]
push ecx
call eax
test edi, edi
je 0x11001a49
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x11001aec
cmp dword [ebp + 0x14], 0
je 0x11001acc
mov edx, dword [ebp - 0x11c]
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
push edx
push 1
call ebx
test eax, eax
je 0x11001acc
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x168]
push eax
call esi
test eax, eax
je 0x11001ab4
lea ecx, [ebp - 0x168]
push ecx
call edi
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x168]
push edx
call esi
test eax, eax
jne 0x11001a96
mov eax, dword [ebp - 0x11c]
push 0x4ff
push 0xffffffffffffffff
push 0
push eax
push 1
call ebx
test eax, eax
jne 0x11001a81
cmp dword [ebp - 0x14c], 0
jne 0x11001aec
mov edi, dword [ebp - 0x11c]
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [edi]
push edx
call esi
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x11001b06
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x140]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x11001b31
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
test eax, eax
jne 0x11001b31
call esi
push eax
push str.Error_closing_desktop__e_d_n
call fcn.11004b40
add esp, 8
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x11001b42
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x11001b67
push eax
call dword [sym.imp.USER32.dll_CloseWindowStation]
test eax, eax
jne 0x11001b67
call esi
push eax
push str.Error_closing_winsta__e_d_n
call fcn.11004b40
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.110278cd
mov esp, ebp
pop ebp
ret