Function at 0x477e60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x70
push ebx
mov bl, cl
push esi
mov byte [esp + 8], bl
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x477ec8
mov edx, 0x64
lea ecx, [esp + 0x14]
call fcn.0041ef30
push 0x63
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea ecx, [esp + 0x14]
push 0x586384
push ecx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x477ed7
mov eax, dword [0x5aa60c]
test eax, eax
je 0x477ec8
lea edx, [esp + 0x14]
push str.RichEdit20A
push edx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x477ed7
xor ecx, ecx
call fcn.0041d520
pop esi
xor eax, eax
pop ebx
add esp, 0x70
ret
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test ah, 8
jne 0x477ecf
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetParent]
push edi
push esi
call ebp
mov edi, eax
mov ecx, edi
call fcn.00542f00
test eax, eax
je 0x477f07
mov edx, 1
jmp 0x477f8f
cmp edi, dword [0x5afbd0]
je 0x477f8a
cmp edi, dword [0x5a2dc0]
je 0x477f8a
push edi
call ebp
cmp eax, dword [0x5a2dc0]
je 0x477f8a
cmp edi, dword [0x5a99b0]
je 0x477f8a
mov eax, dword [0x5a7a38]
cmp edi, eax
je 0x477f8a
cmp edi, dword [0x5a7b7c]
je 0x477f8a
test eax, eax
je 0x477f4a
push edi
call ebp
cmp eax, dword [0x5a7a38]
je 0x477f8a
mov ebp, dword [0x5a56ec]
test ebp, ebp
je 0x477f7c
mov ebx, dword [sym.imp.USER32.dll_IsChild]
lea ebx, [ebx]
mov eax, dword [ebp + 0xc8]
cmp eax, edi
je 0x477f86
push edi
push eax
call ebx
test eax, eax
jne 0x477f86
mov ebp, dword [ebp + 0x1018]
test ebp, ebp
jne 0x477f60
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x70
ret
mov bl, byte [esp + 0x10]
mov edx, 2
cmp bl, 3
jne 0x477fa4
mov eax, dword [0x5a54f4]
test eax, eax
je 0x477fa4
mov ecx, esi
call fcn.00436720
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, 1
mov ecx, esi
call fcn.00477a90
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp ebp, edi
jne 0x478066
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp bl, 3
jne 0x477ff4
test ah, ah
push 3
jns 0x478016
push 3
lea edx, [esp + 0x24]
push str._c_c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x478029
test ah, ah
jns 0x478012
movzx eax, bl
push eax
push eax
lea ecx, [esp + 0x24]
push str._c_c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x478029
movzx edx, bl
push edx
lea eax, [esp + 0x20]
push 0x583f18
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004779b0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004779b0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x70
ret
cmp bl, 3
jne 0x478106
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 3
lea edx, [esp + 0x20]
push 0x583f18
push edx
call ebx
add esp, 0xc
push ebp
push ebp
mov edx, 1
mov ecx, esi
call fcn.004779b0
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x1c]
push eax
push 0
push 0xc2
push esi
call ebp
push 3
lea ecx, [esp + 0x20]
push 0x583f18
push ecx
call ebx
add esp, 0xc
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004779b0
lea edx, [esp + 0x1c]
push edx
push 0
push 0xc2
push esi
call ebp
lea eax, [esp + 0x1c]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4780e0
sub eax, ecx
add edi, eax
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004779b0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x70
ret
movzx ebx, bl
push ebx
lea eax, [esp + 0x20]
push 0x583f18
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004779b0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xc2
push esi
call edi
lea eax, [esp + 0x1c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x478147
push ebx
lea edx, [esp + 0x20]
sub eax, ecx
push 0x583f18
push edx
add ebp, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
push ebp
mov edx, 1
mov ecx, esi
call fcn.004779b0
lea eax, [esp + 0x1c]
push eax
push 0
push 0xc2
push esi
call edi
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x70
ret