Function at 0x651d88
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x651d90
push ebx
push esi
push edi
mov ebx, dword [0x6624a0]
xor eax, eax
push ebp
push 0x652150
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.0059add0
mov eax, dword [ebp - 0x20]
mov edx, 0x65216c
call fcn.00421500
test eax, eax
jne 0x651dd2
mov byte [ebp - 0x11], 1
jmp 0x651df8
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.0059add0
mov eax, dword [ebp - 0x24]
mov edx, 0x652184
call fcn.00421500
test eax, eax
jne 0x652128
mov byte [ebp - 0x11], 0
mov eax, dword [ebx]
mov edx, 0x65219c
call fcn.0058eec0
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x178]
push eax
call sub.user32.dll_ShowWindow
call fcn.006484a8
push 0x6521a8
push 0
push 0
call fcn.0040f338
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x178]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x18], 0
je 0x651e60
mov eax, dword [ebx]
call fcn.0058f3ac
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x651e40
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x178]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
push ebp
push 0x652121
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0059add0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 4]
mov edx, 0x6521e4
call fcn.00599df0
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.0059add0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 8]
mov edx, 0x6521fc
call fcn.00599df0
mov eax, dword [ebp - 8]
call fcn.0059a650
test al, al
je 0x6520c4
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005a1634
mov eax, dword [0x6623b8]
test byte [eax + 0x4c], 1
setne al
call fcn.0059cefc
mov edx, dword [0x6624b4]
mov edx, dword [edx + 0x2b4]
mov eax, dword [ebx]
call fcn.0058eec0
xor eax, eax
push ebp
push 0x6520bd
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.006455dc
push 2
push 0
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x59f850]
call fcn.0059fe84
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x6520a3
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x65207d
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.005a0158
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x651f47
sub esi, 4
mov esi, dword [esi]
cmp esi, 4
jle 0x651f58
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5b
sete bl
jmp 0x651f5a
xor ebx, ebx
test bl, bl
je 0x65207d
mov eax, dword [ebp - 0xc]
cmp word [eax + 6], 0x5d
jne 0x65207d
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0xc]
call fcn.00409140
mov eax, dword [ebp - 0xc]
cmp word [eax + 4], 0x71
je 0x651fa4
cmp byte [ebp - 0x11], 0
je 0x651fa0
mov eax, dword [0x6622b0]
cmp byte [eax], 0
je 0x651fa4
xor eax, eax
jmp 0x651fa6
mov al, 1
mov byte [ebp - 0x12], al
xor eax, eax
push ebp
push 0x65201a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 2]
sub ax, 0x53
je 0x651fe9
dec ax
je 0x652006
sub ax, 0x1f
je 0x651fd6
dec ax
je 0x651ffc
jmp 0x652010
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.0061b4e4
jmp 0x652010
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
mov dl, 1
xor eax, eax
call fcn.0061b4e4
jmp 0x652010
mov eax, dword [ebp - 0x10]
call fcn.0061ac70
jmp 0x652010
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.0061bc60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65207d
mov eax, dword [ebp - 0x1c]
call fcn.005a0144
test al, al
je 0x651f30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6520aa
mov eax, dword [ebp - 0x1c]
call fcn.004060a0
ret
mov eax, dword [ebp - 8]
call fcn.00422a6c
mov eax, dword [ebp - 4]
call fcn.00422a6c
xor eax, eax
push ebp
push 0x6520f1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00651ce8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6520fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x652128
cmp dword [ebp - 0x18], 0
je 0x652120
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x652157
lea eax, [ebp - 0x38]
mov edx, 7
call fcn.00407cb8
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407cb8
ret