Function at 0x4039c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x794
mov eax, dword [0x442308]
xor eax, esp
mov dword [esp + 0x790], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0
push edi
jne 0x403a00
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x790]
xor ecx, esp
call fcn.0042364d
mov esp, ebp
pop ebp
ret
push 0x114
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.00423660
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x392]
push eax
mov word [esp + 0x394], dx
call fcn.00423660
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x196]
push edx
mov word [esp + 0x198], cx
call fcn.00423660
mov edi, 8
add esp, 0x18
cmp dword [esi + 0x18], edi
jb 0x403a73
mov esi, dword [esi + 4]
jmp 0x403a76
add esi, 4
lea eax, [esp + 0x388]
mov ecx, eax
mov edx, 0x208
sub esi, ecx
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x403aa6
movzx ecx, word [esi + eax]
test cx, cx
je 0x403aa6
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403a86
jmp 0x403aaa
test edx, edx
jne 0x403aad
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], edi
jb 0x403abf
mov esi, dword [eax + 4]
jmp 0x403ac2
lea esi, [eax + 4]
lea eax, [esp + 0x180]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x403af2
movzx ecx, word [esi + eax]
test cx, cx
je 0x403af2
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403ad2
jmp 0x403af6
test edx, edx
jne 0x403af9
sub eax, 2
xor edx, edx
push 0x44
mov word [eax], dx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00423660
add esp, 0xc
xor eax, eax
push 0x60081
push eax
push eax
push str.default
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
test edi, edi
jne 0x403b5a
mov eax, 0x80070005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x790]
xor ecx, esp
call fcn.0042364d
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov dword [esp + 0x10], eax
call esi
movzx eax, word [esp + 0x180]
lea ecx, [esp + 0x10]
push ecx
neg eax
lea edx, [esp + 0x24]
push edx
sbb eax, eax
lea ecx, [esp + 0x188]
and eax, ecx
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x3a8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403bbd
mov eax, dword [esp + 0xc]
push eax
jmp 0x403cb8
push 0
call esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403c2f
push 0x5b4
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403bf7
push eax
call esi
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403c0a
push eax
call esi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
push eax
call ebx
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x790]
xor ecx, esp
call fcn.0042364d
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x403c87
push eax
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403c4f
push eax
call esi
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403c62
push eax
call esi
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0xc]
push ecx
call ebx
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x790]
xor ecx, esp
call fcn.0042364d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403ca0
push eax
call esi
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403cb3
push eax
call esi
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc]
push edx
call ebx
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov ecx, dword [esp + 0x79c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x80004005
call fcn.0042364d
mov esp, ebp
pop ebp
ret