Function at 0x4038c1
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 0x40396e
or dword [ebp - 0x28], 1
sub eax, ebx
je 0x403968
dec eax
je 0x403960
dec eax
je 0x403958
dec eax
jne 0x40396e
mov word [ebp - 0x24], bx
jmp 0x40396e
mov word [ebp - 0x24], 3
jmp 0x40396e
mov word [ebp - 0x24], 6
jmp 0x40396e
mov word [ebp - 0x24], 5
cmp dword [0x416140], ebx
jne 0x403b52
mov eax, dword [0x4161bc]
cmp eax, ebx
je 0x40398e
cmp dword [0x41614c], ebx
jne 0x40398e
push eax
jmp 0x403994
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.004036eb
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 0x4039f7
push dword [0x4161b4]
lea eax, [ebp - 0x158]
push eax
call esi
lea eax, [ebp - 0x2c0]
push eax
call fcn.00403716
lea eax, [ebp - 0x158]
push eax
call fcn.00403bd8
pop ecx
test eax, eax
pop ecx
jne 0x403a61
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 0x403bb5
push ebx
call fcn.00403c3c
pop ecx
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403a45
jmp 0x403b52
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 0x403ab3
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 0x403ad4
lea eax, [ebp - 0x158]
push esi
push eax
call edi
push dword [0x4161b8]
lea eax, [ebp - 0x158]
push eax
call edi
push ebx
push 0x403bbd
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 0x403b56
push ebx
call fcn.00403c3c
pop ecx
push 0x64
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403b14
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 0x403bb8
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 0x403b9a
lea eax, [ebp - 0x1bc]
push 0x64
push eax
push 0x31
push str.Strings
call fcn.00401457
add esp, 0x10
test eax, eax
je 0x403b9a
lea eax, [ebp - 0x1bc]
push ebx
push eax
jmp 0x403ba0
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