Function at 0x4038d7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x2bf]
mov byte [ebp - 0x2c0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x3c3]
mov byte [ebp - 0x3c4], bl
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [0x4160dc]
cmp eax, 3
je 0x403984
or dword [ebp - 0x28], 1
sub eax, ebx
je 0x40397e
dec eax
je 0x403976
dec eax
je 0x40396e
dec eax
jne 0x403984
mov word [ebp - 0x24], bx
jmp 0x403984
mov word [ebp - 0x24], 3
jmp 0x403984
mov word [ebp - 0x24], 6
jmp 0x403984
mov word [ebp - 0x24], 5
cmp dword [0x416140], ebx
jne 0x403b68
mov eax, dword [0x4161bc]
cmp eax, ebx
je 0x4039a4
cmp dword [0x41614c], ebx
jne 0x4039a4
push eax
jmp 0x4039aa
push dword [0x41617c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x2c0]
push eax
call esi
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x158]
push eax
call esi
lea eax, [ebp - 0x158]
push eax
call fcn.00403701
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
push dword [0x4161b4]
lea eax, [ebp - 0x158]
push eax
call edi
lea eax, [ebp - 0x158]
push ebx
push eax
call fcn.004014c2
pop ecx
test eax, eax
pop ecx
jne 0x403a0d
push dword [0x4161b4]
lea eax, [ebp - 0x158]
push eax
call esi
lea eax, [ebp - 0x2c0]
push eax
call fcn.0040372c
lea eax, [ebp - 0x158]
push eax
call fcn.00403bee
pop ecx
test eax, eax
pop ecx
jne 0x403a77
movzx eax, word [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x158]
push dword [0x4161b8]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
jle 0x403bcb
push ebx
call fcn.00403c52
pop ecx
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403a5b
jmp 0x403b68
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x3c4]
push eax
call esi
lea eax, [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x158]
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [0x4161cc], ebx
mov esi, 0x415198
je 0x403ac9
lea eax, [ebp - 0x158]
push esi
push eax
call edi
push dword [0x4161cc]
lea eax, [ebp - 0x158]
push eax
call edi
cmp dword [0x4161b8], ebx
je 0x403aea
lea eax, [ebp - 0x158]
push esi
push eax
call edi
push dword [0x4161b8]
lea eax, [ebp - 0x158]
push eax
call edi
push ebx
push 0x403bd3
push ebx
push 0x3f1
push dword [0x4160d8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c0]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x158]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403b6c
push ebx
call fcn.00403c52
pop ecx
push 0x64
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403b2a
push 0x416170
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
call edi
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x403bce
push 0x18
xor eax, eax
pop ecx
lea edi, [ebp - 0x1bb]
mov byte [ebp - 0x1bc], bl
cmp dword [0x4161c8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x403bb0
lea eax, [ebp - 0x1bc]
push 0x64
push eax
push 0x31
push str.Strings
call fcn.00401457
add esp, 0x10
test eax, eax
je 0x403bb0
lea eax, [ebp - 0x1bc]
push ebx
push eax
jmp 0x403bb6
push ebx
push str.Unable_to_Execute_
lea eax, [ebp - 0x158]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0xc
pop eax
pop edi
pop esi
pop ebx
leave
ret