Function at 0x4165b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x818
push ebx
push ebp
mov ebp, dword [esp + 0x830]
push esi
xor ebx, ebx
push ebp
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1e], 0x42
mov byte [esp + 0x1f], 0x4b
mov byte [esp + 0x1c], 0x47
mov byte [esp + 0x1d], 0x4f
call fcn.00414740
mov eax, dword [0x439fc8]
add esp, 4
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
cmp byte [ecx + edx + 0xe], 1
jne 0x41660d
push ebp
call fcn.00414a40
add esp, 4
test eax, eax
jne 0x41661a
push ebp
call fcn.004147e0
add esp, 4
test eax, eax
je 0x41666d
mov eax, ebp
lea edx, [esp + 0xe]
and eax, 0xff
push 2
push edx
push eax
lea ecx, [eax*8]
sub ecx, eax
lea esi, [eax + ecx*4]
shl esi, 2
mov word [esi + 0x44cd4c], bx
call dword [0x44d484]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x44cd08], eax
je 0x41665e
mov ax, word [esp + 0xe]
mov word [esi + 0x44cd4c], ax
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x818
ret
test byte [0x44c0e4], 1
je 0x4166e9
push ebp
call fcn.00414aa0
mov dword [esp + 0x20], eax
mov eax, ebp
and eax, 0xff
add esp, 4
lea ecx, [eax*8]
sub ecx, eax
lea esi, [eax + ecx*4]
shl esi, 2
test byte [esi + 0x44cd53], 1
jne 0x4166e9
lea edx, [esp + 0xe]
push 2
push edx
push eax
mov word [esi + 0x44cd4c], bx
call dword [0x44d484]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x44cd08], eax
je 0x4166d0
mov ax, word [esp + 0xe]
mov word [esi + 0x44cd4c], ax
pop esi
pop ebp
mov dword [0x43a1b0], 3
mov eax, 1
pop ebx
add esp, 0x818
ret
push edi
push 0x4365c0
push 0x44d540
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0x44d540
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x834]
push eax
push 0x44d540
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edi, dword [esp + 0x82c]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x44d51c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [0x42e558]
mov dword [0x44ccb4], eax
cmp ecx, 1
jne 0x416757
mov ecx, dword [0x439eb0]
add ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x4167a8
cmp ecx, 2
jne 0x416783
mov eax, dword [0x439eb0]
lea edx, [esp + 0x28]
test cl, al
mov dword [esp + 0x18], edx
jne 0x416777
shr eax, 1
shl eax, 1
mov dword [esp + 0x14], eax
jmp 0x4167a8
shr eax, 1
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
jmp 0x4167a8
mov eax, dword [0x439eb0]
lea ecx, [esp + 0x28]
test al, 2
mov dword [esp + 0x18], ecx
je 0x41679e
shr eax, 1
shl eax, 1
mov dword [esp + 0x14], eax
jmp 0x4167a8
shr eax, 1
lea edx, [eax + eax + 2]
mov dword [esp + 0x14], edx
mov eax, dword [0x42e59c]
mov dword [0x44d478], ebx
mov ebx, dword [0x439eb4]
mov ecx, eax
sub ecx, ebx
inc ecx
cmp ebx, eax
mov dword [0x44d520], ecx
ja 0x41695b
jmp 0x4167d5
mov edi, dword [esp + 0x82c]
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x4167f0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, edi
je 0x416927
mov esi, ebp
lea edx, [esp + 0x1c]
and esi, 0xff
push 2
push edx
push esi
call dword [0x44d8e0]
lea ecx, [esi*8]
add esp, 0xc
sub ecx, esi
cmp eax, 1
lea ecx, [esi + ecx*4]
mov dword [esp + 0x24], ecx
mov dword [ecx*4 + 0x44cd08], eax
jne 0x41695b
push ebx
push str._07lX
push 0x44d540
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x44d540
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x830]
push eax
push 0x44d540
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
push edi
call fcn.00421660
mov eax, dword [0x42e59c]
add esp, 4
sub eax, ebx
inc eax
cmp eax, 0x400
jb 0x41687f
mov edi, 0x400
jmp 0x416885
mov edi, eax
test edi, edi
je 0x4168c0
mov ecx, dword [esp + 0x18]
lea ebp, [edi + edi]
push ebp
push ecx
push esi
call dword [0x44d484]
mov edx, dword [esp + 0x30]
add esp, 0xc
cmp eax, 1
mov dword [edx*4 + 0x44cd08], eax
jne 0x416954
cmp dword [0x42e558], 1
jne 0x4168b9
add dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x838]
mov ecx, dword [0x44d478]
mov eax, dword [0x42e558]
add ebx, edi
add ecx, edi
cmp eax, 1
mov dword [0x44d478], ecx
je 0x416919
lea ecx, [edi + edi]
xor eax, eax
test ecx, ecx
jle 0x416919
mov esi, dword [0x44ccb4]
mov edi, dword [esp + 0x14]
mov dl, byte [esp + eax + 0x28]
add eax, 2
mov byte [esi + edi], dl
mov esi, dword [0x44ccb4]
mov dl, byte [esp + eax + 0x27]
mov byte [esi + edi + 1], dl
mov esi, edi
add esi, 4
cmp eax, ecx
mov dword [esp + 0x14], esi
jl 0x4168e3
mov ebp, dword [esp + 0x838]
cmp ebx, dword [0x42e59c]
jbe 0x4167ce
jmp 0x41695b
mov ecx, ebp
lea eax, [esp + 0x1e]
push 2
and ecx, 0xff
push eax
push ecx
mov dword [0x43a1b0], 5
mov dword [esp + 0x2c], 1
call dword [0x44d8e0]
add esp, 0xc
jmp 0x41695b
mov ebp, dword [esp + 0x838]
mov eax, ebp
lea ecx, [esp + 0x12]
and eax, 0xff
push 2
push ecx
push eax
lea edx, [eax*8]
sub edx, eax
lea esi, [eax + edx*4]
shl esi, 2
mov word [esi + 0x44cd4c], 0
call dword [0x44d484]
add esp, 0xc
mov dword [esi + 0x44cd08], eax
test eax, eax
pop edi
je 0x4169a2
mov dx, word [esp + 0xe]
mov word [esi + 0x44cd4c], dx
dec ebx
push ebx
push str._07lX
push 0x44d540
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x44d540
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x830]
push 0x44d540
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [0x44d51c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x818
ret