Function at 0x401000
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x3f8]
sub esp, 0x478
mov eax, dword [0x40d030]
xor eax, ebp
mov dword [ebp + 0x3f4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x408]
lea eax, [ebp - 0x30]
push eax
call fcn.00401278
lea eax, [ebp - 0x30]
call fcn.0040131b
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004016c0
mov edi, dword [eax + 4]
add eax, 0x10
push edi
lea esi, [ebp - 0x38]
mov dword [ebp - 0x38], eax
call fcn.00401569
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00402607
pop ecx
pop ecx
mov eax, edi
mov edx, esi
call fcn.0040169e
mov eax, dword [0x40dd0c]
mov ecx, 0x40dd0c
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [ebp - 0x30]
add ebx, 0x10
xor esi, esi
mov dword [ebp - 0x40], ebx
cmp dword [eax - 0xc], esi
jne 0x4010c1
lea eax, [ebx - 0x10]
call fcn.0040191e
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.0040191e
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.0040191e
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3f4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d58
add ebp, 0x3f8
leave
ret 0x10
mov edi, dword [ebp - 0x38]
cmp dword [edi - 0xc], esi
jl 0x4010e3
push str..exe
push edi
call fcn.0040233a
pop ecx
pop ecx
cmp eax, esi
je 0x4010e3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x401105
or esi, 0xffffffff
lea eax, [ebx - 0x10]
call fcn.0040191e
lea eax, [edi - 0x10]
call fcn.0040191e
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.0040191e
mov eax, esi
jmp 0x4010a7
lea ecx, [eax + 4]
cmp dword [edi - 0xc], ecx
mov dword [ebp - 0x34], ecx
jle 0x401165
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp - 0x44]
push eax
sub ecx, 4
lea eax, [ebp - 0x30]
call fcn.004013ba
lea edi, [ebp - 0x40]
call fcn.004012da
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.0040191e
mov eax, edi
call fcn.0040131b
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.0040140a
lea edi, [ebp - 0x30]
call fcn.004012da
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.0040191e
mov ebx, dword [ebp - 0x40]
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x1dc], ax
lea eax, [ebp + 0x1de]
push esi
push eax
call fcn.004022c0
xor eax, eax
push edi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2a]
push esi
push eax
call fcn.004022c0
push esi
push esi
push esi
push esi
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp + 0x1dc]
push eax
mov eax, dword [0x40dd6c]
push dword [eax]
call fcn.00401d67
add esp, 0x3c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea edi, [ebp + 0x1dc]
call fcn.00401278
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.00401446
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040191e
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, str.open
lea edi, [ebp + 0x3e4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3c
movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
push esi
lea edi, [ebp + 0x3f0]
push eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
call fcn.004022c0
lea eax, [ebp + 0x3e4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
add esp, 0xc
mov dword [ebp - 0x70], eax
call esi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], 0x40
call esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x64], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp dword [ebp - 0x60], 0x20
setl al
mov esi, eax
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.0040191e
mov edi, dword [ebp - 0x38]
jmp 0x4010e6