Function at 0x408d59
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x43cb09
call fcn.0043a764
sub esp, 0x278
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
call fcn.00404177
mov esi, dword [eax + 0xcc]
lea eax, [ebp - 0x24]
push eax
mov eax, esi
mov dword [ebp - 0x18], esi
call fcn.0040879e
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.004093e5
mov dword [ebp - 4], edi
push str..exe
mov ecx, eax
mov dword [ebp - 0x10], 3
call fcn.004014ef
test eax, eax
je 0x408e01
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.0040879e
push 4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [ebp - 0x10], 7
call fcn.004093e5
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 0x408e05
mov byte [ebp - 0x11], 1
test byte [ebp - 0x10], 8
je 0x408e17
and dword [ebp - 0x10], 0xfffffff7
lea ecx, [ebp - 0x28]
call fcn.004015a7
test byte [ebp - 0x10], 4
je 0x408e29
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x20]
call fcn.004015a7
test byte [ebp - 0x10], 2
je 0x408e3b
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x1c]
call fcn.004015a7
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x408e4d
lea ecx, [ebp - 0x24]
call fcn.004015a7
cmp byte [ebp - 0x11], bl
je 0x408f2d
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.00429890
add esp, 0xc
mov eax, esi
mov dword [ebp - 0x7c], edi
call fcn.00408793
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.0040879e
mov ecx, eax
call fcn.00403884
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00409439
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.004015a7
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 0x408fb0
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 0x8b
push eax
call fcn.00404c20
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00403884
push ebx
mov esi, eax
push 0x10
push esi
call fcn.0040dafa
call fcn.00404142
mov ecx, esi
mov ebx, str.close_error
mov edi, eax
call fcn.0040559a
push 4
call fcn.0042822e
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.0040879e
push edi
push ebx
push ebx
mov ecx, eax
call fcn.00403884
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004015a7
cmp esi, 0x20
jg 0x408fb0
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.00404c20
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00403884
push ebx
mov edi, eax
push 0x10
push edi
call fcn.0040dafa
call fcn.00404142
mov ecx, edi
mov ebx, str.close_error
mov edi, eax
call fcn.0040559a
push esi
jmp 0x408f28
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret