Function at 0x409ae0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48619b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2a0], eax
lea eax, [edx - 0x1000]
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x2b4], edi
cmp eax, 0xff
ja 0x409b4f
push edi
push ecx
push edx
push dword [ebp - 0x2a0]
mov ecx, esi
call fcn.00407980
jmp 0x40a49d
lea eax, [edx - 0x200]
cmp eax, 0xd
ja 0x409bca
movsx eax, di
xorps xmm0, xmm0
mov dword [ebp - 0x220], eax
mov eax, edi
shr eax, 0x10
cwde
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x220]
push eax
push dword [esi + 0x2c]
mov dword [ebp - 0x23c], ecx
mov ecx, esi
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x238], edi
movq qword [ebp - 0x234], xmm0
mov dword [ebp - 0x22c], 0
call fcn.004098e0
lea eax, [ebp - 0x244]
push eax
push 0
push 0x407
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x201
jne 0x409cb7
cmp byte [esi + 0xbc], 0
je 0x409e34
movsx eax, di
mov dword [ebp - 0x298], eax
sub eax, dword [esi + 0x90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jg 0x409e8f
push dword [ebp - 0x2a0]
call dword [sym.imp.USER32.dll_SetCapture]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp - 0x298]
mov dword [esi + 0xc0], eax
push dword [ebp - 0x2a0]
call dword [sym.imp.USER32.dll_SetFocus]
lea edx, [ebp - 0x2a4]
movsx ecx, di
push edx
push 0
mov eax, edi
mov dword [ebp - 0x21c], 0
shr eax, 0x10
lea edx, [ebp - 0x21c]
push edx
cwde
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x2a4], 0
call fcn.00406b50
mov dword [ebp - 0x21c], eax
test al, 0xe0
je 0x409c8e
push 0
push 0
push dword [ebp - 0x2a4]
mov ecx, esi
push 0
push 0xfffffffffffffffe
push dword [esi + 8]
call fcn.00404b90
mov eax, dword [ebp - 0x21c]
test al, 0x40
je 0x40af3b
mov ecx, dword [ebp - 0x2a4]
mov eax, dword [ecx + 0x20]
shr eax, 4
not al
and al, 1
movzx eax, al
push eax
push ecx
mov ecx, esi
call fcn.00405be0
jmp case.0x40a7ba.35
cmp ecx, 0x200
jne 0x409e68
cmp byte [esi + 0xbc], 0
je 0x409e34
movsx eax, di
mov dword [ebp - 0x2a4], eax
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x2a0]
jne 0x409d6f
test byte [ebp - 0x29c], 1
je 0x409d6f
mov ecx, dword [ebp - 0x2a4]
sub ecx, dword [esi + 0xc0]
je 0x409d5e
mov edx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
lea eax, [edx + ecx]
cmp eax, edi
jge 0x409d19
mov ecx, edi
sub ecx, edx
add dword [esi + 0xc0], ecx
lea edi, [edx + ecx]
push edi
mov ecx, esi
call fcn.00408a90
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 1
push eax
push 0
push 0x120c
push dword [esi + 0xc]
mov dword [ebp - 0x250], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00408c20
mov edi, dword [ebp - 0x2b4]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
jmp 0x40aead
mov eax, dword [ebp - 0x2a4]
sub eax, dword [esi + 0x90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jg 0x409d96
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
jmp 0x40aead
push 0xfffffffffffffff4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClassLongW]
cmp dword [esi + 0xd8], 0
mov ecx, eax
mov dword [ebp - 0x298], ecx
je 0x409e2a
mov ecx, edi
mov dword [ebp - 0x2b8], 0
shr ecx, 0x10
movsx eax, cx
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 0
push ecx
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2a8], 0
push ecx
push eax
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00406b50
mov eax, dword [ebp - 0x2a8]
test eax, eax
je 0x409e24
push dword [ebp - 0x2b0]
push eax
mov eax, dword [esi + 0xd8]
call eax
mov ecx, dword [ebp - 0x298]
add esp, 8
test eax, eax
cmovne ecx, eax
jmp 0x409e2a
mov ecx, dword [ebp - 0x298]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2a0]
cmp ecx, 0x100
ja 0x40aa30
je 0x40a73e
lea eax, [ecx - 2]
cmp eax, 0x85
ja case.default.0x40afdc
movzx eax, byte [eax + 0x40b098]
jmp dword [eax*4 + 0x40b068]
cmp ecx, 0x202
jne 0x409e34
cmp byte [esi + 0xbc], 0
je 0x409e34
call dword [sym.imp.USER32.dll_GetCapture]
mov edx, dword [ebp - 0x2a0]
cmp eax, edx
jne 0x409e9d
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0xfffffffffffffff4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClassLongW]
push eax
jmp 0x409e2b
mov ecx, dword [ebp + 0xc]
jmp 0x409e3a
mov eax, 1
jmp 0x40a49d
mov eax, dword [ebp - 0x29c]
push edi
test eax, eax
je 0x409ed7
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, esi
mov byte [esi + 0x9d], 0
mov edi, eax
call fcn.004087a0
mov eax, edi
jmp 0x40a49d
push 0
push ecx
push edx
mov byte [esi + 0x9d], 1
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x40a49d
cmp dword [ebp - 0x29c], edx
jne case.default.0x40afdc
mov eax, 1
jmp 0x40a49d
mov ecx, dword [ebp - 0x29c]
test di, di
mov dword [esi + 0x30], ecx
setne al
movzx edi, al
push edi
push ecx
push 0x30
push dword [esi + 0xc]
mov byte [ebp - 0x2a9], al
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [esi + 0x30]
push 0x30
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [esi + 0x30]
push 0x30
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [esi + 0x30]
push 0x30
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [esi + 0x30]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x30
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x238]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x238]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x2bc], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x284]
movq qword [ebp - 0x270], xmm0
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2bc]
push eax
push 0
push 0x1205
push dword [esi + 0xc]
movdqu xmmword [ebp - 0x280], xmm0
call edi
mov eax, dword [ebp - 0x26c]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
or eax, 0x40
push eax
push dword [ebp - 0x270]
push dword [esi + 0x90]
push 0
push 0
push dword [ebp - 0x280]
push dword [esi + 0xc]
call edi
mov eax, dword [ebp - 0x26c]
mov ecx, dword [esi + 0x90]
or eax, 0x40
push eax
push dword [ebp - 0x270]
mov eax, dword [ebp - 0x274]
sub eax, ecx
push eax
push 0
push ecx
push dword [esi + 0xc]
push dword [esi + 0x14]
call edi
cmp byte [ebp - 0x2a9], 0
je case.default.0x40ade4
mov ecx, esi
call fcn.004087a0
xor eax, eax
jmp 0x40a49d
mov eax, dword [esi + 0x7c]
test eax, eax
je case.default.0x40afdc
push eax
mov ecx, esi
call fcn.004087f0
jmp case.default.0x40afdc
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, dword [ebp - 0x2a0]
push 0
push eax
push edi
mov dword [ebp - 0x298], eax
call dword [sym.imp.USER32.dll_GetUpdateRgn]
cmp eax, 1
je 0x40a09f
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
push dword [ebp - 0x298]
lea eax, [ebp - 0x268]
mov ecx, esi
push eax
call fcn.00404c10
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
push dword [ebp - 0x298]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
jmp 0x40a49d
push edi
push dword [ebp - 0x29c]
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
or eax, 1
jmp 0x40a49d
mov ecx, esi
call fcn.00408c20
mov ecx, esi
call fcn.00408cf0
mov ecx, esi
call fcn.00408970
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x248]
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0x30
push ecx
movdqu xmmword [ebp - 0x250], xmm0
push eax
mov dword [ebp - 0x254], 0
movdqu xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x250], eax
movq qword [ebp - 0x230], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x258]
push eax
push 0
push 0x434
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x40afdc
mov eax, dword [edi]
cmp eax, dword [esi + 0x2c]
jne 0x40a3d2
mov eax, dword [edi + 8]
cmp eax, 0xfffffdee
je 0x40a207
cmp eax, 0xfffffdf7
jne 0x40a3d2
lea eax, [ebp - 0x278]
mov ecx, esi
push eax
push dword [esi + 0xac]
push 1
push 0
push dword [esi + 0xa4]
push dword [esi + 0xa8]
call fcn.00405f10
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x278]
push eax
push 1
push 0x41f
push dword [esi + 0x2c]
call edi
push 2
lea eax, [ebp - 0x278]
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x15
push 0
push 0
push dword [ebp - 0x274]
push dword [ebp - 0x278]
push 0
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [esi + 0x30]
push 0x30
push dword [esi + 0x2c]
call edi
push 0
push 0
push dword [esi + 0xac]
mov ecx, esi
push dword [esi + 0xa4]
push 0x7d5
push dword [esi + 0x2c]
call fcn.00404b90
mov eax, 1
jmp 0x40a49d
cmp dword [esi + 0xac], 0
je 0x40a3cb
lea eax, [edi + 0xc]
push eax
push 0
lea ecx, [edi + 0x10]
mov dword [ebp - 0x2a8], eax
mov dword [eax], ecx
push dword [esi + 0xac]
mov dword [ebp - 0x298], ecx
mov ecx, esi
push dword [esi + 0xa4]
push 0x7d4
push dword [esi + 8]
call fcn.00404b90
test eax, eax
jne case.default.0x40ade4
mov eax, dword [esi + 0xac]
lea edi, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 0x50
push edi
push dword [ebp - 0x298]
mov ecx, dword [eax + 4]
push dword [esi + 0xa4]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
push 0x4e
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, esi
mov dword [ebp - 0x270], eax
call fcn.004078d0
mov dword [ebp - 0x26c], eax
mov ecx, esi
lea eax, [ebp - 0x294]
push eax
push dword [esi + 0xac]
push 1
push 1
push dword [esi + 0xa4]
push dword [esi + 0xa8]
call fcn.00405f10
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x1c
push eax
push 2
push dword [esi + 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movdqu xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x240], 4
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp - 0x294]
cmp eax, dword [esi + 0x90]
jne 0x40a32b
cmp dword [ebp - 0x230], 0
jne case.default.0x40ade4
mov eax, dword [esi + 0xa0]
push dword [esi + 8]
and eax, 0xfffb3fff
or eax, 0x400
mov dword [ebp - 0x2a4], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 0x30]
mov dword [ebp - 0x298], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x2a4]
mov edi, eax
lea eax, [ebp - 0x278]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2b0]
push dword [ebp - 0x298]
call dword [sym.imp.USER32.dll_DrawTextW]
push edi
mov edi, dword [ebp - 0x298]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x28c]
mov ecx, 0x490c20
mov eax, dword [ebp - 0x270]
sub eax, dword [ebp - 0x278]
sub edx, dword [ebp - 0x294]
mov edi, dword [ebp - 0x2b4]
cmp eax, edx
mov eax, dword [ebp - 0x2a8]
cmovg ecx, dword [ebp - 0x2b0]
mov dword [eax], ecx
jmp 0x40a3d2
mov dword [edi + 0xc], 0x490c20
mov ecx, dword [edi]
mov edx, dword [esi + 0xc]
cmp ecx, edx
je 0x40a3e0
cmp ecx, dword [esi + 0x14]
jne case.default.0x40afdc
mov eax, dword [edi + 8]
cmp eax, 0xfffffec0
ja 0x40a6aa
je 0x40a514
cmp eax, 0xfffffebb
je 0x40a4ba
cmp eax, 0xfffffebe
je 0x40a416
cmp eax, 0xfffffebf
jne case.default.0x40afdc
mov ecx, esi
call fcn.00408c20
jmp case.default.0x40afdc
cmp ecx, edx
jne 0x40a41e
xor eax, eax
jmp 0x40a422
mov eax, dword [edi + 0xc]
inc eax
push 0
push 0
push 0
push eax
push 0x7d3
push dword [esi + 8]
mov ecx, esi
call fcn.00404b90
cmp dword [ebp + 0xc], 0x31a
jne 0x40a47d
mov eax, dword [esi + 4]
test eax, eax
je 0x40a44f
push eax
call dword [0x4bd890]
mov dword [esi + 4], 0
mov eax, dword [0x4bd884]
test eax, eax
je 0x40a47d
call eax
test eax, eax
je 0x40a47d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
push eax
push dword [ebp - 0x2a0]
call dword [0x4bd888]
mov dword [esi + 4], eax
mov edi, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x29c]
mov eax, dword [esi]
push edi
push ecx
push dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov ecx, esi
push dword [ebp - 0x2a0]
call 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.0046f8ce
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
cmp ecx, dword [esi + 0x14]
sete al
add eax, dword [edi + 0xc]
mov dword [ebp - 0x298], eax
jne 0x40a4de
cmp byte [esi + 0x9c], 0
je 0x40a4de
mov edi, dword [esi + 0x98]
jmp 0x40a4ee
push eax
mov ecx, esi
call fcn.00405d80
mov edi, eax
mov eax, dword [ebp - 0x298]
push edi
push eax
mov ecx, esi
call fcn.00409060
cmp dword [ebp - 0x298], 0
jne 0x40a508
push edi
mov ecx, esi
call fcn.00408a90
mov ecx, esi
call fcn.00408c20
jmp case.default.0x40afdc
mov eax, dword [edi + 0x14]
test byte [eax], 1
je case.default.0x40afdc
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x40a536
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x94]
jl case.0x40ade4.8
xor eax, eax
cmp ecx, dword [esi + 0x14]
lea ecx, [ebp - 0x278]
sete al
add eax, edx
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x2b8], eax
call fcn.00406190
lea eax, [ebp - 0x238]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x270]
mov eax, dword [eax + 4]
sub eax, ecx
add eax, dword [ebp - 0x278]
mov dword [ebp - 0x298], eax
je case.default.0x40ade4
mov eax, dword [ebp - 0x26c]
mov edi, dword [ebp - 0x2b8]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x288], eax
test edi, edi
jne 0x40a5c2
lea eax, [ecx - 1]
mov dword [ebp - 0x294], eax
push 0xfffffffffffffff0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1c
test al, 1
je 0x40a5e2
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub dword [ebp - 0x28c], eax
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x294]
push eax
push 0
push dword [ebp - 0x298]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ScrollWindowEx]
test edi, edi
jne 0x40a60f
cmp byte [esi + 0x9c], 0
jne 0x40a655
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
test edi, edi
jne 0x40a693
mov eax, dword [ebp - 0x270]
mov ecx, esi
add eax, dword [ebp - 0x298]
push eax
call fcn.00408a90
mov ecx, esi
call fcn.00408c20
mov ecx, esi
call fcn.00408cf0
push dword [esi + 0x14]
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
call edi
push dword [esi + 0x20]
call edi
push dword [esi + 0x24]
call edi
xor eax, eax
jmp 0x40a49d
mov ecx, esi
call fcn.00408c20
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
jmp 0x40a49d
cmp eax, 0xfffffec9
je 0x40a6c9
cmp eax, 0xfffffffb
jne case.default.0x40afdc
push 0
push 0
push 0
push 0
push eax
push ecx
jmp 0x40a431
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
jmp 0x40a49d
mov ecx, esi
call fcn.00404370
jmp case.default.0x40afdc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a6fd
cmp byte [esi + 0x3c], 0
jne 0x40a6fd
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
movzx eax, word [0x4bd8a0]
push 0
push eax
push dword [ebp - 0x2a0]
call dword [sym.imp.USER32.dll_SetPropW]
mov ecx, esi
call fcn.00403dc0
push esi
call fcn.0046f057
add esp, 4
push edi
push dword [ebp - 0x29c]
push dword [ebp + 0xc]
push dword [ebp - 0x2a0]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x40a49d
cmp byte [esi + 0xc4], 0
mov ecx, 0xffffff65
mov eax, 0x7d7
mov dword [ebp - 0x23c], edx
push 0xfffffffffffffff4
cmovne eax, ecx
push edx
mov dword [ebp - 0x234], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0x29c]
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x23c]
push ecx
push eax
push 0x4e
push dword [ebp - 0x2a0]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22e], 0
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x29c]
add eax, 0xffffffdf
cmp eax, 0x4a
ja case.0x40a7ba.35
movzx eax, byte [eax + 0x40b134]
jmp dword [eax*4 + 0x40b120]
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je case.0x40a7ba.35
push 0
push 0
push 0x1200
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
test eax, eax
jle 0x40a834
xor edi, edi
mov edi, edi
test edi, edi
jne 0x40a805
cmp byte [esi + 0x9c], 0
je 0x40a805
mov eax, dword [esi + 0x98]
jmp 0x40a80d
push edi
mov ecx, esi
call fcn.00405d80
push eax
push edi
mov ecx, esi
call fcn.00409060
push 0
push 0
push 0x1200
push dword [esi + 0x14]
inc edi
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
cmp edi, eax
jl 0x40a7f0
mov edi, dword [ebp - 0x2b4]
mov ecx, esi
call fcn.00408c20
jmp case.0x40a7ba.35
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je case.0x40a7ba.35
cmp dword [ebp - 0x29c], 0x28
jne 0x40a85b
call fcn.004083e0
jmp 0x40a860
call fcn.00408760
mov dword [ebp - 0x298], eax
test eax, eax
je case.0x40a7ba.35
push eax
mov ecx, esi
call fcn.00405ce0
push dword [ebp - 0x298]
mov ecx, esi
mov edi, eax
call fcn.00408fe0
push edi
mov ecx, esi
call fcn.00405b10
jmp 0x40a47d
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x2a8], eax
test eax, eax
je case.0x40a7ba.35
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x1c
push eax
push 2
push dword [esi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movdqu xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x240], 2
call dword [sym.imp.USER32.dll_GetScrollInfo]
cmp dword [ebp - 0x234], 0
mov dword [ebp - 0x298], 0
jbe 0x40a94a
mov edi, dword [ebp - 0x2a8]
jmp 0x40a900
cmp dword [ebp - 0x29c], 0x22
mov ecx, edi
jne 0x40a91e
call fcn.004083e0
test eax, eax
je 0x40a944
mov edi, eax
mov dword [ebp - 0x2a8], edi
jmp 0x40a92f
call fcn.00408760
test eax, eax
je 0x40a944
mov edi, eax
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x298]
inc eax
mov dword [ebp - 0x298], eax
cmp eax, dword [ebp - 0x234]
jb 0x40a900
mov edi, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2a8]
test eax, eax
je case.0x40a7ba.35
push eax
mov ecx, esi
call fcn.00405ce0
push dword [ebp - 0x2a8]
mov ecx, esi
mov edi, eax
call fcn.00408fe0
push edi
mov ecx, esi
call fcn.00405b10
jmp 0x40a47d
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je case.0x40a7ba.35
cmp dword [ebp - 0x29c], 0x27
mov edx, dword [ecx + 0x20]
mov eax, edx
jne 0x40a9d2
shr eax, 6
test al, 1
je case.0x40a7ba.35
shr edx, 4
test dl, 1
jne 0x40a9b7
push 1
push ecx
mov ecx, esi
call fcn.00405be0
jmp case.0x40a7ba.35
push 0
push 0x28
push 0x100
push dword [ebp - 0x2a0]
mov ecx, esi
call fcn.00409ae0
jmp 0x40a49d
shr eax, 4
test al, 1
je 0x40a9f0
shr edx, 6
test dl, 1
je 0x40a9f0
push 0
push ecx
mov ecx, esi
call fcn.00405be0
jmp case.0x40a7ba.35
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2b8], edx
test edx, edx
je case.0x40a7ba.35
lea eax, [esi + 0x40]
cmp edx, eax
je case.0x40a7ba.35
push ecx
mov ecx, esi
call fcn.00405ce0
push dword [ebp - 0x2b8]
mov ecx, esi
mov edi, eax
call fcn.00408fe0
push edi
mov ecx, esi
call fcn.00405b10
jmp 0x40a47d
cmp ecx, 0x20a
ja 0x40afcd
je 0x40af58
cmp ecx, 0x115
ja 0x40aea1
je 0x40ad97
sub ecx, 0x102
je 0x40abca
sub ecx, 0x11
je 0x40ab83
dec ecx
jne case.default.0x40afdc
test edi, edi
je case.0x40a7ba.35
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x1c
push eax
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x22c], ecx
push edi
movdqu xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x240], 7
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp - 0x29c]
movzx ecx, ax
cmp ecx, 8
ja case.default.0x40ade4
jmp dword [ecx*4 + 0x40b180]
shr eax, 0x10
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407040
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x238]
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407040
jmp case.0x40a7ba.35
xor eax, eax
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407040
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
inc eax
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407040
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
dec eax
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407040
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
add eax, dword [ebp - 0x234]
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407040
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
sub eax, dword [ebp - 0x234]
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407040
jmp case.0x40a7ba.35
cmp dword [ebp - 0x29c], 0x64
jne case.0x40a7ba.35
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x2a0]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
push dword [esi + 0x2c]
call fcn.004098e0
jmp case.0x40a7ba.35
cmp dword [esi + 0x5c], 0
je case.0x40a7ba.35
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [ebp - 0x2b8], eax
sub ecx, dword [esi + 0xcc]
cmp ecx, 0x2ee
jbe 0x40ac00
push 0x490b0d
lea ecx, [esi + 0xd0]
call fcn.00403f00
cmp dword [esi + 0x7c], 0
je 0x40ac53
push 0x490b0d
lea ecx, [ebp - 0x2c0]
call fcn.00403d10
push eax
lea ecx, [esi + 0xd0]
call fcn.00403fc0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 0x2a9], al
call fcn.00403a00
cmp byte [ebp - 0x2a9], 0
je 0x40ac46
mov ecx, dword [esi + 0x7c]
call fcn.004083e0
jmp 0x40ac49
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x2a8], eax
test eax, eax
jne 0x40ac5c
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b0]
mov dword [esi + 0xcc], eax
xor eax, eax
mov word [ebp - 0x296], ax
mov eax, dword [ebp - 0x29c]
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x298]
push eax
call fcn.00402050
lea eax, [ebp - 0x2b0]
mov dword [ebp - 4], 0
lea ecx, [esi + 0xd0]
push eax
call fcn.00404040
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0xffffffff
call fcn.00403a00
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], edx
jmp 0x40acd0
mov dword [ebp - 0x21c], 0x104
lea edi, [ebp - 0x21c]
mov ecx, dword [edx + 4]
push edi
lea edi, [ebp - 0x218]
push edi
mov eax, dword [ecx]
push 0
push edx
mov eax, dword [eax + 8]
call eax
mov edi, dword [ebp - 0x2b4]
lea ecx, [esi + 0xd0]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ecx]
test eax, eax
je 0x40ad17
mov eax, dword [eax]
mov dword [ebp - 0x2b0], eax
jmp 0x40ad21
mov dword [ebp - 0x2b0], 0
call fcn.00403a60
push eax
push dword [ebp - 0x2b0]
push dword [ebp - 0x2b8]
call fcn.0046ffcb
add esp, 0xc
test eax, eax
je 0x40ad70
mov ecx, dword [ebp - 0x2a4]
call fcn.004083e0
mov edx, eax
mov dword [ebp - 0x2a4], eax
test edx, edx
jne 0x40ad5f
mov edx, dword [esi + 0x54]
mov dword [ebp - 0x2a4], edx
cmp edx, dword [ebp - 0x2a8]
jne 0x40acd0
jmp case.0x40a7ba.35
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00408fe0
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00405ce0
push eax
mov ecx, esi
call fcn.00405b10
jmp case.0x40a7ba.35
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x1c
push eax
push 2
push dword [esi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movdqu xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x240], 7
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp - 0x29c]
movzx ecx, ax
cmp ecx, 8
ja case.default.0x40ade4
jmp dword [ecx*4 + 0x40b1a4]
shr eax, 0x10
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a70
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x238]
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a70
jmp case.0x40a7ba.35
xor eax, eax
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a70
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
inc eax
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a70
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
dec eax
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a70
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
add eax, dword [ebp - 0x234]
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a70
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
sub eax, dword [ebp - 0x234]
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a70
jmp case.0x40a7ba.35
cmp ecx, 0x201
je 0x409c24
lea eax, [ecx - 0x203]
cmp eax, 1
ja case.default.0x40afdc
lea edx, [ebp - 0x298]
movsx ecx, di
push edx
lea edx, [ebp - 0x2b0]
mov dword [ebp - 0x21c], 0
push edx
mov eax, edi
mov dword [ebp - 0x2b0], 0
shr eax, 0x10
lea edx, [ebp - 0x21c]
push edx
cwde
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x298], 0
call fcn.00406b50
test al, 0xe0
je case.default.0x40afdc
mov edi, dword [ebp - 0x298]
mov ecx, esi
push edi
call fcn.00408fe0
xor eax, eax
cmp dword [ebp + 0xc], 0x203
push 0
push 0
sete al
push edi
push dword [ebp - 0x2b0]
lea eax, [eax*2 - 5]
push eax
jmp 0x40a42e
test eax, 0x1e0
je case.0x40a7ba.35
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00408fe0
jmp case.0x40a7ba.35
mov eax, dword [ebp - 0x29c]
shr eax, 0x10
movsx ecx, ax
add ecx, dword [esi + 0x8c]
mov eax, ecx
mov dword [ebp - 0x21c], ecx
cdq
xor eax, edx
mov dword [esi + 0x8c], ecx
sub eax, edx
cmp eax, 0x28
jl case.0x40a7ba.35
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x21c]
shl ecx, 3
sub eax, ecx
mov ecx, esi
mov dword [esi + 0x8c], eax
mov eax, 0x99999999
imul dword [ebp - 0x21c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00409960
jmp case.0x40a7ba.35
add ecx, 0xffffe000
cmp ecx, 5
ja case.default.0x40afdc
jmp dword [ecx*4 + 0x40b1c8]
test edi, edi
mov ecx, esi
setne al
movzx eax, al
push eax
push dword [ebp - 0x29c]
call fcn.004090b0
xor eax, eax
jmp 0x40a49d
test edi, edi
mov ecx, esi
setne al
movzx eax, al
push eax
push dword [ebp - 0x29c]
call fcn.00405be0
movzx eax, al
jmp 0x40a49d
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 0x1c]
jmp 0x40a49d
push dword [ebp - 0x29c]
mov ecx, esi
call fcn.004087f0
xor eax, eax
jmp 0x40a49d
push dword [edi + 8]
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00408370
jmp 0x40a49d
push dword [ebp - 0x29c]
mov ecx, esi
call fcn.00405ce0
jmp 0x40a49d