Function at 0x651260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x651269
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 0x6516ba
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [0x688222], 0
je 0x6512b2
mov eax, 0x6516d8
call fcn.00643690
test al, al
jne 0x65167b
cmp byte [0x68822d], 0
je 0x6512cd
mov eax, 0x651704
call fcn.00643690
test al, al
jne 0x65167b
mov eax, 0x651730
call fcn.00643690
test al, al
jne 0x6514cb
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651758
call fcn.0040c52c
test eax, eax
jle 0x6514cb
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x651768
call fcn.0040c52c
test eax, eax
jle 0x6514cb
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, 0x651778
call fcn.0040c52c
test eax, eax
jle 0x6513a5
cmp byte [0x68822a], 0
jne 0x6513a5
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, 0x651778
call fcn.0040c52c
mov edi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x65136c
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, 0x651768
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, 0x651790
call fcn.0040c52c
test eax, eax
jle 0x651437
cmp byte [0x68822a], 0
jne 0x651437
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, 0x651790
call fcn.0040c52c
mov edi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x6513fe
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, 0x651768
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, 0x6517a8
call fcn.0040c52c
test eax, eax
jle 0x6514cb
cmp byte [0x68822a], 1
jne 0x6514cb
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, 0x6517a8
call fcn.0040c52c
mov edi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x651490
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, 0x651768
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, 0x6517c0
call fcn.0040c52c
mov ebx, eax
test bx, bx
jne 0x65150b
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6517d4
call fcn.0040c52c
mov ebx, eax
mov eax, 0x6517e8
call fcn.00643690
test al, al
jne 0x65158b
test bx, bx
jbe 0x65158b
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, 0x651810
call fcn.0040c52c
test eax, eax
jle 0x651571
movzx eax, byte [0x651814]
push eax
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, 0x651810
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 [0x688222], 0
je 0x6515a8
mov eax, 0x651824
call fcn.00643690
test al, al
jne 0x6515a8
xor ebx, ebx
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x651858
call fcn.0040c52c
mov edi, eax
test edi, edi
jne 0x6515f8
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00643798
mov eax, dword [ebp - 0x34]
mov dl, 1
call fcn.00428a3c
test al, al
je 0x6515f8
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.0064fb70
mov ebx, eax
jmp 0x65167b
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 0x65167b
push 0x35
lea edx, [ebp - 0x38]
mov eax, dword [0x6881e0]
call fcn.00551518
mov eax, dword [ebp - 0x38]
call fcn.0040bffc
push eax
push 0x65186c
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x6518d0
mov edx, 0x6518e4
mov eax, dword [0x688218]
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
xor edx, edx
call fcn.00647414
mov eax, dword [ebp - 0x3c]
call fcn.0040bffc
push eax
mov eax, dword [0x6881e0]
call fcn.0055b178
push eax
call sub.user32.dll_MessageBoxW
cmp eax, 7
jne 0x65167b
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6516c1
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