Function at 0x40868c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431e2c
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x4086d5
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push eax
call edi
test eax, eax
jne 0x40889d
mov eax, dword [esi]
cmp eax, ebx
je 0x4086d5
push 0xffffffffffffffff
push eax
call edi
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call edi
xor edx, edx
mov eax, esi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push ebp
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 0x10]
push 0x5c
push ecx
mov dword [esp + 0x278], ebx
call fcn.004052c3
add esp, 8
test al, al
jne 0x4087a6
push ebx
lea ecx, [esp + 0x18]
call fcn.0040cc90
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x27c], 2
call fcn.0040c5e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408740
sub eax, edx
mov edx, eax
mov eax, dword [esi + 0x10]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408751
sub eax, edi
lea ecx, [eax + edx + 2]
push ecx
call fcn.0042479d
mov edx, dword [esi + 0x10]
mov ebp, eax
mov eax, dword [esp + 0x14]
push edx
push eax
push str._s_s
push ebp
mov dword [esp + 0x2c], ebp
call fcn.00424814
mov ecx, dword [esp + 0x24]
push ecx
mov byte [esp + 0x288], 1
call fcn.00424033
mov edx, dword [esp + 0x2c]
push edx
mov byte [esp + 0x28c], bl
call fcn.00424033
add esp, 0x1c
jmp 0x4087b8
mov eax, dword [esi + 0x10]
push eax
call fcn.00405292
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 0x10]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4087c0
sub eax, edx
mov edx, eax
mov eax, dword [esi + 0x14]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4087d1
sub eax, edi
lea ecx, [eax + edx + 4]
push ecx
call fcn.0042479d
mov edi, eax
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
push str.__s___s
push edi
mov byte [esp + 0x284], 3
call fcn.00424814
mov eax, dword [esp + 0x28c]
add esp, 0x14
cmp eax, ebx
push esi
je 0x40882e
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push edi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
jmp 0x408845
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x40886d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_launch_process
lea ecx, [esp + 0x68]
call fcn.004080dc
push 0x43cf90
lea eax, [esp + 0x64]
push eax
call fcn.0042409a
mov ecx, dword [esi]
push 0x3a98
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push edi
mov byte [esp + 0x274], bl
call fcn.00424033
push ebp
mov dword [esp + 0x278], 0xffffffff
call fcn.00424033
add esp, 8
pop ebp
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x264
ret 4