Function at 0x4ba650
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebx, dword [esp + 0x44]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4ba945
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x4ba945
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4ba945
mov ecx, dword [esi + 0x108]
test ecx, ecx
jne 0x4ba945
mov ebp, dword [esp + 0x44]
cmp ebp, 0x101
ja 0x4ba857
je 0x4ba840
cmp ebp, 0xf
je 0x4ba82c
cmp ebp, 0x14
je 0x4ba7e0
cmp ebp, 0x100
jne 0x4ba949
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4ba7b9
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov eax, dword [ecx]
push ebx
push edi
push ebp
push edx
call dword [eax + 0x48]
test eax, eax
je 0x4ba6ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
cmp edi, 9
jne 0x4ba757
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
xor ecx, ecx
push 0x11
test ax, ax
setl cl
mov ebp, ecx
call edi
xor edx, edx
push 0x10
test ax, ax
setl dl
mov dword [esp + 0x4c], edx
call edi
xor ecx, ecx
mov dword [0x75d1e0], 1
test ax, ax
setl cl
mov edx, dword [esi]
mov eax, ecx
push eax
mov eax, dword [esp + 0x4c]
push eax
push ebp
push ebx
push 9
mov ecx, esi
call dword [edx + 0x58]
pop edi
pop esi
pop ebp
mov dword [0x75d1e0], 0
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
cmp edi, 0xd
jne 0x4ba77a
mov ecx, dword [esi + 0x40]
push 0
push 0
push 0
mov edx, dword [ecx]
push esi
call dword [edx + 0xc4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
cmp edi, 0x1b
jne 0x4ba949
mov ecx, dword [esi + 0x40]
push 0
push 0
push 1
mov eax, dword [ecx]
push esi
call dword [eax + 0xc4]
test eax, eax
jne 0x4ba7ad
mov ecx, dword [esi + 0xf8]
push eax
push eax
push 0xc7
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
cmp dword [esp + 0x48], 0x1b
jne 0x4ba949
push 0
push 0
push 0xc7
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x4ba949
mov edi, dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x10c]
lea edx, [esp + 0x2c]
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x10
mov eax, dword [esp + 0x40]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4ba949
cmp dword [esp + 0x48], 9
jne 0x4ba949
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
mov eax, ebp
sub eax, 0x102
je 0x4ba92b
sub eax, 2
je 0x4ba8e2
sub eax, 0xfc
jne 0x4ba949
mov ecx, dword [0x6833d0]
mov eax, dword [ecx + 0x200]
test eax, eax
jne 0x4ba893
mov dword [0x683334], 1
call fcn.00420a50
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4ba949
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004a8340
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x10]
mov edx, dword [ecx]
add eax, edi
mov edi, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call dword [edx + 0x74]
jmp 0x4ba949
mov eax, dword [esi + 0x164]
test eax, eax
je 0x4ba8f6
mov eax, dword [esi + 0x168]
test eax, eax
jne 0x4ba91f
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [edx + 4]
push ecx
push 0x104
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, esi
call fcn.004baab0
test eax, eax
jne 0x4ba949
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebp, dword [esp + 0x44]
mov eax, dword [esi + 0xf8]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
je 0x4ba988
cmp ebp, 0xb0
je 0x4ba988
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
push ecx
push 0xb0
push eax
mov edi, 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x114]
push ebx
push edx
push ebp
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcA]
test edi, edi
mov ebp, eax
je 0x4ba9f9
mov ecx, dword [esi + 0xf8]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push 0xb0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x4ba9db
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x4ba9f9
mov ecx, dword [esi + 0xf8]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0xf8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x44]
cmp eax, 0x302
jne 0x4baa3b
mov ecx, esi
call fcn.004b9f20
mov eax, dword [0x6833d0]
mov ecx, dword [eax + 0x200]
test ecx, ecx
jne 0x4baaa2
mov eax, dword [0x683334]
test eax, eax
jne 0x4baaa2
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
cmp eax, 0x201
je 0x4baa57
cmp eax, 0x202
je 0x4baa57
cmp eax, 0x204
je 0x4baa57
cmp eax, 0x205
jne 0x4baaa2
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, ebx
and ecx, 0xffff
add edi, ecx
mov ecx, 0x68d8e0
shr ebx, 0x10
add ebx, eax
call fcn.00548ca0
mov ecx, dword [esp + 0x48]
and ebx, 0xffff
shl ebx, 0x10
and edi, 0xffff
mov edx, dword [eax]
or ebx, edi
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx + 4]
push ecx
mov ecx, eax
call dword [edx + 0x48]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10