Function at 0x408629
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x43eeac
call fcn.0043cc34
sub esp, 0x278
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
call fcn.0040414c
mov esi, dword [eax + 0xcc]
lea eax, [ebp - 0x24]
push eax
mov eax, esi
mov dword [ebp - 0x18], esi
call fcn.0040806e
push 4
lea ecx, [ebp - 0x1c]
xor edi, edi
push ecx
mov dword [ebp - 4], ebx
inc edi
mov ecx, eax
mov dword [ebp - 0x10], edi
call fcn.00408cb4
mov dword [ebp - 4], edi
push str..exe
mov ecx, eax
mov dword [ebp - 0x10], 3
call fcn.004014ef
test eax, eax
je 0x4086d1
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.0040806e
push 4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [ebp - 0x10], 7
call fcn.00408cb4
mov dword [ebp - 4], 3
push str..com
mov ecx, eax
mov dword [ebp - 0x10], 0xf
call fcn.004014ef
mov byte [ebp - 0x11], bl
test eax, eax
jne 0x4086d5
mov byte [ebp - 0x11], 1
test byte [ebp - 0x10], 8
je 0x4086e7
and dword [ebp - 0x10], 0xfffffff7
lea ecx, [ebp - 0x28]
call fcn.004015ab
test byte [ebp - 0x10], 4
je 0x4086f9
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x20]
call fcn.004015ab
test byte [ebp - 0x10], 2
je 0x40870b
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x1c]
call fcn.004015ab
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x40871d
lea ecx, [ebp - 0x24]
call fcn.004015ab
cmp byte [ebp - 0x11], bl
je 0x4087fd
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0042af40
add esp, 0xc
mov eax, esi
mov dword [ebp - 0x7c], edi
call fcn.00408063
mov edi, eax
mov esi, edi
neg esi
sbb esi, esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
and esi, 0x400
or esi, 0x20
call fcn.0040806e
mov ecx, eax
call fcn.00403875
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00408d08
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.004015ab
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push edi
push esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x284]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408880
lea ecx, [ebp - 0x10]
call fcn.0040154a
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push 0x8a
push eax
call fcn.00404bfd
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00403875
push ebx
mov esi, eax
push 0x10
push esi
call fcn.0040d800
call fcn.00404113
mov ecx, esi
mov ebx, str.close_error
mov edi, eax
call fcn.00405686
push 4
call fcn.004292c2
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.0040806e
push edi
push ebx
push ebx
mov ecx, eax
call fcn.00403875
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004015ab
cmp esi, 0x20
jg 0x408880
lea ecx, [ebp - 0x10]
call fcn.0040154a
push 5
pop esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push 0x8c
push eax
call fcn.00404bfd
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00403875
push ebx
mov edi, eax
push 0x10
push edi
call fcn.0040d800
call fcn.00404113
mov ecx, edi
mov ebx, str.close_error
mov edi, eax
call fcn.00405686
push esi
jmp 0x4087f8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret