Function at 0x409b10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4838db
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4b31cc]
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 0x409b7f
push edi
push ecx
push edx
push dword [ebp - 0x2a0]
mov ecx, esi
call fcn.004079a0
jmp 0x40a4cd
lea eax, [edx - 0x200]
cmp eax, 0xd
ja 0x409bfa
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.00409900
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 0x409ce7
cmp byte [esi + 0xbc], 0
je 0x409e64
movsx eax, di
mov dword [ebp - 0x298], eax
sub eax, dword [esi + 0x90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jg 0x409ebf
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.00406b70
mov dword [ebp - 0x21c], eax
test al, 0xe0
je 0x409cbe
push 0
push 0
push dword [ebp - 0x2a4]
mov ecx, esi
push 0
push 0xfffffffffffffffe
push dword [esi + 8]
call fcn.00404bc0
mov eax, dword [ebp - 0x21c]
test al, 0x40
je 0x40af6b
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.00405c00
jmp case.0x40a7ea.35
cmp ecx, 0x200
jne 0x409e98
cmp byte [esi + 0xbc], 0
je 0x409e64
movsx eax, di
mov dword [ebp - 0x2a4], eax
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x2a0]
jne 0x409d9f
test byte [ebp - 0x29c], 1
je 0x409d9f
mov ecx, dword [ebp - 0x2a4]
sub ecx, dword [esi + 0xc0]
je 0x409d8e
mov edx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
lea eax, [edx + ecx]
cmp eax, edi
jge 0x409d49
mov ecx, edi
sub ecx, edx
add dword [esi + 0xc0], ecx
lea edi, [edx + ecx]
push edi
mov ecx, esi
call fcn.00408ab0
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.00408c40
mov edi, dword [ebp - 0x2b4]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
jmp 0x40aedd
mov eax, dword [ebp - 0x2a4]
sub eax, dword [esi + 0x90]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jg 0x409dc6
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
jmp 0x40aedd
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 0x409e5a
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.00406b70
mov eax, dword [ebp - 0x2a8]
test eax, eax
je 0x409e54
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 0x409e5a
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 0x40aa60
je 0x40a76e
lea eax, [ecx - 2]
cmp eax, 0x85
ja case.default.0x40b00c
movzx eax, byte [eax + 0x40b0c8]
jmp dword [eax*4 + 0x40b098]
cmp ecx, 0x202
jne 0x409e64
cmp byte [esi + 0xbc], 0
je 0x409e64
call dword [sym.imp.USER32.dll_GetCapture]
mov edx, dword [ebp - 0x2a0]
cmp eax, edx
jne 0x409ecd
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0xfffffffffffffff4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClassLongW]
push eax
jmp 0x409e5b
mov ecx, dword [ebp + 0xc]
jmp 0x409e6a
mov eax, 1
jmp 0x40a4cd
mov eax, dword [ebp - 0x29c]
push edi
test eax, eax
je 0x409f07
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.004087c0
mov eax, edi
jmp 0x40a4cd
push 0
push ecx
push edx
mov byte [esi + 0x9d], 1
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x40a4cd
cmp dword [ebp - 0x29c], edx
jne case.default.0x40b00c
mov eax, 1
jmp 0x40a4cd
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.0x40ae14
mov ecx, esi
call fcn.004087c0
xor eax, eax
jmp 0x40a4cd
mov eax, dword [esi + 0x7c]
test eax, eax
je case.default.0x40b00c
push eax
mov ecx, esi
call fcn.00408810
jmp case.default.0x40b00c
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 0x40a0cf
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.00404c50
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 0x40a4cd
push edi
push dword [ebp - 0x29c]
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
or eax, 1
jmp 0x40a4cd
mov ecx, esi
call fcn.00408c40
mov ecx, esi
call fcn.00408d10
mov ecx, esi
call fcn.00408990
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.0x40b00c
mov eax, dword [edi]
cmp eax, dword [esi + 0x2c]
jne 0x40a402
mov eax, dword [edi + 8]
cmp eax, 0xfffffdee
je 0x40a237
cmp eax, 0xfffffdf7
jne 0x40a402
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.00405f40
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.00404bc0
mov eax, 1
jmp 0x40a4cd
cmp dword [esi + 0xac], 0
je 0x40a3fb
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.00404bc0
test eax, eax
jne case.default.0x40ae14
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.004078f0
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.00405f40
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 0x40a35b
cmp dword [ebp - 0x230], 0
jne case.default.0x40ae14
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, 0x48cc00
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 0x40a402
mov dword [edi + 0xc], 0x48cc00
mov ecx, dword [edi]
mov edx, dword [esi + 0xc]
cmp ecx, edx
je 0x40a410
cmp ecx, dword [esi + 0x14]
jne case.default.0x40b00c
mov eax, dword [edi + 8]
cmp eax, 0xfffffec0
ja 0x40a6da
je 0x40a544
cmp eax, 0xfffffebb
je 0x40a4ea
cmp eax, 0xfffffebe
je 0x40a446
cmp eax, 0xfffffebf
jne case.default.0x40b00c
mov ecx, esi
call fcn.00408c40
jmp case.default.0x40b00c
cmp ecx, edx
jne 0x40a44e
xor eax, eax
jmp 0x40a452
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.00404bc0
cmp dword [ebp + 0xc], 0x31a
jne 0x40a4ad
mov eax, dword [esi + 4]
test eax, eax
je 0x40a47f
push eax
call dword [0x4b4850]
mov dword [esi + 4], 0
mov eax, dword [0x4b4844]
test eax, eax
je 0x40a4ad
call eax
test eax, eax
je 0x40a4ad
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
push eax
push dword [ebp - 0x2a0]
call dword [0x4b4848]
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.0046dfbe
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 0x40a50e
cmp byte [esi + 0x9c], 0
je 0x40a50e
mov edi, dword [esi + 0x98]
jmp 0x40a51e
push eax
mov ecx, esi
call fcn.00405da0
mov edi, eax
mov eax, dword [ebp - 0x298]
push edi
push eax
mov ecx, esi
call fcn.00409080
cmp dword [ebp - 0x298], 0
jne 0x40a538
push edi
mov ecx, esi
call fcn.00408ab0
mov ecx, esi
call fcn.00408c40
jmp case.default.0x40b00c
mov eax, dword [edi + 0x14]
test byte [eax], 1
je case.default.0x40b00c
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x40a566
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x94]
jl case.0x40ae14.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.004061b0
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.0x40ae14
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 0x40a5f2
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 0x40a612
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 0x40a63f
cmp byte [esi + 0x9c], 0
jne 0x40a685
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 0x40a6c3
mov eax, dword [ebp - 0x270]
mov ecx, esi
add eax, dword [ebp - 0x298]
push eax
call fcn.00408ab0
mov ecx, esi
call fcn.00408c40
mov ecx, esi
call fcn.00408d10
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 0x40a4cd
mov ecx, esi
call fcn.00408c40
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
jmp 0x40a4cd
cmp eax, 0xfffffec9
je 0x40a6f9
cmp eax, 0xfffffffb
jne case.default.0x40b00c
push 0
push 0
push 0
push 0
push eax
push ecx
jmp 0x40a461
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
jmp 0x40a4cd
mov ecx, esi
call fcn.004043a0
jmp case.default.0x40b00c
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a72d
cmp byte [esi + 0x3c], 0
jne 0x40a72d
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
movzx eax, word [0x4b4860]
push 0
push eax
push dword [ebp - 0x2a0]
call dword [sym.imp.USER32.dll_SetPropW]
mov ecx, esi
call fcn.00403df0
push esi
call fcn.0046d747
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 0x40a4cd
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.0x40a7ea.35
movzx eax, byte [eax + 0x40b164]
jmp dword [eax*4 + 0x40b150]
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je case.0x40a7ea.35
push 0
push 0
push 0x1200
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
test eax, eax
jle 0x40a864
xor edi, edi
mov edi, edi
test edi, edi
jne 0x40a835
cmp byte [esi + 0x9c], 0
je 0x40a835
mov eax, dword [esi + 0x98]
jmp 0x40a83d
push edi
mov ecx, esi
call fcn.00405da0
push eax
push edi
mov ecx, esi
call fcn.00409080
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 0x40a820
mov edi, dword [ebp - 0x2b4]
mov ecx, esi
call fcn.00408c40
jmp case.0x40a7ea.35
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je case.0x40a7ea.35
cmp dword [ebp - 0x29c], 0x28
jne 0x40a88b
call fcn.00408400
jmp 0x40a890
call fcn.00408780
mov dword [ebp - 0x298], eax
test eax, eax
je case.0x40a7ea.35
push eax
mov ecx, esi
call fcn.00405d00
push dword [ebp - 0x298]
mov ecx, esi
mov edi, eax
call fcn.00409000
push edi
mov ecx, esi
call fcn.00405b30
jmp 0x40a4ad
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x2a8], eax
test eax, eax
je case.0x40a7ea.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 0x40a97a
mov edi, dword [ebp - 0x2a8]
jmp 0x40a930
cmp dword [ebp - 0x29c], 0x22
mov ecx, edi
jne 0x40a94e
call fcn.00408400
test eax, eax
je 0x40a974
mov edi, eax
mov dword [ebp - 0x2a8], edi
jmp 0x40a95f
call fcn.00408780
test eax, eax
je 0x40a974
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 0x40a930
mov edi, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2a8]
test eax, eax
je case.0x40a7ea.35
push eax
mov ecx, esi
call fcn.00405d00
push dword [ebp - 0x2a8]
mov ecx, esi
mov edi, eax
call fcn.00409000
push edi
mov ecx, esi
call fcn.00405b30
jmp 0x40a4ad
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je case.0x40a7ea.35
cmp dword [ebp - 0x29c], 0x27
mov edx, dword [ecx + 0x20]
mov eax, edx
jne 0x40aa02
shr eax, 6
test al, 1
je case.0x40a7ea.35
shr edx, 4
test dl, 1
jne 0x40a9e7
push 1
push ecx
mov ecx, esi
call fcn.00405c00
jmp case.0x40a7ea.35
push 0
push 0x28
push 0x100
push dword [ebp - 0x2a0]
mov ecx, esi
call fcn.00409b10
jmp 0x40a4cd
shr eax, 4
test al, 1
je 0x40aa20
shr edx, 6
test dl, 1
je 0x40aa20
push 0
push ecx
mov ecx, esi
call fcn.00405c00
jmp case.0x40a7ea.35
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2b8], edx
test edx, edx
je case.0x40a7ea.35
lea eax, [esi + 0x40]
cmp edx, eax
je case.0x40a7ea.35
push ecx
mov ecx, esi
call fcn.00405d00
push dword [ebp - 0x2b8]
mov ecx, esi
mov edi, eax
call fcn.00409000
push edi
mov ecx, esi
call fcn.00405b30
jmp 0x40a4ad
cmp ecx, 0x20a
ja 0x40affd
je 0x40af88
cmp ecx, 0x115
ja 0x40aed1
je 0x40adc7
sub ecx, 0x102
je 0x40abfa
sub ecx, 0x11
je 0x40abb3
dec ecx
jne case.default.0x40b00c
test edi, edi
je case.0x40a7ea.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.0x40ae14
jmp dword [ecx*4 + 0x40b1b0]
shr eax, 0x10
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407060
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x238]
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407060
jmp case.0x40a7ea.35
xor eax, eax
mov ecx, esi
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407060
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
inc eax
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407060
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
dec eax
push eax
push edi
mov dword [ebp - 0x230], eax
call fcn.00407060
jmp case.0x40a7ea.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.00407060
jmp case.0x40a7ea.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.00407060
jmp case.0x40a7ea.35
cmp dword [ebp - 0x29c], 0x64
jne case.0x40a7ea.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.00409900
jmp case.0x40a7ea.35
cmp dword [esi + 0x5c], 0
je case.0x40a7ea.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 0x40ac30
push 0x48caed
lea ecx, [esi + 0xd0]
call fcn.00403f30
cmp dword [esi + 0x7c], 0
je 0x40ac83
push 0x48caed
lea ecx, [ebp - 0x2c0]
call fcn.00403d40
push eax
lea ecx, [esi + 0xd0]
call fcn.00403ff0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 0x2a9], al
call fcn.004039e0
cmp byte [ebp - 0x2a9], 0
je 0x40ac76
mov ecx, dword [esi + 0x7c]
call fcn.00408400
jmp 0x40ac79
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x2a8], eax
test eax, eax
jne 0x40ac8c
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.00402030
lea eax, [ebp - 0x2b0]
mov dword [ebp - 4], 0
lea ecx, [esi + 0xd0]
push eax
call fcn.00404070
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0xffffffff
call fcn.004039e0
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], edx
jmp 0x40ad00
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 0x40ad47
mov eax, dword [eax]
mov dword [ebp - 0x2b0], eax
jmp 0x40ad51
mov dword [ebp - 0x2b0], 0
call fcn.00403a40
push eax
push dword [ebp - 0x2b0]
push dword [ebp - 0x2b8]
call fcn.0046e6bb
add esp, 0xc
test eax, eax
je 0x40ada0
mov ecx, dword [ebp - 0x2a4]
call fcn.00408400
mov edx, eax
mov dword [ebp - 0x2a4], eax
test edx, edx
jne 0x40ad8f
mov edx, dword [esi + 0x54]
mov dword [ebp - 0x2a4], edx
cmp edx, dword [ebp - 0x2a8]
jne 0x40ad00
jmp case.0x40a7ea.35
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00409000
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00405d00
push eax
mov ecx, esi
call fcn.00405b30
jmp case.0x40a7ea.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.0x40ae14
jmp dword [ecx*4 + 0x40b1d4]
shr eax, 0x10
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a90
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x238]
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a90
jmp case.0x40a7ea.35
xor eax, eax
mov ecx, esi
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a90
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
inc eax
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a90
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
dec eax
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a90
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
add eax, dword [ebp - 0x234]
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a90
jmp case.0x40a7ea.35
mov eax, dword [ebp - 0x230]
mov ecx, esi
sub eax, dword [ebp - 0x234]
push eax
mov dword [ebp - 0x230], eax
call fcn.00409a90
jmp case.0x40a7ea.35
cmp ecx, 0x201
je 0x409c54
lea eax, [ecx - 0x203]
cmp eax, 1
ja case.default.0x40b00c
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.00406b70
test al, 0xe0
je case.default.0x40b00c
mov edi, dword [ebp - 0x298]
mov ecx, esi
push edi
call fcn.00409000
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 0x40a45e
test eax, 0x1e0
je case.0x40a7ea.35
push dword [ebp - 0x2a4]
mov ecx, esi
call fcn.00409000
jmp case.0x40a7ea.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.0x40a7ea.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.00409980
jmp case.0x40a7ea.35
add ecx, 0xffffe000
cmp ecx, 5
ja case.default.0x40b00c
jmp dword [ecx*4 + 0x40b1f8]
test edi, edi
mov ecx, esi
setne al
movzx eax, al
push eax
push dword [ebp - 0x29c]
call fcn.004090d0
xor eax, eax
jmp 0x40a4cd
test edi, edi
mov ecx, esi
setne al
movzx eax, al
push eax
push dword [ebp - 0x29c]
call fcn.00405c00
movzx eax, al
jmp 0x40a4cd
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 0x1c]
jmp 0x40a4cd
push dword [ebp - 0x29c]
mov ecx, esi
call fcn.00408810
xor eax, eax
jmp 0x40a4cd
push dword [edi + 8]
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00408390
jmp 0x40a4cd
push dword [ebp - 0x29c]
mov ecx, esi
call fcn.00405d00
jmp 0x40a4cd