Function at 0x50d99c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x50d9a4
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x50dbf1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x517484], 0
je 0x50db7f
lea edx, [ebp - 0x1c]
mov eax, dword [0x515c1c]
mov eax, dword [eax]
call fcn.00480684
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409e74
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x50dc08
call fcn.00404c1c
mov eax, dword [ebp - 4]
call fcn.00409d74
test al, al
je 0x50da16
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004bda1c
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x10]
call fcn.004bdb78
lea eax, [ebp - 0x30]
mov edx, dword [0x517484]
call fcn.004051a4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
call fcn.004a1c78
lea ecx, [ebp - 0x38]
mov edx, 0x50dc1c
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0x24]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x34]
mov eax, 0x5174f0
call fcn.00404b98
lea ecx, [ebp - 0x40]
mov edx, 0x50dc1c
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0x24]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
call fcn.004051a4
mov edx, dword [ebp - 0x44]
pop eax
call fcn.004052dc
je 0x50db47
cmp dword [0x51717c], 0
je 0x50dab0
xor ecx, ecx
mov edx, 0x50dc38
mov eax, dword [0x51717c]
call fcn.004efa9c
lea ecx, [ebp - 0x4c]
mov edx, 0x50dc74
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0x24]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 8]
call fcn.00404b98
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4d5060]
call fcn.004d603c
mov dword [ebx + 0x514], eax
mov dl, 1
mov eax, dword [ebx + 0x418]
call fcn.0046007c
mov esi, dword [ebx + 0x514]
mov byte [esi + 0x38], 1
mov byte [esi + 0x40], 0
lea eax, [esi + 0x44]
mov edx, 0x50dc90
call fcn.00404964
mov eax, dword [ebx + 0x514]
add eax, 0x3c
mov edx, dword [ebp - 8]
call fcn.00404964
mov eax, dword [ebx + 0x514]
mov dword [eax + 0x74], ebx
mov dword [eax + 0x70], 0x50a5b0
mov dword [eax + 0x7c], ebx
mov dword [eax + 0x78], 0x50a238
call fcn.004d60e0
jmp 0x50db7f
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0050dcac
cmp dword [ebp - 0xc], 0
je 0x50db7f
push 5
push dword [ebp - 4]
push 0x50dca8
push dword [ebp - 0xc]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404c90
mov eax, dword [ebp - 0x50]
call fcn.00404dd0
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50dbf8
lea eax, [ebp - 0x50]
call fcn.00404910
lea eax, [ebp - 0x4c]
call fcn.00406838
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00405034
lea eax, [ebp - 0x40]
call fcn.00406838
lea eax, [ebp - 0x3c]
call fcn.0040501c
lea eax, [ebp - 0x38]
call fcn.00406838
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00405034
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404934
lea eax, [ebp - 0x14]
call fcn.00406838
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404934
ret