Function at 0x40344c
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 [0x4150dc]
cmp eax, 3
je 0x4034f9
or dword [ebp - 0x28], 1
sub eax, ebx
je 0x4034f3
dec eax
je 0x4034eb
dec eax
je 0x4034e3
dec eax
jne 0x4034f9
mov word [ebp - 0x24], bx
jmp 0x4034f9
mov word [ebp - 0x24], 3
jmp 0x4034f9
mov word [ebp - 0x24], 6
jmp 0x4034f9
mov word [ebp - 0x24], 5
cmp dword [0x415140], ebx
jne 0x4036c7
mov eax, dword [0x415190]
cmp eax, ebx
je 0x403511
push eax
jmp 0x403517
push dword [0x415150]
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.00403276
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
push dword [0x415188]
lea eax, [ebp - 0x158]
push eax
call edi
lea eax, [ebp - 0x158]
push ebx
push eax
call fcn.004014b7
pop ecx
test eax, eax
pop ecx
jne 0x40357a
push dword [0x415188]
lea eax, [ebp - 0x158]
push eax
call esi
lea eax, [ebp - 0x2c0]
push eax
call fcn.004032a1
lea eax, [ebp - 0x158]
push eax
call fcn.0040374d
pop ecx
test eax, eax
pop ecx
jne 0x4035e4
movzx eax, word [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x158]
push dword [0x41518c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
jle 0x40372a
push ebx
call fcn.004037b1
pop ecx
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4035c8
jmp 0x4036c7
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 [0x4151a0], ebx
mov esi, 0x414198
je 0x403636
lea eax, [ebp - 0x158]
push esi
push eax
call edi
push dword [0x4151a0]
lea eax, [ebp - 0x158]
push eax
call edi
cmp dword [0x41518c], ebx
je 0x403657
lea eax, [ebp - 0x158]
push esi
push eax
call edi
push dword [0x41518c]
lea eax, [ebp - 0x158]
push eax
call edi
push ebx
push 0x403732
push ebx
push 0x3f1
push dword [0x4150d8]
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 0x4036cb
push ebx
call fcn.004037b1
pop ecx
push 0x64
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403697
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 0x40372d
push 0x18
xor eax, eax
pop ecx
lea edi, [ebp - 0x1bb]
mov byte [ebp - 0x1bc], bl
cmp dword [0x41519c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x40370f
lea eax, [ebp - 0x1bc]
push 0x64
push eax
push 0x31
push str.Strings
call fcn.0040144c
add esp, 0x10
test eax, eax
je 0x40370f
lea eax, [ebp - 0x1bc]
push ebx
push eax
jmp 0x403715
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