Function at 0x646bac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x646bb4
push ebx
push esi
push edi
mov esi, dword [0x658894]
xor eax, eax
push ebp
push 0x646f6f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.005a38a4
mov eax, dword [ebp - 0x20]
mov edx, 0x646f8c
call fcn.0041fb1c
test eax, eax
jne 0x646bf6
mov byte [ebp - 0x11], 1
jmp 0x646c1c
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.005a38a4
mov eax, dword [ebp - 0x24]
mov edx, 0x646fa4
call fcn.0041fb1c
test eax, eax
jne 0x646f47
mov byte [ebp - 0x11], 0
mov eax, dword [esi]
mov edx, 0x646fbc
call fcn.00596160
push 5
mov eax, dword [esi]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
call fcn.0063dccc
push 0x646fc8
push 0
push 0
call fcn.00411fec
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x18], 0
je 0x646c84
mov eax, dword [esi]
call fcn.00596614
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x646c64
push 5
mov eax, dword [esi]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
push ebp
push 0x646f40
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.005a38a4
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 4]
mov edx, 0x647004
call fcn.005a2964
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.005a38a4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 8]
mov edx, 0x64701c
call fcn.005a2964
mov eax, dword [ebp - 8]
call fcn.005a3150
test al, al
je 0x646ee3
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005ab47c
mov eax, dword [0x6587ac]
test byte [eax + 0x4c], 1
setne al
call fcn.005a5914
mov edx, dword [0x6588a8]
mov edx, dword [edx + 0x2b4]
mov eax, dword [esi]
call fcn.00596160
xor eax, eax
push ebp
push 0x646edc
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0063b170
push 2
push 0
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x5a9814]
call fcn.005a9e28
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x646ec2
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x646e9c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.005aa0d8
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x646d6b
sub ebx, 4
mov ebx, dword [ebx]
cmp ebx, 4
jle 0x646e9c
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5b
jne 0x646e9c
mov eax, dword [ebp - 0xc]
cmp word [eax + 6], 0x5d
jne 0x646e9c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0xc]
call fcn.00409be4
mov eax, dword [ebp - 0xc]
cmp word [eax + 4], 0x71
je 0x646dc3
cmp byte [ebp - 0x11], 0
je 0x646dbf
mov eax, dword [0x6586b0]
cmp byte [eax], 0
je 0x646dc3
xor eax, eax
jmp 0x646dc5
mov al, 1
mov byte [ebp - 0x12], al
xor eax, eax
push ebp
push 0x646e39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 2]
sub ax, 0x53
je 0x646e08
dec ax
je 0x646e25
sub ax, 0x1f
je 0x646df5
dec ax
je 0x646e1b
jmp 0x646e2f
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.00612318
jmp 0x646e2f
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x10]
mov dl, 1
xor eax, eax
call fcn.00612318
jmp 0x646e2f
mov eax, dword [ebp - 0x10]
call fcn.00611acc
jmp 0x646e2f
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.00612a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x646e9c
mov eax, dword [ebp - 0x1c]
call fcn.005aa0c8
test al, al
je 0x646d54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x646ec9
mov eax, dword [ebp - 0x1c]
call fcn.004069c8
ret
mov eax, dword [ebp - 8]
call fcn.00421114
mov eax, dword [ebp - 4]
call fcn.00421114
xor eax, eax
push ebp
push 0x646f10
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00646b0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x646f1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x646f47
cmp dword [ebp - 0x18], 0
je 0x646f3f
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x646f76
lea eax, [ebp - 0x38]
mov edx, 7
call fcn.0040876c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040876c
ret