Function at 0x472ba8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
mov dword [ebp - 0x38], ebx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], eax
call fcn.004846ec
mov dword [ebp - 0x30], eax
test eax, eax
je 0x472d54
push esi
push edi
lea eax, [ebx + 0x28]
mov esi, eax
mov dword [ebp - 0x3c], eax
lea edi, [ebp - 0x14]
push ebx
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046ac79
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x472c10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
sub ebx, dword [ebp + 0xc]
sub edi, dword [ebp + 0xc]
jmp 0x472c1c
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
sub ebx, dword [ebp + 0x10]
sub edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x24]
push eax
push dword [0x49c734]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x24]
push eax
push dword [0x49c734]
call esi
lea eax, [ebp - 0x1c]
push eax
push dword [0x49c734]
call esi
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x472c80
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
cmovg eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
cmovl eax, dword [ebp - 8]
jmp 0x472c9a
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
cmovg eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
cmovl ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x30]
dec ecx
dec eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x472cb9
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [ebp - 0x54]
jne 0x472cf1
cmp eax, 0x202
jne 0x472cfe
sub eax, 0x200
je 0x472d65
dec eax
sub eax, 1
jne 0x472cb9
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 2
push esi
push 0
call fcn.0048485d
push dword [ebp - 0x38]
call fcn.0046b322
test eax, eax
je 0x472d4f
mov esi, dword [ebp - 0x3c]
lea edi, [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub edx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
cmp dword [eax], 0
cmovne edx, ecx
add edx, ebx
push edx
push dword [ebp - 0x38]
call fcn.0046b7df
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00490511
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x4c]
call fcn.0048d4aa
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], ecx
je 0x472da6
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
lea ecx, [esi + ebx]
cmp ecx, edx
jge 0x472d8b
mov esi, edx
sub esi, ebx
jmp 0x472d99
mov ecx, dword [eax + 8]
lea eax, [edi + esi]
cmp eax, ecx
jle 0x472d99
mov esi, ecx
sub esi, edi
mov eax, esi
sub eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp + 0xc], esi
jmp 0x472dd5
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 4]
lea eax, [ebx + edx]
cmp eax, ecx
jge 0x472db9
mov edx, ecx
sub edx, ebx
jmp 0x472dca
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
lea eax, [edx + edi]
cmp eax, ecx
jle 0x472dca
mov edx, ecx
sub edx, edi
mov eax, edx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp + 0x10], edx
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
jmp 0x472cb9