Function at 0x1004e1c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10172e40
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x101bd92c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
and ecx, 1
push eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x68], ecx
call esi
push 4
push eax
call esi
push eax
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, dword [ebp + 0x10]
mov esi, eax
movzx eax, bx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x94]
shr ebx, 0x10
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov dword [ebp - 0x84], eax
test esi, esi
je 0x1004e2da
cmp eax, dword [esi + 0x14]
jne 0x1004e2da
lea ecx, [ebp - 0x90]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push dword [ebp - 0x90]
push eax
call fcn.1003bfb0
mov ecx, eax
call fcn.1004cdb0
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x80]
mov dword [edi + 0x100], eax
mov dword [edi + 0x104], ebx
jmp 0x1004e969
mov ecx, dword [edi + 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [edi + 0xc8]
push 0x78
mov edx, dword [ecx]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x84], 0
xor ebx, ebx
call dword [edx]
xor esi, esi
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x78], ebx
jle 0x1004e36b
lea ecx, [ecx]
mov ecx, dword [edi + 0xd4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x6c], eax
mov ecx, dword [edx]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ebx
test ecx, ecx
jne 0x1004e34d
test eax, eax
je 0x1004e365
push eax
push ecx
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov edx, eax
mov dword [ebp - 0x84], edx
test edx, edx
jne 0x1004e3a1
inc esi
cmp esi, dword [ebp - 0x78]
jl 0x1004e310
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x68]
cmp dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x74]
mov dword [edi + 0x100], eax
mov dword [edi + 0x104], ebx
je 0x1004e7d9
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1004e969
mov ecx, dword [edi + 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
cmp eax, esi
je 0x1004e36b
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 4], 0xa
je 0x1004e3cd
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [edi + 0xd4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
mov dword [ebp - 0x78], esi
mov edx, dword [esi + 0x10]
cmp dword [esi + 4], ebx
jne 0x1004e61d
mov ecx, dword [edx + 8]
cmp ecx, 2
je 0x1004e493
cmp ecx, 1
je 0x1004e493
cmp ecx, 5
je 0x1004e493
cmp ecx, 0x17
jne 0x1004e415
lea ebx, [ecx - 0x16]
jmp 0x1004e61d
cmp ecx, 3
jne 0x1004e422
lea ebx, [ecx - 2]
jmp 0x1004e61d
cmp ecx, 9
jne 0x1004e445
mov ecx, dword [edi + 0xc8]
push 0x24
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x1004e61d
mov ebx, 1
jmp 0x1004e61d
cmp ecx, 0x1c
jne 0x1004e451
xor ebx, ebx
jmp 0x1004e61d
cmp ecx, 0x10
jne 0x1004e45d
xor ebx, ebx
jmp 0x1004e61d
cmp ecx, 0xd
jne 0x1004e469
xor ebx, ebx
jmp 0x1004e61d
cmp ecx, 0x30
jne 0x1004e475
xor ebx, ebx
jmp 0x1004e61d
cmp ecx, 0x31
jne 0x1004e481
xor ebx, ebx
jmp 0x1004e61d
cmp ecx, 0x18
jne 0x1004e43b
cmp dword [edx + 0xc], 0x25
jne 0x1004e43b
xor ebx, ebx
jmp 0x1004e61d
mov eax, dword [edi + 0xd0]
add eax, 0x208
push eax
lea ecx, [ebp - 0x54]
call fcn.10004410
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x2c], ax
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.10004790
push 1
push 0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x6c], 0x27
call fcn.10010d20
cmp eax, 0xffffffff
je 0x1004e518
mov dword [ebp - 0x6c], 0x27
push 1
push eax
lea ecx, [ebp - 0x54]
call fcn.10004ce0
push 1
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
call fcn.10010d20
cmp eax, 0xffffffff
jne 0x1004e4f8
push 1
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], 0x27
call fcn.10010d20
cmp eax, 0xffffffff
je 0x1004e560
mov dword [ebp - 0x6c], 0x27
jmp 0x1004e540
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004ce0
push 1
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10010d20
cmp eax, 0xffffffff
jne 0x1004e540
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004e59c
test dx, dx
je 0x1004e598
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004e59c
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004e576
xor eax, eax
jmp 0x1004e5a1
sbb eax, eax
or eax, 1
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov ecx, dword [edi + 0xc8]
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0xc8]
push 2
mov edx, dword [ecx]
mov esi, eax
call dword [edx]
test ebx, ebx
je 0x1004e5dd
test esi, esi
je 0x1004e5dd
test eax, eax
je 0x1004e5dd
mov eax, 4
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
and ebx, eax
cmp dword [ebp - 0x18], 8
jb 0x1004e5ee
push dword [ebp - 0x2c]
call fcn.10091747
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x40], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x1004e61a
push dword [ebp - 0x54]
call fcn.10091747
add esp, 4
mov esi, dword [ebp - 0x78]
mov ecx, dword [edi + 0xc8]
push 0x23
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x1004e798
test ebx, ebx
je 0x1004e798
mov ebx, dword [ebp - 0x94]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 0x9c], 1
mov ecx, dword [esi + 0xc]
jne 0x1004e68b
mov eax, dword [ecx]
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + 0xc]
add eax, 5
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [sym.imp.USER32.dll_ClientToScreen]
push ebx
call eax
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x6c], eax
jmp 0x1004e6a6
mov eax, dword [ecx + 8]
add eax, 5
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [sym.imp.USER32.dll_ClientToScreen]
push ebx
call eax
call fcn.1003bfb0
mov esi, eax
mov eax, dword [ebp - 0x78]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x4c], eax
test ecx, ecx
je 0x1004e6c1
mov edx, dword [ecx]
call dword [edx + 0x20]
mov dword [esi], eax
mov esi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x74]
test esi, esi
je 0x1004e71b
cmp dword [ebp - 0x68], 0
jne 0x1004e70e
mov eax, dword [edi + 0x100]
cmp dword [ebp - 0x80], eax
jne 0x1004e6e4
cmp ebx, dword [edi + 0x104]
je 0x1004e70e
test eax, eax
je 0x1004e70e
cmp dword [edi + 0x104], 0
je 0x1004e70e
call fcn.1003bfb0
add esi, 0x14
push esi
call fcn.1004cd90
push esi
call fcn.1003bfb0
mov ecx, eax
call fcn.1004c290
jmp 0x1004e71b
mov ecx, dword [edi + 0xd4]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x40]
call fcn.100143b0
mov esi, eax
call fcn.1003bfb0
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x6c]
lea ecx, [edx + eax]
cmp ecx, esi
jle 0x1004e73d
mov eax, dword [ebp - 0x38]
sub eax, edx
dec eax
mov dword [ebp - 0x6c], eax
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x68]
test esi, esi
je 0x1004e371
test ecx, ecx
jne 0x1004e371
mov ecx, dword [edi + 0x100]
cmp dword [ebp - 0x80], ecx
jne 0x1004e76a
cmp ebx, dword [edi + 0x104]
je 0x1004e36e
test ecx, ecx
je 0x1004e36e
cmp dword [edi + 0x104], 0
je 0x1004e36e
push eax
push dword [ebp - 0x70]
lea eax, [esi + 0x14]
push eax
call fcn.1003bfb0
mov ecx, eax
call fcn.1004cd40
jmp 0x1004e36e
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x1004e36e
mov ecx, dword [ebp - 0x68]
test ecx, ecx
jne 0x1004e371
call fcn.1003bfb0
push 6
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.USER32.dll_ReleaseCapture]
call fcn.1003bfb0
push 0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1004e36e
test esi, esi
je 0x1004e80e
test ecx, ecx
jne 0x1004e80e
call fcn.1003bfb0
push 6
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.USER32.dll_ReleaseCapture]
call fcn.1003bfb0
push 0
push 0x3e8
push 6
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x98]
push eax
mov ecx, edi
call fcn.100423e0
test eax, eax
jne 0x1004e969
mov eax, dword [0x101ed73c]
test eax, eax
jne 0x1004e862
push 0xec
call fcn.10092352
add esp, 4
test eax, eax
je 0x1004e85b
mov ecx, eax
call fcn.10056470
jmp 0x1004e85d
xor eax, eax
mov dword [0x101ed73c], eax
movd xmm0, dword [ebp - 0x80]
movss xmm1, dword [eax + 0xa4]
cvtdq2ps xmm0, xmm0
lea eax, [edi + 0x44]
divss xmm0, xmm1
cvttss2si esi, xmm0
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvttss2si ebx, xmm0
push ebx
push esi
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1004e8cb
mov ecx, dword [edi + 0xcc]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 0xd0]
cmp dword [ecx + 0x504], 0xffffffff
je 0x1004e8cb
test eax, eax
jle 0x1004e8cb
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
push esi
lea eax, [edi + 0x54]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1004e92c
mov ecx, dword [edi + 0xcc]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x1004e8fd
push 0x7f89
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [edi + 0xd0]
cmp dword [eax + 0x514], 0
jne 0x1004e969
mov dword [eax + 0x514], 1
jmp 0x1004e945
mov eax, dword [edi + 0xd0]
cmp dword [eax + 0x514], 0
je 0x1004e969
mov dword [eax + 0x514], 0
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e969
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1004e969
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret 0xc