Function at 0x51e4dc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [0x543560]
mov eax, dword [edi]
call fcn.004b6208
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
call fcn.004b6264
mov esi, eax
dec esi
test esi, esi
jl 0x51e5a1
inc esi
xor ebx, ebx
mov eax, dword [edi]
mov edx, ebx
call fcn.004b6250
call fcn.004b5e00
add dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov edx, ebx
call fcn.004b6250
call fcn.004b5dcc
cmp eax, dword [ebp - 0x20]
jle 0x51e551
mov eax, dword [edi]
mov edx, ebx
call fcn.004b6250
call fcn.004b5dcc
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
mov edx, ebx
call fcn.004b6250
call fcn.004b5db4
cmp eax, dword [ebp - 0x24]
jge 0x51e575
mov eax, dword [edi]
mov edx, ebx
call fcn.004b6250
call fcn.004b5db4
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
mov edx, ebx
call fcn.004b6250
call fcn.004b5de8
cmp eax, dword [ebp - 0x28]
jge 0x51e599
mov eax, dword [edi]
mov edx, ebx
call fcn.004b6250
call fcn.004b5de8
mov dword [ebp - 0x28], eax
inc ebx
dec esi
jne 0x51e51c
push 0
call sub.user32.dll_GetDC
mov ebx, eax
mov dl, 1
mov eax, dword [0x453c58]
call fcn.0045d620
mov dword [ebp - 8], eax
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x285], 0
je 0x51e664
call sub.user32.dll_GetForegroundWindow
test eax, eax
je 0x51e64a
lea edx, [ebp - 0x38]
push edx
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xc000ca
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
push eax
push ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0045df40
call fcn.00458308
push eax
call sub.gdi32.dll_StretchBlt
jmp 0x51e6f5
push ebx
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
call fcn.00405764
jmp 0x51e80c
mov eax, dword [0x542d44]
mov eax, dword [eax]
mov eax, dword [eax + 0x488]
imul dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
fdiv dword [0x51e814]
call fcn.00404724
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [0x542d44]
mov eax, dword [eax]
mov eax, dword [eax + 0x488]
imul dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
fdiv dword [0x51e814]
call fcn.00404724
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xcc0020
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0045df40
call fcn.00458308
push eax
call sub.gdi32.dll_StretchBlt
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x286], 0
je 0x51e7ec
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_GetCursorPos
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.user32.dll_WindowFromPoint
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
cmp esi, edi
je 0x51e75c
push 0xffffffffffffffff
push edi
push esi
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x51e752
call sub.user32.dll_GetCursor
mov dword [ebp - 0x14], eax
push 0
push edi
push esi
call sub.user32.dll_AttachThreadInput
jmp 0x51e764
call sub.user32.dll_GetCursor
mov dword [ebp - 0x14], eax
jmp 0x51e764
call sub.user32.dll_GetCursor
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x4528d4]
call fcn.0045aa1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.0045ab40
mov edx, dword [ebp - 0x14]
call fcn.004600cc
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x285], 0
je 0x51e7bd
mov eax, dword [ebp - 0x18]
call fcn.0045ab40
push eax
mov eax, dword [ebp - 8]
call fcn.0045df40
mov ecx, dword [ebp - 0xc]
sub ecx, 0xa
sub ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
sub edx, 0xa
sub edx, dword [ebp - 0x38]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x51e7df
mov eax, dword [ebp - 0x18]
call fcn.0045ab40
push eax
mov eax, dword [ebp - 8]
call fcn.0045df40
mov ecx, dword [ebp - 0xc]
sub ecx, 0xa
mov edx, dword [ebp - 0x10]
sub edx, 0xa
mov esi, dword [eax]
call dword [esi + 0x3c]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x18], edx
call fcn.00405764
push ebx
push 0
call sub.user32.dll_ReleaseDC
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051e824
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
call fcn.00405764
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret