Function at 0x650d84
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x650d8d
xchg dword [ebp - 4], ecx
push ebx
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409650
xor eax, eax
push ebp
push 0x651102
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xf], 0
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651120
call fcn.0040a710
test eax, eax
jle 0x650e31
cmp byte [0x686902], 0
jne 0x650e31
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x650de6
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651138
call fcn.0040a710
mov edx, eax
add edx, 4
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a500
lea eax, [ebp - 4]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651150
call fcn.0040a710
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040a500
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651160
call fcn.0040a710
test eax, eax
jle 0x650ea7
cmp byte [0x686902], 1
jne 0x650ea7
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x650e5c
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651178
call fcn.0040a710
mov edx, eax
add edx, 4
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a500
lea eax, [ebp - 4]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651190
call fcn.0040a710
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040a500
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409994
lea eax, [ebp - 0xc]
call fcn.0040956c
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6511a0
call fcn.0040a710
test eax, eax
jle 0x650f4d
lea eax, [ebp - 8]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6511b4
call fcn.0040a710
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040a500
movzx eax, byte [0x6511bc]
push eax
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x6511cc
mov eax, dword [ebp - 8]
call fcn.0042b824
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00409994
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6511dc
call fcn.0040a710
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040a548
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409994
jmp 0x650fdb
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6511f0
call fcn.0040a710
test eax, eax
jle 0x650fdb
lea eax, [ebp - 8]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651204
call fcn.0040a710
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040a500
movzx eax, byte [0x6511bc]
push eax
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, 0x651218
mov eax, dword [ebp - 8]
call fcn.0042b824
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00409994
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651228
call fcn.0040a710
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040a548
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409994
cmp byte [ebp - 0xd], 0
je 0x65100d
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004241f8
test al, al
je 0x65100d
push 1
push 1
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.0064f30c
mov byte [ebp - 0xf], al
jmp 0x6510c5
cmp byte [ebp - 0xe], 0
je 0x65106e
push 0x30
lea edx, [ebp - 0x1c]
mov eax, dword [0x6868b0]
call fcn.00541938
mov eax, dword [ebp - 0x1c]
call fcn.0040a13c
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x65123c
mov edx, 0x65124c
mov eax, dword [0x6868f0]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
xor edx, edx
call fcn.00647908
mov eax, dword [ebp - 0x20]
call fcn.0040a13c
push eax
mov eax, dword [0x68056c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_MessageBoxW
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x65126c
call fcn.0040a710
test eax, eax
jne 0x6510aa
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004241f8
test al, al
je 0x6510aa
push 1
push 0
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.0064f30c
jmp 0x6510c5
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040a13c
push eax
push 0x651274
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x651109
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 0x1c]
call fcn.0040956c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004095cc
ret