Function at 0x50c39c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x50c3a5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058fc
mov eax, dword [ebp - 8]
call fcn.004058fc
mov ecx, 9
lea eax, [ebp - 0x38]
mov edx, dword [0x407908]
call fcn.00405f4c
xor eax, eax
push ebp
push 0x50c66d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0040c97c
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 4]
call fcn.004054e0
cmp dword [ebp - 4], 0
je 0x50c616
lea ecx, [ebp - 0x48]
mov edx, 0x50c680
mov eax, dword [ebp - 4]
call fcn.005118bc
cmp dword [ebp - 0x48], 0
je 0x50c616
push 0x50c6a8
push 0x50c6a8
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x50c6b4
call fcn.0049cd9c
mov edi, eax
cmp dword [ebp - 4], 0
jbe 0x50c493
mov eax, dword [ebp - 4]
cmp byte [eax], 0x22
je 0x50c493
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.0040dd4c
cmp dword [ebp - 0x4c], 0
jbe 0x50c493
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00510518
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.0040dd4c
cmp dword [ebp - 0x50], 0
jne 0x50c493
lea eax, [ebp - 0xc]
call fcn.00405448
jmp 0x50c5e1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004054e0
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
mov eax, edi
call fcn.0049d808
mov edi, 1
lea ebx, [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, dword [0x407908]
call fcn.00406b2c
xor esi, esi
lea edx, [ebp - 0x5c]
mov eax, edi
call fcn.0040d138
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x50c6c0
call fcn.00405758
mov eax, dword [ebp - 0x58]
lea ecx, [esi + 1]
mov edx, dword [ebp - 0xc]
call fcn.0045732c
mov esi, eax
test esi, esi
je 0x50c522
mov eax, dword [ebp - 0x10]
call fcn.00406870
inc eax
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x407908]
call fcn.00406a2c
add esp, 4
mov eax, dword [ebp - 0x10]
call fcn.00406870
mov edx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 4], esi
jmp 0x50c4c3
mov eax, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x407908]
call fcn.00406b68
inc edi
add ebx, 4
cmp edi, 0xa
jne 0x50c4b3
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, 0x50c6b4
call fcn.0050a3a4
mov edi, 1
lea ebx, [ebp - 0x38]
mov eax, dword [ebx]
call fcn.00406870
dec eax
test eax, eax
jl 0x50c58c
inc eax
mov dword [ebp - 0x40], eax
xor esi, esi
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov edx, eax
inc edx
push edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + edi*4 - 4]
push eax
lea eax, [ebp - 0xc]
pop ecx
call fcn.00510430
inc esi
dec dword [ebp - 0x40]
jne 0x50c56c
mov eax, dword [ebx]
call fcn.00406870
test eax, eax
jle 0x50c5a7
mov edx, edi
dec edx
lea eax, [ebp - 0x14]
mov ecx, 1
call fcn.0050ab5c
inc edi
add ebx, 4
cmp edi, 0xa
jne 0x50c55a
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x14]
mov eax, 0x50c6b4
call fcn.0050a508
mov edx, dword [ebp - 0x64]
xor ecx, ecx
mov eax, 0x50c6b4
call fcn.0050fb88
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00405758
cmp dword [ebp - 4], 0
jbe 0x50c610
mov eax, dword [ebp - 0x3c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040590c
push eax
mov eax, dword [ebp - 4]
call fcn.0040590c
push eax
push 0x50c6c4
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x50c614
xor ebx, ebx
jmp 0x50c616
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c674
lea eax, [ebp - 0x64]
mov edx, 9
call fcn.0040546c
lea eax, [ebp - 0x38]
mov ecx, 9
mov edx, dword [0x407908]
call fcn.00406038
lea eax, [ebp - 0x14]
mov edx, dword [0x407934]
call fcn.00406b2c
lea eax, [ebp - 0x10]
mov edx, dword [0x407908]
call fcn.00406b2c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040546c
ret