Function at 0x405350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2dc
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2a8]
sub esp, 0x18
test ebx, ebx
mov dword [ebp - 0x2b0], eax
je 0x405710
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp eax, 0xf
mov esi, eax
mov dword [ebp - 0x140], eax
ja 0x405610
cmp eax, 1
je 0x4056e1
test eax, eax
lea edx, [ebp - 0x2a8]
jne 0x405747
mov dword [ebp - 0x2ac], eax
mov byte [edx + eax], 0
lea esi, [ebp - 0x290]
mov edi, dword [ebp - 0x2b0]
mov ebx, dword [ebp - 0x2ac]
mov dword [ebp - 0x298], esi
mov eax, edi
add eax, ebx
je 0x405415
test edi, edi
jne 0x405415
mov dword [esp], 0x4ec064
call fcn.004da760
cmp ebx, 0xf
mov dword [ebp - 0x2b4], ebx
ja 0x405662
cmp ebx, 1
je 0x4056f5
lea ecx, [ebp - 0x298]
xor eax, eax
test ebx, ebx
mov edx, esi
mov dword [ebp - 0x2bc], ecx
jne 0x405740
mov dword [ebp - 0x294], eax
mov byte [edx + eax], 0
lea eax, [ebp - 0x280]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00404f60
mov eax, dword [ebp - 0x280]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x280]
lea edx, [ebp - 0x278]
cmp eax, edx
je 0x40548d
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x298]
cmp eax, esi
je 0x40549f
mov dword [esp], eax
call fcn.004e0b90
mov dword [esp], 0x78
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
cmp dword [ebp - 0x2c0], 0x2a
mov dword [esp + 4], 0
mov dword [esp], 2
je 0x405560
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
mov esi, eax
je 0x4055d0
mov dword [ebp - 0x140], 0x128
xor ebx, ebx
lea edi, [ebp - 0x140]
jmp 0x405510
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call sub.msvcrt.dll__stricmp
cmp eax, 1
adc ebx, 0
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.dll_Process32Next
sub esp, 8
cmp eax, 1
je 0x4054f2
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
jne 0x4055d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add eax, 8
mov byte [ecx + 8], 0x32
mov dword [ecx + 4], 1
mov dword [ecx], eax
mov byte [ecx + 9], 0
jmp 0x4055ea
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
mov esi, eax
je 0x4055d0
mov dword [ebp - 0x268], 0x128
xor ebx, ebx
lea edi, [ebp - 0x268]
jmp 0x4055a1
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x244]
mov dword [esp], eax
call sub.msvcrt.dll__stricmp
cmp eax, 1
adc ebx, 0
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.dll_Process32Next
sub esp, 8
cmp eax, 1
je 0x405583
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
je 0x4056c2
lea esi, [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add eax, 8
mov byte [ecx + 8], 0x30
mov dword [ecx + 4], 1
mov dword [ecx], eax
mov byte [ecx + 9], 0
mov eax, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x2a8]
cmp eax, ecx
je 0x405602
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x140]
lea ecx, [ebp - 0x2b0]
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004c4000
mov edx, dword [ebp - 0x140]
sub esp, 8
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2a8], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x2b0]
jmp 0x4053dd
lea eax, [ebp - 0x298]
mov dword [esp + 4], 0
mov ecx, eax
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2b4]
mov dword [esp], eax
call fcn.004c4000
mov edx, dword [ebp - 0x2b4]
sub esp, 8
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x290], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x2bc]
jmp 0x405445
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
add eax, 8
mov byte [edx + 8], 0x31
mov dword [edx + 4], 1
mov dword [edx], eax
mov byte [edx + 9], 0
jmp 0x4055ea
movzx edx, byte [ebx]
mov byte [ebp - 0x2a8], dl
lea edx, [ebp - 0x2a8]
jmp 0x4053dd
movzx eax, byte [edi]
mov edx, esi
lea ecx, [ebp - 0x298]
mov byte [ebp - 0x290], al
mov eax, 1
jmp 0x405445
mov dword [esp], 0x4ec064
call fcn.004da760
mov ebx, eax
mov eax, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x2a8]
cmp eax, ecx
je 0x405736
mov dword [esp], eax
call fcn.004e0b90
mov dword [esp], ebx
call fcn.00441150
nop
mov eax, esi
jmp 0x40569b
mov eax, edx
jmp 0x405641