Function at 0x30070ae8
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.3007f314
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x30070d21
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.30069dd1
cmp dword [ebx], 0
pop ecx
pop ecx
je 0x30070b41
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 0x30070b53
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 [0x3009c3ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x34]
push eax
push dword [0x3009c3ac]
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [0x3009c3ac]
call esi
cmp dword [ebx], 0
je 0x30070bb3
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x20], eax
jg 0x30070ba6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
jl 0x30070bc9
mov dword [ebp - 0x18], eax
jmp 0x30070bc9
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x24], eax
jg 0x30070bbe
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], eax
jl 0x30070bc9
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 0x20e
push 0x100
push 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x30070be7
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x30070c19
cmp dword [ebp - 0x4c], 0x202
jne 0x30070c31
push dword [ebp - 0x44]
call fcn.30085102
pop ecx
mov ecx, dword [ebp - 0x4c]
sub ecx, 0x200
je 0x30070c7e
dec ecx
dec ecx
jne 0x30070be7
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.3007f368
mov esi, dword [ebp + 8]
push esi
call fcn.3006980a
add esp, 0x10
test eax, eax
je 0x30070d1d
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 0x30070d07
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x24]
jmp 0x30070d0d
xor ecx, ecx
cmp dword [ebx], ecx
je 0x30070cb3
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 4]
lea edx, [eax + edi]
cmp edx, ecx
jge 0x30070c95
sub ecx, edi
jmp 0x30070ca4
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 8]
add edx, eax
cmp edx, ecx
jle 0x30070ca6
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 0x30070ce0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
lea ecx, [edx + edi]
cmp ecx, eax
jge 0x30070cc4
sub eax, edi
jmp 0x30070cd3
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 8]
add ecx, edx
cmp ecx, eax
jle 0x30070cd5
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 0x30070be7
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.3006a25a
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret