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

Disassembly:
push 0xffffffffffffffff
push 0x44b12b
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x45f2c0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f2c0]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov edi, edx
jne 0x40d05c
xor eax, eax
jmp 0x40d23e
mov eax, dword [0x46126c]
mov edx, dword [eax + 0xc]
mov ecx, 0x46126c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
push edi
push esi
push str.__s___s
lea edi, [esp + 0x2c]
mov dword [esp + 0x1ac], ebx
call fcn.00409200
push 0x110
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.00433ff0
add esp, 0x18
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x80], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d0ca
cmp dword [esp + 0x80], 6
jne 0x40d0ca
mov esi, 1
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x18], ebx
lea esi, [esp + 0x18]
jne 0x40d0df
call fcn.0040c5b0
jmp 0x40d0e4
call fcn.0040c540
cmp eax, ebx
jne 0x40d202
push 0x40
lea edx, [esp + 0x3c]
push ebx
push edx
mov dword [esp + 0x40], 0x44
call fcn.00433ff0
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], 1
mov word [esp + 0x64], bx
call fcn.0040c660
test al, al
jne 0x40d13d
lea eax, [esp + 0x18]
push eax
call fcn.0040c870
add esp, 4
push str.userenv.dll
mov dword [esp + 0x40], str.Winsta0Default
mov ebp, 0x30
mov dword [esp + 0x20], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d1a0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push ebx
call edi
push str.DestroyEnvironmentBlock
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x40d1a0
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x40d198
mov ebp, 0x430
jmp 0x40d1a0
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edx
push ebp
push 0
push 0
push 0
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebp, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40d1db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40d1ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40d1f5
mov edx, dword [esp + 0x1c]
push edx
call edi
test ebx, ebx
je 0x40d200
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d211
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1a0], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d23c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0043244e
add esp, 0x190
ret