Function at 0x403951
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
mov dword [0x41915c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [0x4190ec]
cmp eax, 3
je 0x403a04
or dword [ebp - 0x28], 1
sub eax, ebx
je 0x4039fe
dec eax
je 0x4039f6
dec eax
je 0x4039ee
dec eax
jne 0x403a04
mov word [ebp - 0x24], bx
jmp 0x403a04
mov word [ebp - 0x24], 3
jmp 0x403a04
mov word [ebp - 0x24], 6
jmp 0x403a04
mov word [ebp - 0x24], 5
cmp dword [0x419150], ebx
jne 0x403bf6
mov eax, dword [0x4191d0]
cmp eax, ebx
je 0x403a24
cmp dword [0x419160], ebx
jne 0x403a24
push eax
jmp 0x403a2a
push dword [0x419190]
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.0040377b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
push dword [0x4191c8]
lea eax, [ebp - 0x158]
push eax
call edi
lea eax, [ebp - 0x158]
push ebx
push eax
call fcn.004015dc
pop ecx
test eax, eax
pop ecx
jne 0x403a8d
push dword [0x4191c8]
lea eax, [ebp - 0x158]
push eax
call esi
lea eax, [ebp - 0x2c0]
push eax
call fcn.004037a6
lea eax, [ebp - 0x158]
push eax
call fcn.00403c87
pop ecx
test eax, eax
pop ecx
jne 0x403af7
movzx eax, word [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x158]
push dword [0x4191cc]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
jle 0x403c64
push ebx
call fcn.00403ceb
pop ecx
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403adb
jmp 0x403bf6
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 [0x4191e0], ebx
mov esi, 0x416198
je 0x403b49
lea eax, [ebp - 0x158]
push esi
push eax
call edi
push dword [0x4191e0]
lea eax, [ebp - 0x158]
push eax
call edi
cmp dword [0x4191cc], ebx
je 0x403b6a
lea eax, [ebp - 0x158]
push esi
push eax
call edi
push dword [0x4191cc]
lea eax, [ebp - 0x158]
push eax
call edi
push ebx
push 0x403c6c
push ebx
push 0x3f1
push dword [0x4190e8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x41915c], 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 0x403bfa
push ebx
call fcn.00403ceb
pop ecx
push 0x64
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403bad
push 0x419184
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push dword [0x41915c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41915c], ebx
xor eax, eax
jmp 0x403c67
push 0x18
xor eax, eax
pop ecx
lea edi, [ebp - 0x1bb]
mov byte [ebp - 0x1bc], bl
cmp dword [0x4191dc], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x403c3e
lea eax, [ebp - 0x1bc]
push 0x64
push eax
push 0x31
push str.Strings
call fcn.00401571
add esp, 0x10
test eax, eax
je 0x403c3e
lea eax, [ebp - 0x1bc]
push ebx
push eax
jmp 0x403c44
push ebx
push str.Unable_to_Execute_
lea eax, [ebp - 0x158]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [0x41915c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41915c], ebx
push 0xc
pop eax
pop edi
pop esi
pop ebx
leave
ret