Function at 0x416df0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50829b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x30]
mov dword [ebp - 0x14], edi
mov dword [ebx], vtable.CManagedPointingDevice.2.0
mov dword [edi], vtable.CManagedPointingDevice.0
mov dword [edi + 4], vtable.CManagedPointingDevice.1.0
mov dword [edi + 0x38], vtable.CManagedPointingDevice.3.0
mov dword [edi + 0x48], vtable.CManagedPointingDevice.4.0
cmp dword [edi + 0x54], 0
mov dword [ebp - 4], 0x11
je 0x416ea0
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416e6a
push 0
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x58]
mov dword [edi + 0x54], 0
call esi
push dword [edi + 0x5c]
mov dword [edi + 0x58], 0
call esi
push dword [edi + 0x60]
mov dword [edi + 0x5c], 0
call esi
mov dword [edi + 0x60], 0
cmp dword [edi + 0x788], 2
jne 0x416ec0
push edi
push dword [0x6579b8]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [edi + 0x788], 1
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x416ef6
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x10000107
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x10], 0xd
jne 0x416ef6
push 1
mov ecx, edi
mov dword [edi + 0x7b0], 0
call fcn.00431a40
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x416f33
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x10000102
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x10], 8
jne 0x416f33
cmp dword [edi + 0x78c], 0
je 0x416f33
mov ecx, edi
mov dword [edi + 0x78c], 0
call fcn.0042b5d0
mov esi, dword [edi + 0x714]
test esi, esi
je 0x416f57
mov ecx, esi
call fcn.0046d720
push esi
call fcn.004cf489
add esp, 4
mov dword [edi + 0x714], 0
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x416f89
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x10000102
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x10], 2
jne 0x416f89
mov ecx, dword [0x658564]
test ecx, ecx
je 0x416f89
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x416fbb
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x10000102
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x10], 0x10
jne 0x416fbb
mov ecx, dword [0x658568]
test ecx, ecx
je 0x416fbb
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [edi + 0x2e0]
test ecx, ecx
je 0x416fd5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x2e0], 0
mov ecx, edi
call fcn.00419490
mov ecx, dword [edi + 0xdcc]
test ecx, ecx
je 0x416ff6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xdcc], 0
lea ecx, [edi + 4]
call fcn.00403060
mov ecx, dword [edi + 0xda8]
test ecx, ecx
je 0x417018
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xda8], 0
lea ecx, [edi + 0xe28]
mov byte [ebp - 4], 0x10
call fcn.004177d0
lea ecx, [edi + 0xdd8]
mov byte [ebp - 4], 0xf
call fcn.004177d0
mov eax, dword [edi + 0xdd0]
lea ecx, [edi + 0xdd0]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00408b10
push dword [edi + 0xdd0]
call fcn.004cf489
mov ecx, dword [edi + 0xd8c]
add esp, 4
mov byte [ebp - 4], 0xd
mov dword [edi + 0xd90], 0x5137e8
test ecx, ecx
je 0x417084
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xd8c], 0
mov eax, dword [edi + 0xd5c]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0xd5c]
mov dword [eax + 4], eax
mov dword [edi + 0xd60], 0
cmp ecx, dword [edi + 0xd5c]
je 0x4170c5
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.004cf489
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0xd5c]
jne 0x4170b0
push dword [edi + 0xd5c]
call fcn.004cf489
mov eax, dword [edi + 0xd54]
add esp, 4
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0xd54]
mov dword [eax + 4], eax
mov dword [edi + 0xd58], 0
cmp ecx, dword [edi + 0xd54]
je 0x41710d
mov esi, dword [ecx]
push ecx
call fcn.004cf489
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0xd54]
jne 0x4170f8
push dword [edi + 0xd54]
call fcn.004cf489
mov ecx, dword [edi + 0x9f8]
add esp, 4
mov byte [ebp - 4], 0xa
mov dword [edi + 0x9fc], 0x5137e8
test ecx, ecx
je 0x417143
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x9f8], 0
mov ecx, dword [edi + 0x9f0]
mov byte [ebp - 4], 9
mov dword [edi + 0x9f4], 0x5137e8
test ecx, ecx
je 0x41716b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x9f0], 0
push 0x417890
push 0xa
push 8
lea eax, [edi + 0x904]
mov byte [ebp - 4], 8
push eax
call fcn.004d0e71
push 0x417890
push 0xa
push 8
lea eax, [edi + 0x8b4]
mov byte [ebp - 4], 7
push eax
call fcn.004d0e71
push 0x417890
push 0xa
push 8
lea eax, [edi + 0x864]
mov byte [ebp - 4], 6
push eax
call fcn.004d0e71
push 0x417890
push 0xa
push 8
lea eax, [edi + 0x814]
mov byte [ebp - 4], 5
push eax
call fcn.004d0e71
mov ecx, dword [edi + 0x724]
mov byte [ebp - 4], 4
mov dword [edi + 0x728], 0x5137e8
test ecx, ecx
je 0x4171f7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x724], 0
mov dword [edi + 0x720], vtable.CDummySynDisplay.0
mov dword [edi + 0x718], 0x513888
mov ecx, dword [edi + 0x71c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x417229
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x71c], 0
mov esi, dword [edi + 0x710]
test esi, esi
je 0x417281
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x417277
test esi, esi
je 0x417277
mov eax, dword [esi]
test eax, eax
je 0x417257
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41726e
push eax
call fcn.004d0e0a
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004cf489
add esp, 4
mov dword [edi + 0x710], 0
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.SynDevice.0
mov dword [ebx + 8], vtable.SynDevice.1.0
mov ecx, dword [ebx + 0xc]
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x4172a9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], vtable.CDummySynDevice.0
mov dword [ebx], vtable.SynWrapEvents_class_SynDevice__struct_ISynDevice__struct__ISynDeviceEvents_.0
mov edx, dword [ebx + 4]
mov byte [ebp - 4], 1
test edx, edx
je 0x4172ce
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [ebx + 4], 0
lea ecx, [edi + 4]
mov byte [ebp - 4], 0
call fcn.00416cc0
mov ecx, dword [ebp - 0xc]
mov dword [edi], vtable.CListObjectBase.0
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret