Function at 0x4a9df6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x53b040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2c8]
test eax, eax
js 0x4a9e1f
cmp eax, dword [edi + 0x118]
jge 0x4a9e1f
mov eax, dword [edi + 0x2cc]
test eax, eax
js 0x4a9e1f
cmp eax, dword [edi + 0x120]
jge 0x4a9e1f
mov esi, dword [edi + 0x2c8]
mov ebx, eax
push 0x11
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x4a9db4.46
mov eax, dword [ebp + 8]
add eax, 0xffffffd3
cmp eax, 0x3e
ja case.0x4a9db4.46
movzx eax, byte [eax + 0x4aa6c0]
jmp dword [eax*4 + 0x4aa6a8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x198]
jmp case.0x4a9db4.46
push ecx
mov ecx, edi
call fcn.004b0730
push 1
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4a9db4.46
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18c]
jmp case.0x4a9db4.46
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x190]
jmp case.0x4a9db4.46
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x194]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebp + 8]
test ax, ax
jns 0x4a9e3b
cmp ecx, 0x2d
jne 0x4a9e3b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x194]
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_3825]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004e22fe
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 0x2e
jne 0x4a9e4f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x16c]
jmp 0x4aa458
cmp ecx, 0x28
jne 0x4a9ea8
mov ecx, dword [edi + 0x118]
mov edx, esi
lea esi, [edx + 1]
mov dword [esp + 0xc], esi
cmp esi, ecx
jge 0x4a9ef1
nop dword [eax + eax]
test esi, esi
js 0x4a9e94
cmp esi, ecx
jge 0x4a9e94
cmp esi, dword [edi + 0x130]
jge 0x4aa55b
mov eax, dword [edi + 0x12c]
cmp dword [eax + esi*4], 0
jg 0x4aa458
inc esi
mov dword [esp + 0xc], esi
cmp esi, ecx
jl 0x4a9e70
mov esi, edx
mov dword [esp + 0xc], esi
jmp 0x4aa458
cmp ecx, 0x26
jne 0x4a9efc
mov ecx, dword [edi + 0x11c]
mov edx, esi
lea esi, [edx - 1]
mov dword [esp + 0xc], esi
cmp esi, ecx
jl 0x4a9ef1
test esi, esi
js 0x4a9ee8
cmp esi, dword [edi + 0x118]
jge 0x4a9ee8
cmp esi, dword [edi + 0x130]
jge 0x4aa55b
mov eax, dword [edi + 0x12c]
cmp dword [eax + esi*4], 0
jg 0x4aa458
dec esi
mov dword [esp + 0xc], esi
cmp esi, ecx
jge 0x4a9ec0
mov esi, edx
mov dword [esp + 0xc], esi
jmp 0x4aa458
cmp ecx, 0x27
je 0x4aa37b
cmp ecx, 9
jne 0x4a9ffe
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a9fb6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a9e1f
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov eax, ebx
mov dword [esp + 0x28], eax
lea ebx, [eax - 1]
mov dword [esp + 0x10], ebx
cmp ecx, 9
jne 0x4aa318
mov eax, dword [edi + 0x124]
dec eax
cmp ebx, eax
jne 0x4aa310
mov ecx, dword [edi + 0x11c]
cmp esi, ecx
jle 0x4aa310
dec esi
mov dword [esp + 0xc], esi
cmp esi, ecx
jle 0x4aa2fb
nop dword [eax + eax]
test esi, esi
js 0x4a9fa8
cmp esi, dword [edi + 0x118]
jge 0x4a9fa8
cmp esi, dword [edi + 0x130]
jge 0x4aa55b
mov eax, dword [edi + 0x12c]
cmp dword [eax + esi*4], 0
jg 0x4aa2f3
dec esi
mov dword [esp + 0xc], esi
cmp esi, ecx
jg 0x4a9f80
jmp 0x4aa2fb
cmp byte [edi + 0x4a6], 0
je 0x4aa378
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4870]
test eax, eax
je 0x4a9e27
push 0
push 0
push 0x28
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004e22fe
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 0x25
je 0x4a9f33
cmp ecx, 0x22
jne 0x4aa06b
push ecx
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.004adeb0
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 3
push 0x115
push dword [edi + 0x20]
call eax
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], 1
push eax
mov ecx, edi
call fcn.004adeb0
mov eax, dword [edi + 0x118]
mov ecx, dword [esp + 0x28]
dec eax
sub ecx, dword [esp + 0x1c]
je 0x4aa060
add esi, ecx
mov dword [esp + 0xc], esi
cmp esi, eax
jle 0x4aa458
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x4aa458
cmp ecx, 0x21
jne 0x4aa0ce
push ecx
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.004adeb0
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 2
push 0x115
push dword [edi + 0x20]
call eax
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], 1
push eax
mov ecx, edi
call fcn.004adeb0
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x11c]
sub ecx, dword [esp + 0x1c]
je 0x4aa060
add esi, ecx
mov dword [esp + 0xc], esi
cmp esi, eax
jge 0x4aa458
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x4aa458
cmp ecx, 0x24
jne 0x4aa1c7
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [edi + 0x20]
push 0
push 6
test ax, ax
jns 0x4aa11b
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x115
push ecx
call ebx
push 0
push 6
push 0x114
push dword [edi + 0x20]
call ebx
mov esi, dword [edi + 0x11c]
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], esi
jmp 0x4aa128
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
push 0x114
push ecx
call eax
mov edx, dword [edi + 0x120]
mov ebx, dword [edi + 0x124]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
lea eax, [edx - 1]
cmp ebx, eax
jge 0x4aa184
test ebx, ebx
js 0x4aa17b
cmp ebx, edx
jge 0x4aa17b
mov eax, dword [edi + 0x48c]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
js 0x4aa55b
cmp ecx, dword [edi + 0x144]
jge 0x4aa55b
mov eax, dword [edi + 0x140]
cmp dword [eax + ecx*4], 0
jg 0x4aa184
lea eax, [edx - 1]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, eax
jl 0x4aa147
mov ecx, dword [edi + 0x118]
lea edx, [ecx - 1]
cmp esi, edx
jge 0x4aa458
test esi, esi
js 0x4aa1b9
cmp esi, ecx
jge 0x4aa1b9
cmp esi, dword [edi + 0x130]
jge 0x4aa55b
mov eax, dword [edi + 0x12c]
cmp dword [eax + esi*4], 0
jg 0x4aa458
inc esi
mov dword [esp + 0xc], esi
cmp esi, edx
jl 0x4aa195
jmp 0x4aa458
cmp ecx, 0x23
jne 0x4aa2c9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [edi + 0x20]
push 0
push 7
test ax, ax
jns 0x4aa215
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x115
push ecx
call ebx
push 0
push 7
push 0x114
push dword [edi + 0x20]
call ebx
mov esi, dword [edi + 0x118]
dec esi
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], esi
jmp 0x4aa222
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
push 0x114
push ecx
call eax
mov edx, dword [edi + 0x120]
mov eax, dword [edi + 0x124]
inc eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
lea ebx, [edx - 1]
mov dword [esp + 0x10], ebx
cmp ebx, eax
jle 0x4aa284
test ebx, ebx
js 0x4aa27b
cmp ebx, edx
jge 0x4aa27b
mov eax, dword [edi + 0x48c]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
js 0x4aa55b
cmp ecx, dword [edi + 0x144]
jge 0x4aa55b
mov eax, dword [edi + 0x140]
cmp dword [eax + ecx*4], 0
jg 0x4aa284
mov eax, dword [esp + 0x1c]
dec ebx
mov dword [esp + 0x10], ebx
cmp ebx, eax
jg 0x4aa246
mov ecx, dword [edi + 0x11c]
inc ecx
cmp esi, ecx
jle 0x4aa458
test esi, esi
js 0x4aa2bb
cmp esi, dword [edi + 0x118]
jge 0x4aa2bb
cmp esi, dword [edi + 0x130]
jge 0x4aa55b
mov eax, dword [edi + 0x12c]
cmp dword [eax + esi*4], 0
jg 0x4aa458
dec esi
mov dword [esp + 0xc], esi
cmp esi, ecx
jg 0x4aa293
jmp 0x4aa458
cmp ecx, 0x71
jne 0x4a9e1f
mov eax, dword [edi]
mov ecx, edi
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x2cc]
push dword [edi + 0x2c8]
call dword [eax + 0x1c8]
jmp 0x4aa458
mov dword [esp + 0x1c], 1
mov ebx, dword [edi + 0x120]
dec ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x10], ebx
jmp 0x4aa318
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_3825]
mov edx, dword [edi + 0x124]
cmp ebx, edx
jl 0x4aa364
test ebx, ebx
js 0x4aa35b
cmp ebx, dword [edi + 0x120]
jge 0x4aa35b
mov eax, dword [edi + 0x48c]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
js 0x4aa55b
cmp ecx, dword [edi + 0x144]
jge 0x4aa55b
mov eax, dword [edi + 0x140]
cmp dword [eax + ecx*4], 0
jg 0x4aa458
dec ebx
mov dword [esp + 0x10], ebx
cmp ebx, edx
jge 0x4aa322
cmp dword [esp + 0x1c], 0
jne 0x4aa458
mov ebx, dword [esp + 0x28]
jmp 0x4aa454
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov eax, ebx
mov dword [esp + 0x28], eax
lea ebx, [eax + 1]
mov dword [esp + 0x10], ebx
cmp ecx, 9
jne 0x4aa402
cmp ebx, dword [edi + 0x120]
jne 0x4aa3fa
mov ecx, dword [edi + 0x118]
lea eax, [ecx - 1]
cmp esi, eax
jge 0x4aa3fa
inc esi
mov dword [esp + 0xc], esi
cmp esi, ecx
jge 0x4aa3e6
test esi, esi
js 0x4aa3d3
cmp esi, ecx
jge 0x4aa3d3
cmp esi, dword [edi + 0x130]
jge 0x4aa55b
mov eax, dword [edi + 0x12c]
cmp dword [eax + esi*4], 0
jg 0x4aa3de
inc esi
mov dword [esp + 0xc], esi
cmp esi, ecx
jl 0x4aa3b3
jmp 0x4aa3e6
mov dword [esp + 0x1c], 1
mov ebx, dword [edi + 0x124]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], 1
jmp 0x4aa402
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_3825]
mov edx, dword [edi + 0x120]
cmp ebx, edx
jge 0x4aa44a
nop dword [eax]
test ebx, ebx
js 0x4aa441
cmp ebx, edx
jge 0x4aa441
mov eax, dword [edi + 0x48c]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
js 0x4aa55b
cmp ecx, dword [edi + 0x144]
jge 0x4aa55b
mov eax, dword [edi + 0x140]
cmp dword [eax + ecx*4], 0
jg 0x4aa458
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, edx
jl 0x4aa410
cmp dword [esp + 0x1c], 0
cmove ebx, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
cmp esi, dword [edi + 0x2c8]
jne 0x4aa46c
cmp ebx, dword [edi + 0x2cc]
je 0x4a9e27
cmp dword [edi + 0x29c], 0
jne 0x4aa51f
mov eax, dword [edi + 0x310]
test eax, eax
je 0x4aa497
push eax
call dword [sym.imp.mfc140.dll_Ordinal_266]
add esp, 4
mov dword [edi + 0x310], 0
mov ecx, dword [edi + 0x320]
mov dword [edi + 0x318], 0
mov dword [edi + 0x31c], 0
call dword [sym.imp.mfc140.dll_Ordinal_4841]
mov dword [edi + 0x320], 0
mov eax, dword [edi + 0xc4]
neg eax
push 0x10
sbb eax, eax
add eax, 4
mov dword [edi + 0x29c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4aa4e7
cmp dword [ebp + 8], 9
jne 0x4aa4f3
mov dword [edi + 0x2c0], esi
mov dword [edi + 0x2c4], ebx
push 0xffffffffffffff9c
push ebx
push esi
mov ecx, edi
call fcn.004a9340
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.004ac530
push 0xffffffffffffff9b
push ebx
push esi
mov ecx, edi
call fcn.004a9340
mov dword [edi + 0x29c], 0
push ebx
push esi
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004abad0
push ebx
push esi
mov ecx, edi
call fcn.004b0b70
test eax, eax
jne 0x4aa657
mov eax, dword [ebp + 8]
add eax, 0xfffffff7
cmp eax, 0x1f
ja case.0x4aa554.10
movzx eax, byte [eax + 0x4aa718]
jmp dword [eax*4 + 0x4aa700]
call dword [sym.imp.mfc140.dll_Ordinal_2381]
push 0
push 1
push 0x114
push dword [edi + 0x20]
jmp 0x4aa633
push 0
push 0
push 0x114
push dword [edi + 0x20]
jmp 0x4aa633
push 0
push 1
push 0x115
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x18], 1
jmp case.0x4aa554.10
push 0
push 0
jmp 0x4aa587
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [edi + 0x20]
push 0
test ax, ax
jns 0x4aa60e
cmp dword [esp + 0x28], 0
push 0
je 0x4aa62d
push 0x115
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0x154]
mov dword [esp + 0x44], eax
push 1
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 4
push eax
push 0
mov ecx, edi
mov dword [esp + 0x3c], 0x1c
mov dword [edi + 0x2d0], 0xffffffff
mov dword [esp + 0x24], 1
call dword [sym.imp.mfc140.dll_Ordinal_13854]
jmp case.0x4aa554.10
cmp dword [esp + 0x28], 0
push 1
je 0x4aa62d
push 0x115
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x44], 0
jmp 0x4aa5d9
push 0x114
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x14], 1
push ebx
push esi
mov ecx, edi
call fcn.004b0820
push 1
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push esi
mov ecx, edi
call fcn.004b0820
cmp dword [esp + 0x14], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
je 0x4aa67b
push 0
push 8
push 0x114
push dword [edi + 0x20]
call ebx
cmp dword [esp + 0x18], 0
je 0x4a9e27
push 0
push 8
push 0x115
push dword [edi + 0x20]
call ebx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e22fe
mov esp, ebp
pop ebp
ret 0xc