Function at 0x3006b450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0xc]
push 2
push 0
mov dword [ebp - 0xc], eax
call fcn.30079671
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x3006b688
push edi
push dword [ebp + 8]
add esi, 0x28
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
call fcn.30064b21
cmp dword [ebx], 0
pop ecx
pop ecx
je 0x3006b4a9
mov edi, dword [ebp - 0x24]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
jmp 0x3006b4bb
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0x34]
push eax
push dword [0x300952ec]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x34]
push eax
push dword [0x300952ec]
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [0x300952ec]
call esi
cmp dword [ebx], 0
je 0x3006b51b
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x20], eax
jg 0x3006b50e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
jl 0x3006b531
mov dword [ebp - 0x18], eax
jmp 0x3006b531
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x24], eax
jg 0x3006b526
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], eax
jl 0x3006b531
mov dword [ebp - 0x1c], eax
dec dword [ebp - 0x1c]
mov esi, dword [sym.imp.USER32.dll_InvertRect]
dec dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x209
push 0x100
push 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x3006b54f
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
js 0x3006b580
cmp dword [ebp - 0x4c], 0x202
jne 0x3006b598
push dword [ebp - 0x44]
call fcn.3007f13a
pop ecx
mov ecx, dword [ebp - 0x4c]
sub ecx, 0x200
je 0x3006b5e5
dec ecx
dec ecx
jne 0x3006b54f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call esi
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 2
push dword [ebp - 8]
push 0
call fcn.300796c2
mov esi, dword [ebp + 8]
push esi
call fcn.3006459c
add esp, 0x10
test eax, eax
je 0x3006b684
add esi, 0x28
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0
je 0x3006b66e
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x24]
jmp 0x3006b674
xor ecx, ecx
cmp dword [ebx], ecx
je 0x3006b61a
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 4]
lea edx, [eax + edi]
cmp edx, ecx
jge 0x3006b5fc
sub ecx, edi
jmp 0x3006b60b
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 8]
add edx, eax
cmp edx, ecx
jle 0x3006b60d
sub ecx, dword [ebp - 4]
mov eax, ecx
mov ecx, eax
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], ecx
jmp 0x3006b647
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
lea ecx, [edx + edi]
cmp ecx, eax
jge 0x3006b62b
sub eax, edi
jmp 0x3006b63a
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 8]
add ecx, edx
cmp ecx, eax
jle 0x3006b63c
sub eax, dword [ebp - 4]
mov edx, eax
mov eax, edx
sub eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call esi
jmp 0x3006b54f
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.30064f8a
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret