Function at 0x4746e0
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 0x474748
mov edx, 0x64
lea ecx, [esp + 0x14]
call fcn.0041e210
push 0x63
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea ecx, [esp + 0x14]
push str.Edit
push ecx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x474757
mov eax, dword [0x5990b4]
test eax, eax
je 0x474748
lea edx, [esp + 0x14]
push str.RichEdit20A
push edx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x474757
xor ecx, ecx
call fcn.0041c8e0
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 0x47474f
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetParent]
push edi
push esi
call ebp
mov edi, eax
mov ecx, edi
call fcn.00536930
test eax, eax
je 0x474787
mov edx, 1
jmp 0x47480f
cmp edi, dword [0x59e020]
je 0x47480a
cmp edi, dword [0x5919b8]
je 0x47480a
push edi
call ebp
cmp eax, dword [0x5919b8]
je 0x47480a
cmp edi, dword [0x598460]
je 0x47480a
mov eax, dword [0x596550]
cmp edi, eax
je 0x47480a
cmp edi, dword [0x596630]
je 0x47480a
test eax, eax
je 0x4747ca
push edi
call ebp
cmp eax, dword [0x596550]
je 0x47480a
mov ebp, dword [0x59427c]
test ebp, ebp
je 0x4747fc
mov ebx, dword [sym.imp.USER32.dll_IsChild]
lea ebx, [ebx]
mov eax, dword [ebp + 0xc8]
cmp eax, edi
je 0x474806
push edi
push eax
call ebx
test eax, eax
jne 0x474806
mov ebp, dword [ebp + 0x1018]
test ebp, ebp
jne 0x4747e0
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 0x474824
mov eax, dword [0x594084]
test eax, eax
je 0x474824
mov ecx, esi
call fcn.00434e10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, 1
mov ecx, esi
call fcn.004743d0
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp ebp, edi
jne 0x4748e6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp bl, 3
jne 0x474874
test ah, ah
push 3
jns 0x474896
push 3
lea edx, [esp + 0x24]
push str._c_c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4748a9
test ah, ah
jns 0x474892
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 0x4748a9
movzx edx, bl
push edx
lea eax, [esp + 0x20]
push 0x574eb4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004742f0
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.004742f0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x70
ret
cmp bl, 3
jne 0x474986
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 3
lea edx, [esp + 0x20]
push 0x574eb4
push edx
call ebx
add esp, 0xc
push ebp
push ebp
mov edx, 1
mov ecx, esi
call fcn.004742f0
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 0x574eb4
push ecx
call ebx
add esp, 0xc
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004742f0
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 0x474960
sub eax, ecx
add edi, eax
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004742f0
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 0x574eb4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push edi
mov edx, 1
mov ecx, esi
call fcn.004742f0
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 0x4749c7
push ebx
lea edx, [esp + 0x20]
sub eax, ecx
push 0x574eb4
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.004742f0
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