Function at 0x50b4a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50b74d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x3e8
call sub.user32.dll_UnpackDDElParam
test eax, eax
je 0x50b722
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22]
mov edx, 2
call fcn.00407b2c
cmp dword [ebp - 0x18], 0
je 0x50b722
cmp byte [0x514638], 0
je 0x50b584
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x18]
call fcn.00404b48
mov edx, dword [ebp - 0x38]
mov eax, 0x50b764
call fcn.00404f54
dec eax
jne 0x50b56e
lea eax, [ebp - 0x38]
mov ecx, 1
mov edx, 1
call fcn.00404eb0
lea eax, [ebp - 0x38]
push eax
mov edx, dword [ebp - 0x38]
mov eax, 0x50b764
call fcn.00404f54
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.00404e70
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0050cbf8
mov word [ebp - 0x22], 1
jmp 0x50b6de
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 0x18]
call fcn.00404b48
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x14]
call fcn.0050b188
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
dec eax
je 0x50b5b9
dec eax
je 0x50b5f0
dec eax
je 0x50b66d
jmp 0x50b6de
cmp dword [ebp - 0x14], 0
je 0x50b5cc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0050cbf8
jmp 0x50b5dd
cmp dword [ebp - 0x34], 0
je 0x50b5dd
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0050cb38
mov eax, dword [ebp - 0x34]
call fcn.00491800
mov word [ebp - 0x22], 1
jmp 0x50b6de
mov byte [0x514618], 1
lea eax, [ebp - 0x74]
mov edx, 0x3c
call fcn.00407b2c
mov dword [ebp - 0x74], 0x3c
cmp dword [ebp - 0x14], 0
je 0x50b625
mov dword [ebp - 0x70], 1
mov eax, dword [ebp - 0x14]
call fcn.00404e10
mov dword [ebp - 0x64], eax
jmp 0x50b632
mov dword [ebp - 0x70], 5
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
mov eax, 0x50b768
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, 0x50b770
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
push eax
call sub.shell32.dll_ShellExecuteExA
mov byte [0x514618], 0
mov eax, dword [ebp - 0x34]
call fcn.00491800
mov word [ebp - 0x22], 1
jmp 0x50b6de
mov byte [0x514618], 1
lea eax, [ebp - 0x74]
mov edx, 0x3c
call fcn.00407b2c
mov dword [ebp - 0x74], 0x3c
cmp dword [ebp - 0x14], 0
je 0x50b6a0
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x14]
call fcn.00404e10
mov dword [ebp - 0x64], eax
jmp 0x50b6ad
mov dword [ebp - 0x70], 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, 0x50b778
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
push eax
call sub.shell32.dll_ShellExecuteExA
mov byte [0x514618], 0
mov eax, dword [ebp - 0x34]
call fcn.00491800
mov word [ebp - 0x22], 1
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalUnlock
lea eax, [ebp - 0x22]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
push eax
push 0x3e4
push 0x3e8
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_ReuseDDElParam
push eax
mov eax, dword [ebp - 4]
call fcn.00451dc4
push eax
push 0x3e4
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_PostMessageA
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b754
lea eax, [ebp - 0x78]
call fcn.00404950
lea eax, [ebp - 0x38]
call fcn.00404950
lea eax, [ebp - 0x14]
call fcn.00404950
ret