Function at 0x525190
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebp
push esi
mov ebp, edx
mov esi, ecx
call fcn.00542ed0
test eax, eax
jne 0x5251af
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 0x10
mov eax, dword [esp + 0x1c]
sub eax, 0
push ebx
push edi
je 0x525397
dec eax
je 0x525289
dec eax
jne 0x5255ff
cmp dword [esi + 0x708], 9
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jne 0x5251f7
mov ecx, dword [esi]
push ebx
push edi
mov edx, ebp
call fcn.00525010
mov ecx, esi
call fcn.00542ed0
test eax, eax
je 0x5255ff
cmp edi, 0x43
jne 0x52521b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x52526a
mov eax, dword [0x5a56d8]
test eax, eax
je 0x52526a
cmp eax, dword [esi]
je 0x52548e
jmp 0x52526a
cmp edi, 0x46
jne 0x52524f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x5255ff
mov eax, dword [esi]
push ebx
push edi
push 0x8040
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 0x10
cmp edi, 0x10
je 0x5255ff
cmp edi, 0x11
je 0x5255ff
cmp edi, 0x12
je 0x5255ff
mov ecx, dword [esi]
push ebx
push edi
push 0x8040
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 0x10
cmp dword [esi + 0x708], 9
mov edi, dword [esp + 0x1c]
jne 0x5252b4
mov edx, dword [esp + 0x20]
mov ecx, dword [esi]
push edx
push edi
mov edx, ebp
call fcn.00525010
mov ecx, esi
call fcn.00542ed0
test eax, eax
je 0x5255ff
cmp edi, 0x1b
je 0x52544a
cmp edi, 9
jne 0x5252f8
mov eax, dword [esi + 0x86c]
test eax, eax
je 0x5252df
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
mov ecx, dword [esi + 0x874]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp edi, 0x2d
jne 0x525345
mov ecx, dword [esi + 0x708]
mov eax, 6
cmp ecx, eax
jne 0x5255ff
push 0
push 0x1b58
mov dword [0x59bb90], eax
mov eax, dword [0x5b4314]
mov edx, dword [esi + 0xbbc]
push 0x111
push eax
mov dword [0x5aa558], edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp edi, 0x2e
jne 0x5255ff
mov ecx, dword [esi + 0x708]
mov eax, 6
cmp ecx, eax
jne 0x5255ff
mov edx, dword [0x5b4314]
push 0
push 0x1b5b
mov dword [0x59bb90], eax
mov ecx, dword [esi + 0xbbc]
push 0x111
push edx
mov dword [0x5aa558], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp dword [esi + 0x708], 9
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], 1
jne 0x5253ce
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
push eax
push edi
mov edx, ebp
call fcn.00525010
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.00542ed0
test eax, eax
je 0x5255ff
cmp edi, 0x26
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
je 0x5253de
cmp edi, 0x28
jne 0x5253f8
mov eax, dword [esi + 0x8a0]
test eax, eax
je 0x52560e
push 0x11
call ebx
test ah, ah
js 0x52560e
cmp edi, 0x24
je 0x525402
cmp edi, 0x23
jne 0x52542f
push 0x10
call ebx
test ah, ah
js 0x52542f
push 0x11
call ebx
test ah, ah
jns 0x52542f
mov ecx, dword [esi]
push 0
push edi
push 0x8040
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp edi, 0x21
je 0x525439
cmp edi, 0x22
jne 0x525445
push 0x10
call ebx
test ah, ah
jns 0x52560e
cmp edi, 0x1b
jne 0x525468
mov eax, dword [esi]
push 0
push 0x1b
push 0x8040
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp edi, 0x43
jne 0x5254db
push 0x11
call ebx
test ah, ah
jns 0x5255ff
mov eax, dword [0x5a56d8]
test eax, eax
je 0x5255ff
cmp eax, dword [esi]
jne 0x5255ff
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx edx, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
shl edx, 0x10
or edx, ecx
mov ecx, dword [esi]
call fcn.00456e40
mov ecx, dword [esi]
call fcn.00456350
mov ecx, dword [0x5a56d8]
call fcn.00456cf0
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp edi, 9
jne 0x5255eb
mov ecx, dword [esi]
call fcn.0052a7e0
push 0x10
mov edi, eax
call ebx
test ah, ah
jns 0x5254fe
mov eax, dword [0x5ac9e8]
test eax, eax
je 0x52551f
push 0x10
call ebx
test ah, ah
js 0x5255c5
mov eax, dword [0x5ac9e8]
test eax, eax
je 0x5255c5
test edi, edi
jne 0x5255c5
mov ebx, dword [esp + 0x28]
cmp ebx, dword [esi + 0x86c]
mov ebp, dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jne 0x525574
mov eax, dword [esi + 0x870]
test eax, eax
je 0x525551
push eax
call ebp
test eax, eax
je 0x525551
mov edx, dword [esi + 0x870]
push edx
jmp 0x525572
mov eax, dword [esi + 0x874]
test eax, eax
je 0x52556b
push eax
call ebp
test eax, eax
je 0x52556b
mov eax, dword [esi + 0x874]
push eax
jmp 0x525572
mov ecx, dword [esi + 0x86c]
push ecx
call edi
cmp ebx, dword [esi + 0x870]
jne 0x52561f
mov eax, dword [esi + 0x874]
test eax, eax
je 0x5255a6
push eax
call ebp
test eax, eax
je 0x5255a6
mov edx, dword [esi + 0x874]
push edx
call edi
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
mov eax, dword [esi + 0x86c]
test eax, eax
jne 0x5255b6
mov eax, dword [esi + 0x870]
push eax
call edi
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5255ff
mov ecx, dword [esi]
push 0
push 9
push 0x8040
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp edi, 0xd
je 0x5255f5
cmp edi, 0xa
jne 0x5255ff
mov eax, dword [esi + 0x8a0]
test eax, eax
je 0x52561f
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 0x10
mov edx, dword [esi]
push 0
push edi
push 0x8040
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10