Function at 0x416160
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x818
push ebx
mov ebx, dword [esp + 0x82c]
push esi
push edi
xor edi, edi
push ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x13], 0
mov byte [esp + 0x20], 0x42
mov byte [esp + 0x21], 0x4b
mov byte [esp + 0x1e], 0x47
mov byte [esp + 0x1f], 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 0x4161c2
push ebx
call fcn.00414a40
add esp, 4
test eax, eax
jne 0x4161cf
push ebx
call fcn.004147e0
add esp, 4
test eax, eax
je 0x416222
mov eax, ebx
lea edx, [esp + 0xc]
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], di
call dword [0x44d484]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x44cd08], eax
je 0x416213
mov ax, word [esp + 0xc]
mov word [esi + 0x44cd4c], ax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x818
ret
test byte [0x44c0e4], 1
je 0x41629e
push ebx
call fcn.00414aa0
mov dword [esp + 0x24], eax
mov eax, ebx
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 0x41629e
lea edx, [esp + 0xc]
push 2
push edx
push eax
mov word [esi + 0x44cd4c], di
call dword [0x44d484]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x44cd08], eax
je 0x416285
mov ax, word [esp + 0xc]
mov word [esi + 0x44cd4c], ax
pop edi
pop esi
mov dword [0x43a1b0], 3
mov eax, 1
pop ebx
add esp, 0x818
ret
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 + 0x830]
push eax
push 0x44d540
push edi
push edi
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x828]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x44d51c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [0x42e558]
mov dword [0x44ccb4], eax
cmp ecx, 1
jne 0x41630a
mov ecx, dword [0x439eb0]
add ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x41633f
cmp ecx, 2
jne 0x416326
mov eax, dword [0x439eb0]
lea edx, [esp + 0x24]
test al, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
je 0x41633f
jmp 0x41633b
lea eax, [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [0x439eb0]
test al, 1
mov dword [esp + 0x10], eax
jne 0x41633f
inc dword [esp + 0x10]
mov eax, dword [0x42e59c]
mov dword [0x44d478], edi
mov edi, dword [0x439eb4]
mov ecx, eax
sub ecx, edi
push ebp
inc ecx
cmp edi, eax
mov dword [0x44d520], ecx
ja 0x416510
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x416384
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esp + 0x82c]
je 0x4164dc
mov esi, ebx
lea edx, [esp + 0x1e]
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 ebp, [esi + ecx*4]
mov dword [ebp*4 + 0x44cd08], eax
jne 0x416510
push edi
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]
mov eax, dword [esp + 0x82c]
push eax
call fcn.00421660
mov ecx, dword [0x42e59c]
add esp, 4
sub ecx, edi
lea ebx, [ecx + 1]
cmp ebx, 0x800
jb 0x41641a
mov ebx, 0x800
jmp 0x416429
test bl, 1
je 0x416425
dec ebx
mov byte [esp + 0x13], 1
test ebx, ebx
je 0x416456
mov edx, dword [esp + 0x18]
push ebx
push edx
push esi
call dword [0x44d484]
add esp, 0xc
cmp eax, 1
mov dword [ebp*4 + 0x44cd08], eax
jne 0x416509
cmp dword [0x42e558], 1
jne 0x416456
add dword [esp + 0x18], ebx
cmp byte [esp + 0x13], 1
jne 0x416489
lea eax, [esp + 0x22]
push 2
push eax
push esi
call dword [0x44d484]
add esp, 0xc
cmp eax, 1
mov dword [ebp*4 + 0x44cd08], eax
jne 0x416509
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x22]
inc ebx
mov byte [edx], cl
mov ecx, dword [0x44d478]
mov eax, dword [0x42e558]
add edi, ebx
add ecx, ebx
cmp eax, 1
mov dword [0x44d478], ecx
je 0x4164c6
xor eax, eax
test ebx, ebx
jle 0x4164c6
mov edx, dword [0x44ccb4]
mov esi, dword [esp + 0x14]
mov cl, byte [esp + eax + 0x28]
inc eax
mov byte [edx + esi], cl
add esi, 2
cmp eax, ebx
mov dword [esp + 0x14], esi
jl 0x4164a9
mov eax, dword [0x42e59c]
mov ebx, dword [esp + 0x838]
cmp edi, eax
jbe 0x416364
jmp 0x416510
mov ecx, ebx
lea eax, [esp + 0x20]
push 2
and ecx, 0xff
push eax
push ecx
mov dword [0x43a1b0], 5
mov dword [esp + 0x30], 1
call dword [0x44d8e0]
add esp, 0xc
jmp 0x416510
mov ebx, dword [esp + 0x838]
dec edi
push edi
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]
mov eax, dword [0x44d51c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, ebx
lea edx, [esp + 0x10]
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], 0
call dword [0x44d484]
add esp, 0xc
mov dword [esi + 0x44cd08], eax
test eax, eax
pop ebp
je 0x41659b
mov ax, word [esp + 0xc]
mov word [esi + 0x44cd4c], ax
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
add esp, 0x818
ret