Function at 0x409c90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4876fb
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 0x409cff
push edi
push ecx
push edx
push dword [ebp - 0x2a0]
mov ecx, esi
call fcn.00407b20
jmp 0x40a64d
lea eax, [edx - 0x200]
cmp eax, 0xd
ja 0x409d7a
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.00409a80
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 0x409e67
cmp byte [esi + 0xbc], 0
je 0x409fe4
movsx eax, di
mov dword [ebp - 0x298], eax
sub eax, dword [esi + 0x90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jg 0x40a03f
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.00406cf0
mov dword [ebp - 0x21c], eax
test al, 0xe0
je 0x409e3e
push 0
push 0
push dword [ebp - 0x2a4]
mov ecx, esi
push 0
push 0xfffffffffffffffe
push dword [esi + 8]
call fcn.00404d30
mov eax, dword [ebp - 0x21c]
test al, 0x40
je 0x40b0eb
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.00405d80
jmp case.0x40a96a.35
cmp ecx, 0x200
jne 0x40a018
cmp byte [esi + 0xbc], 0
je 0x409fe4
movsx eax, di
mov dword [ebp - 0x2a4], eax
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x2a0]
jne 0x409f1f
test byte [ebp - 0x29c], 1
je 0x409f1f
mov ecx, dword [ebp - 0x2a4]
sub ecx, dword [esi + 0xc0]
je 0x409f0e
mov edx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
lea eax, [edx + ecx]
cmp eax, edi
jge 0x409ec9
mov ecx, edi
sub ecx, edx
add dword [esi + 0xc0], ecx
lea edi, [edx + ecx]
push edi
mov ecx, esi
call fcn.00408c30
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.00408dc0
mov edi, dword [ebp - 0x2b4]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
jmp 0x40b05d
mov eax, dword [ebp - 0x2a4]
sub eax, dword [esi + 0x90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jg 0x409f46
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
jmp 0x40b05d
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 0x409fda
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.00406cf0
mov eax, dword [ebp - 0x2a8]
test eax, eax
je 0x409fd4
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 0x409fda
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 0x40abe0
je 0x40a8ee
lea eax, [ecx - 2]
cmp eax, 0x85
ja case.default.0x40b18c
movzx eax, byte [eax + 0x40b248]
jmp dword [eax*4 + 0x40b218]
cmp ecx, 0x202
jne 0x409fe4
cmp byte [esi + 0xbc], 0
je 0x409fe4
call dword [sym.imp.USER32.dll_GetCapture]
mov edx, dword [ebp - 0x2a0]
cmp eax, edx
jne 0x40a04d
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0xfffffffffffffff4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClassLongW]
push eax
jmp 0x409fdb
mov ecx, dword [ebp + 0xc]
jmp 0x409fea
mov eax, 1
jmp 0x40a64d
mov eax, dword [ebp - 0x29c]
push edi
test eax, eax
je 0x40a087
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.00408940
mov eax, edi
jmp 0x40a64d
push 0
push ecx
push edx
mov byte [esi + 0x9d], 1
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x40a64d
cmp dword [ebp - 0x29c], edx
jne case.default.0x40b18c
mov eax, 1
jmp 0x40a64d
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.0x40af94
mov ecx, esi
call fcn.00408940
xor eax, eax
jmp 0x40a64d
mov eax, dword [esi + 0x7c]
test eax, eax
je case.default.0x40b18c
push eax
mov ecx, esi
call fcn.00408990
jmp case.default.0x40b18c
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 0x40a24f
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.00404db0
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 0x40a64d
push edi
push dword [ebp - 0x29c]
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
or eax, 1
jmp 0x40a64d
mov ecx, esi
call fcn.00408dc0
mov ecx, esi
call fcn.00408e90
mov ecx, esi
call fcn.00408b10
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.0x40b18c
mov eax, dword [edi]
cmp eax, dword [esi + 0x2c]
jne 0x40a582
mov eax, dword [edi + 8]
cmp eax, 0xfffffdee
je 0x40a3b7
cmp eax, 0xfffffdf7
jne 0x40a582
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.004060b0
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.00404d30
mov eax, 1
jmp 0x40a64d
cmp dword [esi + 0xac], 0
je 0x40a57b
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.00404d30
test eax, eax
jne case.default.0x40af94
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.00407a70
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.004060b0
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 0x40a4db
cmp dword [ebp - 0x230], 0
jne case.default.0x40af94
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, 0x490b00
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 0x40a582
mov dword [edi + 0xc], 0x490b00
mov ecx, dword [edi]
mov edx, dword [esi + 0xc]
cmp ecx, edx
je 0x40a590
cmp ecx, dword [esi + 0x14]
jne case.default.0x40b18c
mov eax, dword [edi + 8]
cmp eax, 0xfffffec0
ja 0x40a85a
je 0x40a6c4
cmp eax, 0xfffffebb
je 0x40a66a
cmp eax, 0xfffffebe
je 0x40a5c6
cmp eax, 0xfffffebf
jne case.default.0x40b18c
mov ecx, esi
call fcn.00408dc0
jmp case.default.0x40b18c
cmp ecx, edx
jne 0x40a5ce
xor eax, eax
jmp 0x40a5d2
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.00404d30
cmp dword [ebp + 0xc], 0x31a
jne 0x40a62d
mov eax, dword [esi + 4]
test eax, eax
je 0x40a5ff
push eax
call dword [0x4bd890]
mov dword [esi + 4], 0
mov eax, dword [0x4bd884]
test eax, eax
je 0x40a62d
call eax
test eax, eax
je 0x40a62d
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.00470e77
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 0x40a68e
cmp byte [esi + 0x9c], 0
je 0x40a68e
mov edi, dword [esi + 0x98]
jmp 0x40a69e
push eax
mov ecx, esi
call fcn.00405f20
mov edi, eax
mov eax, dword [ebp - 0x298]
push edi
push eax
mov ecx, esi
call fcn.00409200
cmp dword [ebp - 0x298], 0
jne 0x40a6b8
push edi
mov ecx, esi
call fcn.00408c30
mov ecx, esi
call fcn.00408dc0
jmp case.default.0x40b18c
mov eax, dword [edi + 0x14]
test byte [eax], 1
je case.default.0x40b18c
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x40a6e6
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x94]
jl case.0x40af94.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.00406330
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.0x40af94
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 0x40a772
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 0x40a792
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 0x40a7bf
cmp byte [esi + 0x9c], 0
jne 0x40a805
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 0x40a843
mov eax, dword [ebp - 0x270]
mov ecx, esi
add eax, dword [ebp - 0x298]
push eax
call fcn.00408c30
mov ecx, esi
call fcn.00408dc0
mov ecx, esi
call fcn.00408e90
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 0x40a64d
mov ecx, esi
call fcn.00408dc0
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
jmp 0x40a64d
cmp eax, 0xfffffec9
je 0x40a879
cmp eax, 0xfffffffb
jne case.default.0x40b18c
push 0
push 0
push 0
push 0
push eax
push ecx
jmp 0x40a5e1
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
jmp 0x40a64d
mov ecx, esi
call fcn.004044f0
jmp case.default.0x40b18c
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a8ad
cmp byte [esi + 0x3c], 0
jne 0x40a8ad
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.00403f40
push esi
call fcn.004705af
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 0x40a64d
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.0x40a96a.35
movzx eax, byte [eax + 0x40b2e4]
jmp dword [eax*4 + 0x40b2d0]
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je case.0x40a96a.35
push 0
push 0
push 0x1200
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
test eax, eax
jle 0x40a9e4
xor edi, edi
mov edi, edi
test edi, edi
jne 0x40a9b5
cmp byte [esi + 0x9c], 0
je 0x40a9b5
mov eax, dword [esi + 0x98]
jmp 0x40a9bd
push edi
mov ecx, esi
call fcn.00405f20
push eax
push edi
mov ecx, esi
call fcn.00409200
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 0x40a9a0
mov edi, dword [ebp - 0x2b4]
mov ecx, esi
call fcn.00408dc0
jmp case.0x40a96a.35
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je case.0x40a96a.35
cmp dword [ebp - 0x29c], 0x28
jne 0x40aa0b
call fcn.00408580
jmp 0x40aa10
call fcn.00408900
mov dword [ebp - 0x298], eax
test eax, eax
je case.0x40a96a.35
push eax
mov ecx, esi
call fcn.00405e80
push dword [ebp - 0x298]
mov ecx, esi
mov edi, eax
call fcn.00409180
push edi
mov ecx, esi
call fcn.00405cb0
jmp 0x40a62d
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x2a8], eax
test eax, eax
je case.0x40a96a.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 0x40aafa
mov edi, dword [ebp - 0x2a8]
jmp 0x40aab0
cmp dword [ebp - 0x29c], 0x22
mov ecx, edi
jne 0x40aace
call fcn.00408580
test eax, eax
je 0x40aaf4
mov edi, eax
mov dword [ebp - 0x2a8], edi
jmp 0x40aadf
call fcn.00408900
test eax, eax
je 0x40aaf4
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 0x40aab0
mov edi, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2a8]
test eax, eax
je case.0x40a96a.35
push eax
mov ecx, esi
call fcn.00405e80
push dword [ebp - 0x2a8]
mov ecx, esi
mov edi, eax
call fcn.00409180
push edi
mov ecx, esi
call fcn.00405cb0
jmp 0x40a62d
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je case.0x40a96a.35
cmp dword [ebp - 0x29c], 0x27
mov edx, dword [ecx + 0x20]
mov eax, edx
jne 0x40ab82
shr eax, 6
test al, 1
je case.0x40a96a.35
shr edx, 4
test dl, 1
jne 0x40ab67
push 1
push ecx
mov ecx, esi
call fcn.00405d80
jmp case.0x40a96a.35
push 0
push 0x28
push 0x100
push dword [ebp - 0x2a0]
mov ecx, esi
call fcn.00409c90
jmp 0x40a64d
shr eax, 4
test al, 1
je 0x40aba0
shr edx, 6
test dl, 1
je 0x40aba0
push 0
push ecx
mov ecx, esi
call fcn.00405d80
jmp case.0x40a96a.35
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2b8], edx
test edx, edx
je case.0x40a96a.35
lea eax, [esi + 0x40]
cmp edx, eax
je case.0x40a96a.35
push ecx
mov ecx, esi
call fcn.00405e80
push dword [ebp - 0x2b8]
mov ecx, esi
mov edi, eax
call fcn.00409180
push edi
mov ecx, esi
call fcn.00405cb0
jmp 0x40a62d
cmp ecx, 0x20a
ja 0x40b17d
je 0x40b108
cmp ecx, 0x115
ja 0x40b051
je 0x40af47
sub ecx, 0x102
je 0x40ad7a
sub ecx, 0x11
je 0x40ad33
dec ecx
jne case.default.0x40b18c
test edi, edi
je case.0x40a96a.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.0x40af94
jmp dword [ecx*4 + 0x40b330]
shr eax, 0x10
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.004071e0
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x238]
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.004071e0
jmp case.0x40a96a.35
xor eax, eax
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.004071e0
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
inc eax
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.004071e0
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
dec eax
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.004071e0
jmp case.0x40a96a.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.004071e0
jmp case.0x40a96a.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.004071e0
jmp case.0x40a96a.35
cmp dword [ebp - 0x29c], 0x64
jne case.0x40a96a.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.00409a80
jmp case.0x40a96a.35
cmp dword [esi + 0x5c], 0
je case.0x40a96a.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 0x40adb0
push 0x490afd
lea ecx, [esi + 0xd0]
call fcn.00404080
cmp dword [esi + 0x7c], 0
je 0x40ae03
push 0x490afd
lea ecx, [ebp - 0x2c0]
call fcn.00403e90
push eax
lea ecx, [esi + 0xd0]
call fcn.00404140
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 0x2a9], al
call fcn.004021d0
cmp byte [ebp - 0x2a9], 0
je 0x40adf6
mov ecx, dword [esi + 0x7c]
call fcn.00408580
jmp 0x40adf9
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x2a8], eax
test eax, eax
jne 0x40ae0c
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.00402130
lea eax, [ebp - 0x2b0]
mov dword [ebp - 4], 0
lea ecx, [esi + 0xd0]
push eax
call fcn.004041c0
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0xffffffff
call fcn.004021d0
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], edx
jmp 0x40ae80
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 0x40aec7
mov eax, dword [eax]
mov dword [ebp - 0x2b0], eax
jmp 0x40aed1
mov dword [ebp - 0x2b0], 0
call fcn.00403be0
push eax
push dword [ebp - 0x2b0]
push dword [ebp - 0x2b8]
call fcn.00471574
add esp, 0xc
test eax, eax
je 0x40af20
mov ecx, dword [ebp - 0x2a4]
call fcn.00408580
mov edx, eax
mov dword [ebp - 0x2a4], eax
test edx, edx
jne 0x40af0f
mov edx, dword [esi + 0x54]
mov dword [ebp - 0x2a4], edx
cmp edx, dword [ebp - 0x2a8]
jne 0x40ae80
jmp case.0x40a96a.35
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00409180
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00405e80
push eax
mov ecx, esi
call fcn.00405cb0
jmp case.0x40a96a.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.0x40af94
jmp dword [ecx*4 + 0x40b354]
shr eax, 0x10
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409c10
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x238]
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409c10
jmp case.0x40a96a.35
xor eax, eax
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409c10
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
inc eax
push eax
mov dword [ebp - 0x230], eax
call fcn.00409c10
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
dec eax
push eax
mov dword [ebp - 0x230], eax
call fcn.00409c10
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
add eax, dword [ebp - 0x234]
push eax
mov dword [ebp - 0x230], eax
call fcn.00409c10
jmp case.0x40a96a.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
sub eax, dword [ebp - 0x234]
push eax
mov dword [ebp - 0x230], eax
call fcn.00409c10
jmp case.0x40a96a.35
cmp ecx, 0x201
je 0x409dd4
lea eax, [ecx - 0x203]
cmp eax, 1
ja case.default.0x40b18c
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.00406cf0
test al, 0xe0
je case.default.0x40b18c
mov edi, dword [ebp - 0x298]
mov ecx, esi
push edi
call fcn.00409180
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 0x40a5de
test eax, 0x1e0
je case.0x40a96a.35
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00409180
jmp case.0x40a96a.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.0x40a96a.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.00409b00
jmp case.0x40a96a.35
add ecx, 0xffffe000
cmp ecx, 5
ja case.default.0x40b18c
jmp dword [ecx*4 + 0x40b378]
test edi, edi
mov ecx, esi
setne al
movzx eax, al
push eax
push dword [ebp - 0x29c]
call fcn.00409250
xor eax, eax
jmp 0x40a64d
test edi, edi
mov ecx, esi
setne al
movzx eax, al
push eax
push dword [ebp - 0x29c]
call fcn.00405d80
movzx eax, al
jmp 0x40a64d
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 0x1c]
jmp 0x40a64d
push dword [ebp - 0x29c]
mov ecx, esi
call fcn.00408990
xor eax, eax
jmp 0x40a64d
push dword [edi + 8]
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00408510
jmp 0x40a64d
push dword [ebp - 0x29c]
mov ecx, esi
call fcn.00405e80
jmp 0x40a64d