Function at 0x651484
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x65148d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040b558
xor eax, eax
push ebp
push 0x6518de
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [0x68a222], 0
je 0x6514d6
mov eax, 0x6518fc
call fcn.00643738
test al, al
jne 0x65189f
cmp byte [0x68a22f], 0
je 0x6514f1
mov eax, 0x651928
call fcn.00643738
test al, al
jne 0x65189f
mov eax, 0x651954
call fcn.00643738
test al, al
jne 0x6516ef
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x65197c
call fcn.0040c52c
test eax, eax
jle 0x6516ef
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x65198c
call fcn.0040c52c
test eax, eax
jle 0x6516ef
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00427078
mov eax, dword [ebp - 0x18]
mov ecx, 1
mov edx, eax
mov eax, 0x65199c
call fcn.0040c52c
test eax, eax
jle 0x6515c9
cmp byte [0x68a22c], 0
jne 0x6515c9
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00427078
mov eax, dword [ebp - 0x1c]
mov ecx, 1
mov edx, eax
mov eax, 0x65199c
call fcn.0040c52c
mov edi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x651590
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
lea edx, [edi + 4]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c3d0
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x65198c
call fcn.0040c52c
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040c3d0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00427078
mov eax, dword [ebp - 0x20]
mov ecx, 1
mov edx, eax
mov eax, 0x6519b4
call fcn.0040c52c
test eax, eax
jle 0x65165b
cmp byte [0x68a22c], 0
jne 0x65165b
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00427078
mov eax, dword [ebp - 0x24]
mov ecx, 1
mov edx, eax
mov eax, 0x6519b4
call fcn.0040c52c
mov edi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x651622
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
lea edx, [edi + 4]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c3d0
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x65198c
call fcn.0040c52c
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040c3d0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00427078
mov eax, dword [ebp - 0x28]
mov ecx, 1
mov edx, eax
mov eax, 0x6519cc
call fcn.0040c52c
test eax, eax
jle 0x6516ef
cmp byte [0x68a22c], 1
jne 0x6516ef
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00427078
mov eax, dword [ebp - 0x2c]
mov ecx, 1
mov edx, eax
mov eax, 0x6519cc
call fcn.0040c52c
mov edi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x6516b4
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
lea edx, [edi + 4]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c3d0
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x65198c
call fcn.0040c52c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040c3d0
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040b89c
lea eax, [ebp - 0xc]
call fcn.0040b464
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6519e4
call fcn.0040c52c
mov ebx, eax
test bx, bx
jne 0x65172f
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6519f8
call fcn.0040c52c
mov ebx, eax
mov eax, 0x651a0c
call fcn.00643738
test al, al
jne 0x6517af
test bx, bx
jbe 0x6517af
lea eax, [ebp - 8]
push eax
movzx edi, bx
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040c3d0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x651a34
call fcn.0040c52c
test eax, eax
jle 0x651795
movzx eax, byte [0x651a38]
push eax
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, 0x651a34
mov eax, dword [ebp - 8]
call fcn.00431694
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.0040b89c
mov ecx, edi
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040c418
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040b89c
mov bx, 1
cmp byte [0x68a222], 0
je 0x6517cc
mov eax, 0x651a48
call fcn.00643738
test al, al
jne 0x6517cc
xor ebx, ebx
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x651a7c
call fcn.0040c52c
mov edi, eax
test edi, edi
jne 0x65181c
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00643830
mov eax, dword [ebp - 0x34]
mov dl, 1
call fcn.00428a3c
test al, al
je 0x65181c
push ebx
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0064fdb8
mov ebx, eax
jmp 0x65189f
movzx eax, bx
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040bffc
push eax
push 0
push esi
call sub.shell32.dll_ShellExecuteW
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x65189f
push 0x35
lea edx, [ebp - 0x38]
mov eax, dword [0x68a1e0]
call fcn.00551518
mov eax, dword [ebp - 0x38]
call fcn.0040bffc
push eax
push 0x651a90
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x651af4
mov edx, 0x651b08
mov eax, dword [0x68a218]
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
xor edx, edx
call fcn.0064753c
mov eax, dword [ebp - 0x3c]
call fcn.0040bffc
push eax
mov eax, dword [0x68a1e0]
call fcn.0055b178
push eax
call sub.user32.dll_MessageBoxW
cmp eax, 7
jne 0x65189f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6518e5
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0040b4c4
lea eax, [ebp - 0x38]
call fcn.0040b464
lea eax, [ebp - 0x34]
mov edx, 8
call fcn.0040b4c4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b4c4
pop eax
jmp eax