Function at 0x40ca60
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daded
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x51a500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xd8], eax
mov byte [eax], 0
mov esi, dword [edi + 0x1ac]
cmp esi, dword [edi + 0x1b0]
je 0x40cafd
mov ecx, dword [esi]
lea edx, [ebp - 0xdc]
push edx
mov edx, dword [ebp - 0xe4]
push edx
push dword [ebp + 0xc]
mov dword [ebp - 0xdc], 0
mov eax, dword [ecx]
push dword [ebp + 8]
mov eax, dword [eax]
call eax
cmp dword [ebp - 0xdc], 0
mov ecx, eax
je 0x40caec
cmp dword [ebp + 8], 0x200
jne 0x40cb2e
add esi, 4
cmp esi, dword [edi + 0x1b0]
jne 0x40cab2
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp + 8]
cmp ecx, 0x10d
ja 0x40d014
je 0x40cfbe
lea eax, [ecx - 5]
cmp eax, 0xfd
ja case.default.0x40da20
movzx eax, byte [eax + 0x40e060]
jmp dword [eax*4 + 0x40e030]
mov eax, dword [ebp - 0xd8]
mov byte [eax], 1
mov eax, ecx
jmp 0x40dea9
mov ecx, dword [edi + 0xe8]
test ecx, ecx
je 0x40cb61
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x10
call fcn.0042af50
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x40cb84
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.0042af50
mov ecx, dword [edi + 0xfc]
test ecx, ecx
je 0x40cba7
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.0042af50
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x40cbca
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.0042af50
push 0
mov ecx, edi
call fcn.0040e440
push 4
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.default.0x40da20
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.default.0x40da20
mov eax, dword [ebp - 0xd8]
mov byte [eax], 1
mov eax, 1
jmp 0x40dea9
mov ecx, edi
call fcn.0040e8a0
mov eax, dword [ebp - 0xd8]
mov byte [eax], 1
jmp case.default.0x40da20
mov ecx, dword [edi + 0xe0]
test ecx, ecx
je 0x40cc3d
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x26
call fcn.0042af50
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x40cc49
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x40cc6c
push 1
lea ecx, [edi + 0x1fc]
call fcn.00416380
mov eax, dword [ebp - 0xd8]
mov byte [eax], 1
jmp case.default.0x40da20
test eax, eax
jne 0x40db02
push eax
jmp 0x40cc53
mov eax, dword [edi + 0xec]
xor ecx, ecx
test eax, eax
movsx esi, dx
mov dword [edi + 0xf4], esi
cmovne ecx, eax
mov eax, dword [edi + 0xfc]
test eax, eax
cmovne ecx, eax
mov eax, dword [edi + 0x108]
test eax, eax
cmovne ecx, eax
mov eax, edx
shr eax, 0x10
cwde
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xdc], eax
mov dword [edi + 0xf8], eax
test ecx, ecx
je case.default.0x40da20
cmp byte [ecx + 0x8b], 0
je case.default.0x40da20
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
mov byte [edi + 0x117], 0
push ecx
mov dword [esp], 0
push 0
mov dword [eax], esi
mov esi, dword [ebp - 0xe4]
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xe8]
push 0x13
call fcn.0042af50
mov dword [edi + 0xec], 0
mov dword [edi + 0xfc], 0
mov dword [edi + 0x108], 0
jmp case.default.0x40da20
movsx eax, dx
mov dword [ebp - 0xd4], eax
shr edx, 0x10
movsx eax, dx
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd4]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [edi + 0xec], 0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd0]
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], ecx
je case.default.0x40da20
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0xd4]
sub esp, 8
mov ecx, esp
mov byte [edi + 0x117], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0xec]
push ecx
mov dword [esp], 0
push 0
push ecx
push dword [ebp + 0xc]
push 1
call fcn.0042af50
mov dword [edi + 0xec], 0
jmp case.default.0x40da20
mov ecx, dword [edi + 0xe0]
test ecx, ecx
je case.default.0x40da20
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edx
push eax
push 0xa
call fcn.0042af50
jmp case.default.0x40da20
mov ecx, dword [edi + 0xe0]
test ecx, ecx
je case.default.0x40da20
mov eax, dword [ebp + 0xc]
cmp eax, 9
jne 0x40ce99
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x40ce76
mov ecx, dword [edi + 0xe0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x88]
call eax
test al, al
je 0x40ce76
push 0
push 0x51c898
push 0x51c87c
push 0
push dword [edi + 0xe0]
call fcn.004aa7ef
add esp, 0x14
test eax, eax
je 0x40ce76
push 0
push 0x51c898
push 0x51c87c
push 0
push dword [edi + 0xe0]
call fcn.004aa7ef
add esp, 0x14
cmp byte [eax + 0x44d], 0
jne case.default.0x40da20
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr ax, 0xf
mov ecx, edi
xor al, 1
movzx eax, al
push eax
call fcn.0040e610
mov eax, 1
jmp 0x40dea9
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edx
push eax
push 8
mov dword [edi + 0xf0], ecx
call fcn.0042af50
jmp case.default.0x40da20
mov ecx, dword [edi + 0xf0]
test ecx, ecx
je case.default.0x40da20
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edx
push eax
push 9
call fcn.0042af50
mov dword [edi + 0xf0], 0
jmp case.default.0x40da20
cmp dx, 1
jne case.default.0x40da20
cmp dword [edi + 0xec], 0
jne 0x40db02
cmp dword [edi + 0xfc], 0
jne 0x40db02
cmp dword [edi + 0x108], 0
jne 0x40db02
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [edi + 0xf8], eax
call fcn.0040e750
test eax, eax
je case.default.0x40da20
mov ecx, dword [ebp - 0x18]
sub esp, 8
mov esi, dword [ebp - 0xe4]
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x14]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebp + 0xc]
mov dword [edx + 4], ecx
mov ecx, eax
push 0x28
call fcn.0042af50
mov eax, dword [ebp - 0xd8]
mov byte [eax], 1
jmp case.default.0x40da20
test edx, edx
je 0x40db02
push edx
push dword [ebp + 0xc]
lea eax, [ecx + 0x2000]
push eax
push dword [edx]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40dea9
mov esi, dword [edi + 0xe0]
test esi, esi
je case.default.0x40da20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], 0x30
mov word [ebp - 0x30], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x44]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
jmp case.default.0x40da20
cmp ecx, 0x240
ja 0x40d883
je 0x40d596
lea eax, [ecx - 0x10e]
cmp eax, 0xfc
ja case.default.0x40da20
movzx eax, byte [eax + 0x40e188]
jmp dword [eax*4 + 0x40e160]
cmp dword [edi + 0xfc], 0
jne case.default.0x40da20
cmp dword [edi + 0x108], 0
jne case.default.0x40da20
cmp byte [edi + 0x116], 0
jne 0x40d0b3
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xac]
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], 3
test eax, eax
jne 0x40d08f
mov dword [ebp - 0x14], 0x190
jmp 0x40d0a2
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [edi + 0x116], 1
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
push esi
push dword [ebp + 0xc]
movsx ecx, si
mov dword [ebp - 0xd0], eax
mov dword [edi + 0xf8], eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], ecx
mov dword [edi + 0xf4], ecx
mov ecx, edi
push eax
call fcn.0040e2c0
test al, al
je case.default.0x40da20
cmp dword [edi + 0xec], 0
je 0x40d133
mov ecx, dword [ebp - 0xd4]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd0]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xec]
push 0xe
call fcn.0042af50
jmp case.default.0x40da20
cmp dword [edi + 0xe4], 0
je case.default.0x40da20
mov ecx, dword [ebp - 0xd4]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd0]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xe4]
push 0xe
call fcn.0042af50
jmp case.default.0x40da20
cmp dword [edi + 0xfc], 0
jne case.default.0x40da20
cmp dword [edi + 0x108], 0
jne case.default.0x40da20
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
movsx ecx, si
push eax
mov dword [ebp - 0xe8], ecx
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xd8], eax
mov dword [edi + 0xf8], eax
call fcn.0040e750
mov dword [ebp - 0xdc], eax
test eax, eax
je case.default.0x40da20
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx]
call edx
cmp eax, edi
jne case.default.0x40da20
mov ecx, dword [ebp - 0xdc]
mov dword [edi + 0xec], ecx
mov eax, dword [ecx]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0xe8]
sub esp, 8
mov eax, esp
mov byte [edi + 0x117], 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd8]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xdc]
push 0x12
call fcn.0042af50
jmp case.default.0x40da20
cmp dword [edi + 0xfc], 0
jne case.default.0x40da20
cmp dword [edi + 0x108], 0
jne case.default.0x40da20
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
movsx ecx, si
push eax
mov dword [ebp - 0xe8], ecx
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xd8], eax
mov dword [edi + 0xf8], eax
call fcn.0040e750
mov dword [ebp - 0xdc], eax
test eax, eax
je case.default.0x40da20
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx]
call edx
cmp eax, edi
jne case.default.0x40da20
mov ecx, dword [ebp - 0xdc]
mov dword [edi + 0xec], ecx
mov eax, dword [ecx]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0xe8]
sub esp, 8
mov eax, esp
mov byte [edi + 0x117], 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd8]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xdc]
push 0x14
call fcn.0042af50
jmp case.default.0x40da20
cmp dword [edi + 0xfc], 0
jne case.default.0x40da20
cmp dword [edi + 0x108], 0
jne case.default.0x40da20
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
movsx ecx, si
push eax
mov dword [ebp - 0xe8], ecx
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xd8], eax
mov dword [edi + 0xf8], eax
call fcn.0040e750
mov dword [ebp - 0xdc], eax
test eax, eax
je case.default.0x40da20
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx]
call edx
cmp eax, edi
jne case.default.0x40da20
mov eax, dword [ebp - 0xdc]
push dword [edi + 0x10]
mov dword [edi + 0xec], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0xe8]
sub esp, 8
mov eax, esp
mov byte [edi + 0x117], 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd8]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xdc]
push 0
call fcn.0042af50
jmp case.default.0x40da20
mov eax, edx
movsx esi, dx
shr eax, 0x10
cwde
mov dword [ebp - 0xdc], eax
mov dword [edi + 0xf4], esi
mov dword [edi + 0xf8], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0xec], 0
mov byte [edi + 0x117], 0
je case.default.0x40da20
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
push ecx
mov dword [esp], 0
push 0
mov dword [eax], esi
mov esi, dword [ebp - 0xe4]
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xec]
push 0x13
call fcn.0042af50
mov dword [edi + 0xec], 0
jmp case.default.0x40da20
mov eax, edx
movsx esi, dx
shr eax, 0x10
cwde
mov dword [ebp - 0xdc], eax
mov dword [edi + 0xf4], esi
mov dword [edi + 0xf8], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0xec], 0
mov byte [edi + 0x117], 0
je case.default.0x40da20
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
push ecx
mov dword [esp], 0
push 0
mov dword [eax], esi
mov esi, dword [ebp - 0xe4]
push esi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xec]
push 0x15
call fcn.0042af50
jmp case.default.0x40da20
mov ecx, dword [edi + 0xe0]
test ecx, ecx
je case.default.0x40da20
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edx
push eax
push 0x31
call fcn.0042af50
jmp case.default.0x40da20
movsx eax, dx
mov dword [ebp - 0xd4], eax
mov eax, edx
shr eax, 0x10
cwde
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd4]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd4]
push eax
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [edi + 0xf8], eax
call fcn.0040e750
mov dword [ebp - 0xdc], eax
test eax, eax
je case.default.0x40da20
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx]
call edx
cmp eax, edi
jne case.default.0x40da20
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xe4]
push 0
push 0
push ecx
mov ecx, dword [ebp - 0xdc]
mov dword [esp], 0
push 0
shr eax, 0x10
push esi
cwde
push eax
push 0x18
call fcn.0042af50
jmp case.default.0x40da20
test edx, edx
je case.default.0x40da20
mov eax, dword [ebp - 0xd8]
push edx
push dword [ebp + 0xc]
mov byte [eax], 1
lea eax, [ecx + 0x2000]
push eax
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40dea9
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, esi
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a66c1
add esp, 4
mov dword [ebp - 0xd8], eax
cmp esi, 1
jb 0x40d845
mov edx, dword fs:[0x2c]
mov ecx, dword [0x522f20]
mov edx, dword [edx]
cmp ecx, dword [edx + 4]
jg 0x40dec6
jmp 0x40d5e6
mov eax, dword [ebp - 0xd8]
mov ecx, dword [0x522f24]
test ecx, ecx
je 0x40d845
push 0x28
push eax
push esi
mov esi, dword [ebp - 0xe4]
push esi
call ecx
cmp eax, 1
jne 0x40d84b
mov ecx, dword [ebp - 0xd8]
cmp dword [ecx + 0xc], 0
je 0x40d84b
mov eax, 0x51eb851f
imul dword [ecx]
mov eax, 0x51eb851f
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp - 0xd8]
imul dword [ecx + 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd4]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 0x10]
test al, 2
je 0x40d72b
cmp dword [edi + 0xec], 0
jne case.default.0x40da20
cmp dword [edi + 0x108], 0
jne case.default.0x40da20
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd4]
push eax
mov dword [edi + 0x100], ecx
push ecx
mov ecx, edi
mov dword [edi + 0x104], eax
call fcn.0040e750
mov dword [ebp - 0xdc], eax
test eax, eax
je case.default.0x40da20
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx]
call edx
cmp eax, edi
jne case.default.0x40da20
mov ecx, dword [ebp - 0xdc]
mov dword [edi + 0xfc], ecx
mov eax, dword [ecx]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 0xd4]
sub esp, 8
mov ecx, esp
mov byte [edi + 0x117], 1
push ecx
mov dword [esp], 0
push 0
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xdc]
push 0x1b
call fcn.0042af50
jmp 0x40d84b
test al, 1
je 0x40d7d3
cmp dword [edi + 0xec], 0
jne case.default.0x40da20
cmp dword [edi + 0x108], 0
jne case.default.0x40da20
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd0]
cmp dword [edi + 0x100], ecx
jne 0x40d76d
cmp dword [edi + 0x104], eax
je case.default.0x40da20
cmp dword [edi + 0xfc], 0
mov dword [edi + 0x100], ecx
mov dword [edi + 0x104], eax
je case.default.0x40da20
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.0040e2c0
test al, al
je case.default.0x40da20
mov eax, dword [ebp - 0xd4]
sub esp, 8
mov ecx, esp
push ecx
mov dword [esp], 0
push 0
push 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0xfc]
push 0x1c
call fcn.0042af50
jmp 0x40d84b
test al, 4
je 0x40d84b
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd0]
mov dword [edi + 0x100], eax
mov dword [edi + 0x104], ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0xfc], 0
mov byte [edi + 0x117], 0
je case.default.0x40da20
mov eax, dword [ebp - 0xd4]
sub esp, 8
mov ecx, esp
push ecx
mov dword [esp], 0
push 0
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0xfc]
push 0x1d
call fcn.0042af50
mov dword [edi + 0xfc], 0
jmp 0x40d84b
mov esi, dword [ebp - 0xe4]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x522f28]
cmp eax, dword [ecx + 4]
jg 0x40df0e
mov eax, dword [0x522f2c]
test eax, eax
je 0x40d870
push esi
call eax
push dword [ebp - 0xd8]
call fcn.004a66ca
add esp, 4
jmp case.default.0x40da20
cmp ecx, 0x2a1
ja 0x40de1a
je 0x40dc37
lea eax, [ecx - 0x245]
mov dword [ebp - 0xe0], eax
cmp eax, 7
ja case.default.0x40da20
movzx eax, byte [eax + 0x40e290]
jmp dword [eax*4 + 0x40e288]
cmp byte [edi + 0x10c], 0
je case.default.0x40da20
mov ecx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 0x10
test eax, 0x2000
je 0x40db02
mov eax, dword fs:[0x2c]
movzx ecx, cx
mov dword [ebp - 0xe8], ecx
mov esi, dword [eax]
mov eax, dword [0x522f30]
cmp eax, dword [esi + 4]
jg 0x40df56
jmp 0x40d902
mov ecx, dword [ebp - 0xe8]
mov eax, dword [0x522f34]
test eax, eax
je case.default.0x40da20
lea edx, [ebp - 0xec]
push edx
push ecx
call eax
cmp eax, 1
jne case.default.0x40da20
mov eax, dword [ebp - 0xec]
xorps xmm0, xmm0
movlpd qword [ebp - 0xd4], xmm0
sub eax, 2
je 0x40d991
sub eax, 1
jne case.default.0x40da20
mov eax, dword [0x522f40]
cmp eax, dword [esi + 4]
jg 0x40df9e
mov eax, dword [0x522f44]
test eax, eax
je case.default.0x40da20
lea ecx, [ebp - 0x15c]
push ecx
push dword [ebp - 0xe8]
call eax
cmp eax, 1
jne case.default.0x40da20
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xfc]
jmp 0x40d9dc
mov eax, dword [0x522f38]
cmp eax, dword [esi + 4]
jg 0x40dfe6
mov eax, dword [0x522f3c]
test eax, eax
je case.default.0x40da20
lea ecx, [ebp - 0xcc]
push ecx
push dword [ebp - 0xe8]
call eax
cmp eax, 1
jne case.default.0x40da20
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x48]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [ebp - 0xd0], ecx
addsd xmm0, qword [eax*8 + 0x504d00]
lea eax, [ebp - 0xd4]
push eax
push dword [edi + 0x10]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x504c28]
movss dword [ebp - 0xe8], xmm0
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0xe0]
jmp dword [eax*4 + 0x40e298]
cmp dword [edi + 0xec], 0
jne 0x40db02
cmp dword [edi + 0xfc], 0
jne 0x40db02
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd4]
push eax
mov dword [edi + 0xf4], ecx
push ecx
mov ecx, edi
mov dword [edi + 0xf8], eax
call fcn.0040e750
mov esi, eax
mov dword [ebp - 0xe0], esi
test esi, esi
je case.default.0x40da20
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx]
call edx
cmp eax, edi
jne case.default.0x40da20
mov dword [edi + 0x108], esi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
movss xmm0, dword [ebp - 0xe8]
sub esp, 8
mov eax, dword [ebp - 0xd4]
mov ecx, esp
mov esi, dword [ebp - 0xe4]
mov byte [edi + 0x117], 1
push ecx
movss dword [esp], xmm0
push 0
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xe0]
push 0x20
call fcn.0042af50
mov eax, dword [edi + 0x108]
test eax, eax
je case.default.0x40da20
cmp byte [eax + 0x8a], 0
je case.default.0x40da20
mov eax, dword [ebp - 0xd8]
mov byte [eax], 1
jmp case.default.0x40da20
cmp dword [edi + 0xec], 0
jne 0x40db02
cmp dword [edi + 0xfc], 0
jne 0x40db02
cmp dword [edi + 0x108], 0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd0]
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], ecx
je case.default.0x40da20
mov esi, dword [ebp - 0xe4]
lea eax, [ebp - 0xd4]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0040e2c0
test al, al
je case.default.0x40da20
movss xmm0, dword [ebp - 0xe8]
sub esp, 8
mov eax, dword [ebp - 0xd4]
mov ecx, esp
push ecx
movss dword [esp], xmm0
push 0
push 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x108]
push 0x21
jmp 0x40dae2
movsx eax, dx
shr edx, 0x10
movsx ecx, dx
push ecx
mov dword [ebp - 0xec], ecx
mov ecx, edi
push eax
mov byte [edi + 0x116], 0
mov dword [ebp - 0xe0], eax
call fcn.0040e750
mov esi, eax
test esi, esi
je case.default.0x40da20
cmp dword [edi + 0xe8], 0
je 0x40dca0
mov ecx, dword [ebp - 0xe0]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xec]
push ecx
mov dword [esp], 0
push 0
push 0
push 0
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xe8]
push 0x11
call fcn.0042af50
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, esi
call dword [eax + 0x3c]
mov dword [ebp - 4], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov eax, dword [edi + 0x10]
push 0
mov dword [edi + 0xb0], 0x30
mov dword [edi + 0xb4], 1
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x20]
mov dword [edi + 0xd0], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
mov dword [edi + 0xd4], eax
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x1c]
call eax
cmp dword [edi + 0xac], 0
movups xmm0, xmmword [eax]
movups xmmword [edi + 0xc0], xmm0
jne 0x40ddb9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push dword [edi + 0x10]
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysStringLen
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [edi + 0xb0]
mov dword [edi + 0xac], eax
push ecx
push 0
push 0x432
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x58]
call eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x418
push dword [edi + 0xac]
call esi
lea eax, [edi + 0xb0]
push eax
push 0
push 0x436
push dword [edi + 0xac]
call esi
lea eax, [edi + 0xb0]
push eax
push 1
push 0x411
push dword [edi + 0xac]
call esi
lea ecx, [ebp - 0x38]
call fcn.00402650
mov eax, dword [ebp - 0xd8]
mov byte [eax], 1
jmp case.default.0x40da20
cmp ecx, 0x2a3
je 0x40de68
cmp ecx, 0x8001
jne case.default.0x40da20
mov esi, dword [edi + 0x1d0]
cmp esi, dword [edi + 0x1d4]
je 0x40de5a
mov ecx, dword [esi]
test ecx, ecx
je 0x40de4f
mov eax, dword [ecx + 4]
push 1
mov eax, dword [eax + 4]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
add esi, 4
cmp esi, dword [edi + 0x1d4]
jne 0x40de38
mov eax, dword [edi + 0x1d0]
mov dword [edi + 0x1d4], eax
jmp case.default.0x40da20
mov ecx, dword [edi + 0xac]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x40de89
lea eax, [edi + 0xb0]
push eax
push 0
push 0x411
push ecx
call esi
cmp byte [edi + 0x116], 0
je 0x40dea0
push 0xffffffffffffffff
push 0
push 0x200
push dword [edi + 0x10]
call esi
mov byte [edi + 0x116], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6675
mov esp, ebp
pop ebp
ret 0x10
push 0x522f20
call fcn.004a6e5e
add esp, 4
cmp dword [0x522f20], 0xffffffff
jne 0x40d5e0
push str.GetTouchInputInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x522f20
mov dword [0x522f24], eax
call fcn.004a6e0d
add esp, 4
jmp 0x40d5e0
push 0x522f28
call fcn.004a6e5e
add esp, 4
cmp dword [0x522f28], 0xffffffff
jne 0x40d864
push str.CloseTouchInputHandle
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x522f28
mov dword [0x522f2c], eax
call fcn.004a6e0d
add esp, 4
jmp 0x40d864
push 0x522f30
call fcn.004a6e5e
add esp, 4
cmp dword [0x522f30], 0xffffffff
jne 0x40d8fc
push str.GetPointerType
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x522f30
mov dword [0x522f34], eax
call fcn.004a6e0d
add esp, 4
jmp 0x40d8fc
push 0x522f40
call fcn.004a6e5e
add esp, 4
cmp dword [0x522f40], 0xffffffff
jne 0x40d952
push str.GetPointerPenInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x522f40
mov dword [0x522f44], eax
call fcn.004a6e0d
add esp, 4
jmp 0x40d952
push 0x522f38
call fcn.004a6e5e
add esp, 4
cmp dword [0x522f38], 0xffffffff
jne 0x40d9a2
push str.GetPointerTouchInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x522f38
mov dword [0x522f3c], eax
call fcn.004a6e0d
add esp, 4
jmp 0x40d9a2