Function at 0x552860
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.00582ac0
add esp, 4
test eax, eax
je 0x552af1
mov eax, dword [esp + 0x2c]
sub eax, 0
je 0x552a61
dec eax
jne 0x552af1
mov ebx, dword [esp + 0x24]
cmp ebx, 0xd
je 0x552a4c
cmp ebx, 0xa
je 0x552a4c
movzx eax, bl
push eax
call fcn.005cd392
add esp, 4
test eax, eax
je 0x5528c3
push ebx
call fcn.005cd370
add esp, 4
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x88c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x18b
push ecx
call ebx
cmp eax, 0xffffffff
je 0x552a42
test eax, eax
je 0x552a42
mov edx, dword [esi + 0x88c]
push 0
push 0
push 0x19f
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x552a42
mov ebp, edi
inc edi
cmp edi, ebp
mov dword [esp + 0x14], ebp
je 0x552a42
jmp 0x552920
cmp dword [esi + 0x71c], 4
jne 0x552974
mov ecx, dword [esi + 0x88c]
lea eax, [esp + 0x10]
push eax
push edi
push 0x189
push ecx
call ebx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x55298d
cmp eax, 0xffffffff
je 0x55298d
cmp byte [ecx], 0x20
jne 0x55295a
nop
inc ecx
mov dword [esp + 0x10], ecx
cmp byte [ecx], 0x20
je 0x552950
mov edx, dword [esi + 0xbf4]
push edx
push ecx
call fcn.00522500
add esp, 8
test al, al
je case.0x5529b0.2
inc dword [esp + 0x10]
jmp case.0x5529b0.2
mov eax, dword [esi + 0x88c]
push 0x63dcd8
push edi
push 0x189
push eax
call ebx
cmp eax, 0xffffffff
jne 0x552994
xor edi, edi
jmp 0x552a1b
mov eax, dword [esi + 0x71c]
dec eax
cmp eax, 8
mov ecx, 0x63dcd8
mov dword [esp + 0x10], ecx
ja case.0x5529b0.2
movzx edx, byte [eax + 0x552b0c]
jmp dword [edx*4 + 0x552b00]
mov eax, dword [esi + 0xbf4]
push eax
push 0x63dcd8
call fcn.00522540
add esp, 8
test al, al
je case.0x5529b0.2
inc dword [esp + 0x10]
jmp case.0x5529b0.2
cmp byte [0x63dcd8], 0x20
jne case.0x5529b0.2
mov edi, edi
inc ecx
mov dword [esp + 0x10], ecx
cmp byte [ecx], 0x20
je 0x5529e0
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
test al, al
je 0x552a1a
movzx ebp, al
push ebp
call fcn.005cd392
add esp, 4
test eax, eax
je 0x552a10
push ebp
call fcn.005cd370
add esp, 4
movzx ebp, al
cmp ebp, dword [esp + 0x24]
je 0x552a2d
mov ebp, dword [esp + 0x14]
inc edi
cmp edi, ebp
jne 0x552920
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esi]
push 1
push 1
push edi
push 0x8098
push edx
call fcn.00422dd0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi]
push eax
call fcn.00437b70
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, 1
jne 0x552a93
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x552af1
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
push 1
push ecx
call fcn.00488690
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 9
jne 0x552aae
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
js 0x552af1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 0xd
je 0x552ab8
cmp eax, 0xa
jne 0x552af1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esi]
xor edx, edx
and eax, 0x8000
cmp eax, 0x8000
mov eax, dword [esp + 0x30]
setne dl
dec edx
and edx, 2
or edx, 1
push edx
push 5
push eax
push ecx
call fcn.004897b0
add esp, 0x10
test eax, eax
jne 0x552a42
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret