Function at 0x40f850
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7166
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
mov dword [ebp - 4], 0x12
call fcn.0041dfb0
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x40f8d2
mov eax, dword [edi + 0xb14]
test eax, eax
je 0x40f8d2
push 0
push eax
call esi
push dword [edi + 0xb14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xb14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x40f8de
push 0
push eax
call esi
cmp dword [edi + 0xb1c], 2
jne 0x40f8fe
push edi
push dword [0x516658]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [edi + 0xb1c], 1
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x40f934
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x10000107
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x10], 0xd
jne 0x40f934
push 1
mov ecx, edi
mov dword [edi + 0xb44], 0
call fcn.00428e30
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x40f971
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x10000102
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x10], 8
jne 0x40f971
cmp dword [edi + 0xb20], 0
je 0x40f971
mov ecx, edi
mov dword [edi + 0xb20], 0
call fcn.00421cd0
mov esi, dword [edi + 0x119c]
test esi, esi
je 0x40f995
mov ecx, esi
call fcn.0040ab50
push esi
call fcn.004a46e7
add esp, 4
mov dword [edi + 0x119c], 0
mov esi, dword [edi + 0xab4]
test esi, esi
je 0x40f9b9
mov ecx, esi
call fcn.00452800
push esi
call fcn.004a46e7
add esp, 4
mov dword [edi + 0xab4], 0
mov ecx, dword [edi + 0xeb4]
test ecx, ecx
je 0x40f9d3
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xeb4], 0
mov ecx, edi
call fcn.00411af0
mov ecx, dword [edi + 0x11ac]
test ecx, ecx
je 0x40f9f4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x11ac], 0
lea ecx, [edi + 4]
call fcn.00409ab0
mov eax, dword [edi + 0x11b0]
lea ecx, [edi + 0x11b0]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004a3550
push dword [edi + 0x11b0]
call fcn.004a46e7
mov ecx, dword [edi + 0x1180]
add esp, 4
mov byte [ebp - 4], 0x10
mov dword [edi + 0x1184], 0x4dc884
test ecx, ecx
je 0x40fa4a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x1180], 0
mov eax, dword [edi + 0x1154]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x1154]
mov dword [eax + 4], eax
mov dword [edi + 0x1158], 0
cmp ecx, dword [edi + 0x1154]
je 0x40fa85
nop
mov esi, dword [ecx]
push ecx
call fcn.004a46e7
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x1154]
jne 0x40fa70
push dword [edi + 0x1154]
call fcn.004a46e7
mov eax, dword [edi + 0x114c]
add esp, 4
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x114c]
mov dword [eax + 4], eax
mov dword [edi + 0x1150], 0
cmp ecx, dword [edi + 0x114c]
je 0x40facd
mov esi, dword [ecx]
push ecx
call fcn.004a46e7
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x114c]
jne 0x40fab8
push dword [edi + 0x114c]
call fcn.004a46e7
mov ecx, dword [edi + 0xdd4]
add esp, 4
mov byte [ebp - 4], 0xd
mov dword [edi + 0xdd8], 0x4dc884
test ecx, ecx
je 0x40fb03
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xdd4], 0
mov ecx, dword [edi + 0xdcc]
mov byte [ebp - 4], 0xc
mov dword [edi + 0xdd0], 0x4dc884
test ecx, ecx
je 0x40fb2b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xdcc], 0
push fcn.0040ac20
push 0xa
push 8
lea eax, [edi + 0xc94]
mov byte [ebp - 4], 0xb
push eax
call fcn.004a60ef
push fcn.0040ac20
push 0xa
push 8
lea eax, [edi + 0xc44]
mov byte [ebp - 4], 0xa
push eax
call fcn.004a60ef
push fcn.0040ac20
push 0xa
push 8
lea eax, [edi + 0xbf4]
mov byte [ebp - 4], 9
push eax
call fcn.004a60ef
push fcn.0040ac20
push 0xa
push 8
lea eax, [edi + 0xba4]
mov byte [ebp - 4], 8
push eax
call fcn.004a60ef
mov ecx, dword [edi + 0xac4]
mov byte [ebp - 4], 7
mov dword [edi + 0xac8], 0x4dc884
test ecx, ecx
je 0x40fbb7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xac4], 0
mov dword [edi + 0xac0], vtable.CDummySynDisplay.0
mov dword [edi + 0xab8], 0x4defac
mov ecx, dword [edi + 0xabc]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x40fbe9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xabc], 0
mov esi, dword [edi + 0xab0]
test esi, esi
je 0x40fc41
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x40fc37
test esi, esi
je 0x40fc37
mov eax, dword [esi]
test eax, eax
je 0x40fc17
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40fc2e
push eax
call fcn.004a6088
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.004a46e7
add esp, 4
mov dword [edi + 0xab0], 0
lea ecx, [edi + 0x314]
mov byte [ebp - 4], 4
mov dword [ecx], vtable.CRegionZone.0
call fcn.0047b030
lea ecx, [edi + 0x1b8]
mov byte [ebp - 4], 3
mov dword [ecx], vtable.CRegionZone.0
call fcn.0047b030
lea ecx, [edi + 0x5c]
mov byte [ebp - 4], 2
mov dword [ecx], vtable.CRegionZone.0
call fcn.0047b030
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], 0x14
test ecx, ecx
je 0x40fca5
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 0x40fcca
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.0040f6f0
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