Function at 0x515b68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x5162c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00513428
test eax, eax
jle 0x515be6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00513428
mov edx, eax
sub edx, 1
jno 0x515bb1
call fcn.0040391c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00513444
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
call fcn.0051598c
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_GetCursorPos
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005153fc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
mov byte [ebp - 6], 1
jmp 0x516298
cmp byte [ebp - 6], 0
jne 0x515bfa
call sub.user32.dll_WaitMessage
mov byte [ebp - 6], 0
jmp 0x516274
mov eax, dword [ebp - 0x3d]
sub eax, 0x12
je 0x515d23
add eax, 0xffffff71
sub eax, 9
jb 0x515d23
sub eax, 0x157
jne 0x515d2f
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x35]
call fcn.00408e80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x41]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0043d524
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x515cb2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
call fcn.005154e8
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x515cb2
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
jmp 0x515d2f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x25], 0
jmp 0x515d00
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
call fcn.0043d524
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x20]
call fcn.005154e8
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x515cf7
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x515d0c
cmp byte [ebp - 0x25], 0
je 0x515cbe
cmp byte [ebp - 0x25], 0
jne 0x515d2f
push ebp
call fcn.00515b0c
pop ecx
call fcn.0040429c
jmp 0x5162c8
push ebp
call fcn.00515b0c
pop ecx
jmp 0x516274
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x516274
mov eax, dword [ebp - 0x3d]
sub eax, 0x7b
je 0x516274
add eax, 0xffffff7b
sub eax, 9
jb 0x515d84
add eax, 0xffffff09
sub eax, 0xb
jb 0x51604b
sub eax, 0x264
jne 0x51626b
mov eax, dword [ebp - 4]
call fcn.005158d4
jmp 0x516274
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x516274
mov eax, dword [ebp - 0x3d]
sub eax, 0x100
je 0x515dba
sub eax, 2
je 0x515ffa
sub eax, 2
je 0x515dba
sub eax, 2
je 0x515ffa
jmp 0x516274
mov eax, dword [ebp - 0x39]
cmp eax, 0x25
jg 0x515dfd
je 0x515eb9
cmp eax, 0x12
jg 0x515de6
je 0x515fe0
sub eax, 9
je 0x516274
sub eax, 4
je 0x515e22
jmp 0x515fec
sub eax, 0x1b
je 0x515e8c
sub eax, 5
je 0x516274
jmp 0x515fec
sub eax, 0x26
je 0x515fa3
dec eax
je 0x515f2e
dec eax
je 0x515fbd
sub eax, 0x51
je 0x515fe0
jmp 0x515fec
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x515e3a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov bx, 0xfff0
call fcn.00403c0c
mov eax, dword [ebp - 4]
call fcn.005158d4
test al, al
jne 0x516274
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x516274
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x24]
mov edx, 0x5162d8
call fcn.00404c4c
je 0x516274
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x29], 0
je 0x516274
push ebp
call fcn.00515b0c
pop ecx
jmp 0x516274
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x515e9f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
call fcn.0040429c
jmp 0x5162c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
je 0x515ecf
mov eax, dword [ebp - 4]
call fcn.00515a4c
jmp 0x516274
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x516274
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cmp byte [eax + 0x28], 0
je 0x515f0f
push 0
push 0x25
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
call fcn.0040429c
jmp 0x5162c8
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
jmp 0x516274
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
je 0x515f44
mov eax, dword [ebp - 4]
call fcn.0051598c
jmp 0x516274
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x516274
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cmp byte [eax + 0x28], 0
je 0x515f84
push 0
push 0x27
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
call fcn.0040429c
jmp 0x5162c8
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
jmp 0x516274
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x516274
mov eax, dword [ebp - 4]
call fcn.00515a4c
jmp 0x516274
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x515fd3
mov eax, dword [ebp - 4]
call fcn.0051598c
jmp 0x516274
mov eax, dword [ebp - 4]
call fcn.005158d4
jmp 0x516274
push ebp
call fcn.00515b0c
pop ecx
jmp 0x516274
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_TranslateMessage
jmp 0x516274
mov edx, dword [ebp - 0x39]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.005149b8
test eax, eax
je 0x516274
mov edx, dword [ebp - 0x39]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.005149b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
jmp 0x516274
mov eax, dword [ebp - 0x3d]
sub eax, 0x200
je 0x516063
sub eax, 2
je 0x516178
jmp 0x516274
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x35]
call fcn.00408e80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x41]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x57f248]
jne 0x516095
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x57f24c]
je 0x516274
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
jmp 0x5160a6
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x3c], 0
jne 0x51609d
cmp dword [ebp - 0x20], 0
je 0x516150
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x20]
call fcn.005153fc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x51613d
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 4]
je 0x51613d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x516119
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x5160ee
push 0
push 0
push 0x46f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
call fcn.0040429c
jmp 0x5162c8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5160b9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x516161
mov eax, dword [ebp - 4]
call fcn.005158d4
mov eax, dword [ebp - 0x10]
mov dword [0x57f248], eax
mov eax, dword [ebp - 0xc]
mov dword [0x57f24c], eax
jmp 0x516274
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x35]
call fcn.00408e80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x41]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0043d524
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x516202
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
call fcn.005154e8
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x516202
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00445ca8
push eax
call sub.user32.dll_PostMessageA
jmp 0x516274
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x25], 0
jmp 0x516250
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
call fcn.0043d524
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x20]
call fcn.005154e8
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x516247
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x51625c
cmp byte [ebp - 0x25], 0
je 0x51620e
cmp byte [ebp - 0x25], 0
jne 0x516274
push ebp
call fcn.00515b0c
pop ecx
jmp 0x516274
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_DispatchMessageA
push ebp
call fcn.00515b50
pop ecx
test al, al
je 0x516298
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x515c03
push ebp
call fcn.00515b50
pop ecx
test al, al
jne 0x515bef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5162c8
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 0
call sub.user32.dll_ReleaseCapture
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret