Function at 0x4681a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6f9f02
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x7e6410]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x1c0]
mov dword [esp + 0x2c], 0
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], vtable.CAutoLock.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x60], 0
mov edi, dword [esi + 0x78]
cmp dword [edi - 0xc], 0
jl 0x46821f
lea eax, [edi - 0xc]
mov dword [esp + 0x1c], edi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x468246
mov eax, dword [0x7e7970]
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x468230
xor eax, eax
jmp 0x468237
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00428920
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [esp + 0x60], 1
test eax, eax
mov edx, dword [esi + 0x2a4]
cmovg ecx, eax
lea eax, [edx - 1]
cmp ecx, eax
jl 0x468265
lea ecx, [edx - 1]
cmp dword [ebp + 0xc], 0
mov dword [esi + 0x24c], ecx
je 0x46829c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xb0]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46829c
push 0
push esi
push dword [0x805898]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 0x3a8], 1
jne 0x468496
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x468496
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi]
lea ecx, [esp + 0x40]
xorps xmm0, xmm0
push ecx
mov ecx, esi
movdqu xmmword [esp + 0x44], xmm0
call dword [eax + 0x18]
push dword [esp + 0x18]
lea eax, [esp + 0x44]
push dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x46832d
sub ecx, dword [esi + 0x2dc]
sub ecx, dword [esi + 0x254]
js 0x46832d
mov eax, ecx
cdq
idiv dword [esi + 0x248]
add eax, dword [esi + 0x24c]
jmp 0x468330
or eax, 0xffffffff
push dword [esp + 0x14]
mov ecx, esi
mov dword [esi + 0x3a4], eax
call fcn.00468110
mov edx, dword [esi + 0x3a4]
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x24]
test eax, eax
js 0x4683b3
cmp eax, dword [esi + 0x2a4]
jge 0x4683b3
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, 0xffffffff
je 0x4683bb
mov eax, dword [esi + 0x2a0]
mov edx, dword [esp + 0x24]
lea edx, [eax + edx*4]
mov eax, dword [edx]
cmp dword [eax + 4], ecx
jle 0x4683bb
mov eax, dword [eax]
shl ecx, 3
cmp dword [ecx + eax + 4], 0
je 0x4683bb
mov eax, dword [edx]
mov eax, dword [eax]
add eax, ecx
lea ecx, [esp + 0x20]
push eax
call fcn.00428690
mov byte [esp + 0x60], 2
mov ebx, 1
jmp 0x4683d6
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
push 0x790eb0
lea ecx, [esp + 0x34]
call fcn.00428840
mov dword [esp + 0x60], 3
mov ebx, 2
push eax
lea ecx, [esi + 0x78]
mov dword [esp + 0x30], ebx
call fcn.004289a0
test bl, 2
je 0x468418
mov eax, dword [esp + 0x30]
and ebx, 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x468418
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x468418
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.006b31f8
add esp, 4
test bl, 1
je 0x46844a
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x46844a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46844a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.006b31f8
add esp, 4
mov ecx, dword [esi + 0x78]
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x468476
test dx, dx
je 0x468472
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x468476
add eax, 4
add ecx, 4
test dx, dx
jne 0x468450
xor eax, eax
jmp 0x46847b
sbb eax, eax
or eax, 1
test eax, eax
je 0x468492
push 0
push 0
push dword [0x8058a4]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x28]
lea eax, [edi - 0xc]
cmp eax, 0x7e8698
je 0x4684b7
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4684b7
push edi
call fcn.006b31f8
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8