Function at 0x49be60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544b66
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x58a710]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test byte [ebp + 8], 1
mov ebx, dword [sym.imp.USER32.dll_ReleaseCapture]
jne 0x49bea5
cmp dword [edi + 0x34], 0
je 0x49be9e
call ebx
mov dword [edi + 0x34], 0
cmp dword [edi + 0x38], 0
jne 0x49bed0
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [edi + 0x38], 1
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 2
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
cmp dword [edi + 0x34], 0
je 0x49c009
cmp dword [edi + 0x3c], 0
je 0x49befd
push 0
mov ecx, edi
call fcn.00428fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [edi + 0x64]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x49bf53
cmp dword [edi + 0xd0], 0xffffffff
je 0x49bf53
mov esi, dword [edi + 0x7c]
lea eax, [esi - 4]
cmp edx, eax
jl 0x49bf38
lea eax, [esi + 4]
cmp edx, eax
jg 0x49bf38
mov esi, dword [edi + 0x80]
lea eax, [esi - 4]
cmp ecx, eax
jl 0x49bf38
lea eax, [esi + 4]
cmp ecx, eax
jle 0x49bf53
mov ecx, edi
call fcn.00495be0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x7c]
lea eax, [esi - 3]
cmp edx, eax
jl 0x49bf78
lea eax, [esi + 3]
cmp edx, eax
jg 0x49bf78
mov esi, dword [edi + 0x80]
lea eax, [esi - 3]
cmp ecx, eax
jl 0x49bf78
lea eax, [esi + 3]
cmp ecx, eax
jle 0x49bfe2
cmp dword [edi + 0x40], 0
jne 0x49bfca
test ebx, ebx
je 0x49bfca
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0xffffffff
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0xffffffff
push eax
push ecx
push edx
mov ecx, edi
call fcn.00498e40
test eax, eax
je 0x49bfc2
mov esi, dword [ebp - 0x10]
mov ecx, edi
push esi
call fcn.00418db0
test eax, eax
jne 0x49bfc2
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x14]
push esi
call fcn.0049ebe0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
jmp 0x49bfe2
cmp dword [edi + 0x44], 0
jne 0x49bfdd
cmp dword [edi + 0x6c], 0
jne 0x49bfdd
mov eax, 1
jmp 0x49bfdf
xor eax, eax
mov dword [edi + 0x4c], eax
cmp dword [edi + 0x4c], 0
je 0x49c401
push ecx
push edx
mov ecx, edi
call fcn.00498d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0xffffffff
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00509680
cmp dword [edi + 0x28], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], eax
je 0x49c05d
cmp dword [edi + 0x184], 0
je 0x49c05d
test eax, eax
je 0x49c0bc
cmp dword [edi + 0xd4], esi
je 0x49c061
mov ecx, edi
mov dword [edi + 0xd4], esi
call fcn.004c8fe0
mov eax, dword [ebp + 8]
test eax, eax
je 0x49c0d6
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xbc], 0xffffffff
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x1e8]
jne 0x49c085
call ebx
push dword [edi + 0x1e8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49c0a3
push 0
push dword [edi + 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x49c1ed
push 0x80004005
call fcn.004049a0
cmp dword [edi + 0xd4], 0xffffffff
je 0x49c0d6
mov ecx, edi
mov dword [edi + 0xd4], 0xffffffff
call fcn.004c8fe0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0xffffffff
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0xffffffff
push eax
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00498e40
test eax, eax
jne 0x49c253
cmp dword [edi + 0xb0], 0xffffffff
je 0x49c157
mov eax, dword [edi + 0xb4]
cmp eax, 0xffffffff
je 0x49c157
push eax
mov ecx, edi
call fcn.004ae920
mov esi, eax
mov ecx, edi
push esi
push dword [edi + 0xb0]
call fcn.00498b90
cmp eax, 6
jne 0x49c157
push esi
push dword [edi + 0xb0]
mov ecx, edi
call fcn.00498a10
test al, 8
jne 0x49c157
push dword [edi + 0xb4]
mov ecx, edi
push dword [edi + 0xb0]
call fcn.00481cc0
push 0
push 0
push 0x401
push dword [edi + 0x1a8]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3e8
push dword [edi + 4]
lea ecx, [edi + 0x1a8]
call fcn.00416640
mov dword [edi + 0xb0], 0xffffffff
mov dword [edi + 0xb4], 0xffffffff
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xbc], 0xffffffff
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x1e8]
jne 0x49c1b7
call ebx
push dword [edi + 0x1e8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49c401
push 0
push dword [edi + 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
push esi
mov ecx, edi
call fcn.00461310
test eax, eax
je 0x49c23c
cmp dword [ebp - 0x48], 0
jne 0x49c23c
test byte [ebp - 0x10], 1
je 0x49c23c
push dword [edi + 0x18c]
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.0041eb50
mov edx, dword [ebp - 0x50]
jmp 0x49c3e6
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp esi, dword [edi + 0xb0]
jne 0x49c269
cmp ebx, dword [edi + 0xb4]
je 0x49c2bf
push dword [edi + 0xb4]
mov ecx, edi
call fcn.004ae920
push eax
push dword [edi + 0xb0]
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00498b90
cmp eax, 6
jne 0x49c2b3
push dword [ebp - 0x14]
mov ecx, edi
push dword [edi + 0xb0]
call fcn.00498a10
test al, 8
jne 0x49c2b3
push dword [edi + 0xb4]
mov ecx, edi
push dword [edi + 0xb0]
call fcn.00481cc0
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], ebx
push dword [edi + 0xb4]
mov ecx, edi
call fcn.004ae920
mov ebx, eax
mov ecx, edi
push ebx
push dword [edi + 0xb0]
call fcn.00498b90
push ebx
push dword [edi + 0xb0]
mov ecx, edi
mov esi, eax
call fcn.00498a10
cmp esi, 6
jne 0x49c314
test al, 8
jne 0x49c314
push dword [edi + 0xb4]
mov ecx, edi
push dword [edi + 0xb0]
call fcn.00481cc0
push dword [edi + 0x190]
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
push dword [edi + 0xb0]
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.00509650
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 2
movups xmmword [ebp - 0x28], xmm0
cmp dword [eax - 0xc], 0
je 0x49c3a2
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push 0xffffffffffffffff
push dword [edi + 0xb0]
call fcn.00481500
test eax, eax
je 0x49c3a2
push 0
push 1
push 0x401
push dword [edi + 0x1a8]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x7fff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004196e0
push 0x3e8
mov edx, dword [eax]
lea eax, [ebp - 0x28]
push eax
push ecx
mov eax, esp
lea ecx, [edi + 0x1a8]
mov dword [eax], edx
push dword [edi + 4]
call fcn.00415010
lea ecx, [ebp - 0x18]
call fcn.00413a30
jmp 0x49c3ca
push 0
push 0
push 0x401
push dword [edi + 0x1a8]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3e8
push dword [edi + 4]
lea ecx, [edi + 0x1a8]
call fcn.00416640
push dword [edi + 0xb4]
mov ecx, edi
push dword [edi + 0xb0]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0049f620
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49c401
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc