Function at 0x537c70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebp
push esi
mov ebp, edx
mov esi, ecx
call fcn.005612a0
test eax, eax
jne 0x537c8f
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 0x537e83
dec eax
je 0x537d69
dec eax
jne 0x538125
cmp dword [esi + 0x71c], 9
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jne 0x537cd7
mov ecx, dword [esi]
push ebx
push edi
mov edx, ebp
call fcn.00537af0
mov ecx, esi
call fcn.005612a0
test eax, eax
je 0x538125
cmp edi, 0x43
jne 0x537cfb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x537d4a
mov eax, dword [0x5c9f20]
test eax, eax
je 0x537d4a
cmp eax, dword [esi]
je 0x537f7a
jmp 0x537d4a
cmp edi, 0x46
jne 0x537d2f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x538125
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 0x538125
cmp edi, 0x11
je 0x538125
cmp edi, 0x12
je 0x538125
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 + 0x71c], 9
mov edi, dword [esp + 0x1c]
jne 0x537d94
mov edx, dword [esp + 0x20]
mov ecx, dword [esi]
push edx
push edi
mov edx, ebp
call fcn.00537af0
mov ecx, esi
call fcn.005612a0
test eax, eax
je 0x538125
cmp edi, 0x1b
je 0x537f36
cmp edi, 9
jne 0x537de4
mov eax, dword [esi + 0x884]
test eax, eax
je 0x537dcb
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, 4
mov ecx, esi
call fcn.004f4a80
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
mov ecx, dword [esi + 0x88c]
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 0x537e31
mov ecx, dword [esi + 0x71c]
mov eax, 6
cmp ecx, eax
jne 0x538125
push 0
push 0x1b58
mov dword [0x5bfc08], eax
mov eax, dword [0x5f92ec]
mov edx, dword [esi + 0xbe8]
push 0x111
push eax
mov dword [0x5eee18], 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 0x538125
mov ecx, dword [esi + 0x71c]
mov eax, 6
cmp ecx, eax
jne 0x538125
mov edx, dword [0x5f92ec]
push 0
push 0x1b5b
mov dword [0x5bfc08], eax
mov ecx, dword [esi + 0xbe8]
push 0x111
push edx
mov dword [0x5eee18], 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 + 0x71c], 9
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], 1
jne 0x537eba
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
push eax
push edi
mov edx, ebp
call fcn.00537af0
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.005612a0
test eax, eax
je 0x538125
cmp edi, 0x26
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
je 0x537eca
cmp edi, 0x28
jne 0x537ee4
mov eax, dword [esi + 0x8b8]
test eax, eax
je 0x538134
push 0x11
call ebx
test ah, ah
js 0x538134
cmp edi, 0x24
je 0x537eee
cmp edi, 0x23
jne 0x537f1b
push 0x10
call ebx
test ah, ah
js 0x537f1b
push 0x11
call ebx
test ah, ah
jns 0x537f1b
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 0x537f25
cmp edi, 0x22
jne 0x537f31
push 0x10
call ebx
test ah, ah
jns 0x538134
cmp edi, 0x1b
jne 0x537f54
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 0x537fc7
push 0x11
call ebx
test ah, ah
jns 0x538125
mov eax, dword [0x5c9f20]
test eax, eax
je 0x538125
cmp eax, dword [esi]
jne 0x538125
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.0045ab70
mov ecx, dword [esi]
call fcn.00459dd0
mov ecx, dword [0x5c9f20]
call fcn.0045aa70
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp edi, 9
jne 0x538111
mov ecx, dword [esi]
call fcn.0053d230
push 0x10
mov edi, eax
call ebx
test ah, ah
jns 0x537fea
mov eax, dword [0x5f1908]
test eax, eax
je 0x53800b
push 0x10
call ebx
test ah, ah
js 0x5380eb
mov eax, dword [0x5f1908]
test eax, eax
je 0x5380eb
test edi, edi
jne 0x5380eb
mov ebx, dword [esp + 0x28]
cmp ebx, dword [esi + 0x884]
mov ebp, dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jne 0x53807e
mov eax, dword [esi + 0x888]
test eax, eax
je 0x53803d
push eax
call ebp
test eax, eax
je 0x53803d
mov edx, dword [esi + 0x888]
push edx
jmp 0x538070
mov eax, dword [esi + 0x88c]
test eax, eax
je 0x538069
push eax
call ebp
test eax, eax
jne 0x53805e
mov edx, 3
mov ecx, esi
call fcn.004f4a80
test eax, eax
je 0x538069
mov eax, dword [esi + 0x88c]
push eax
call edi
jmp 0x53807e
mov ecx, dword [esi + 0x884]
push ecx
call edi
mov ecx, esi
mov edx, 4
call fcn.004f4a80
cmp ebx, dword [esi + 0x888]
jne 0x538145
mov eax, dword [esi + 0x88c]
test eax, eax
je 0x5380c0
push eax
call ebp
test eax, eax
jne 0x5380ab
mov edx, 3
mov ecx, esi
call fcn.004f4a80
test eax, eax
je 0x5380c0
mov edx, dword [esi + 0x88c]
push edx
call edi
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
mov eax, dword [esi + 0x884]
test eax, eax
jne 0x5380d0
mov eax, dword [esi + 0x888]
push eax
call edi
mov ecx, esi
mov edx, 4
call fcn.004f4a80
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 0x538125
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 0x53811b
cmp edi, 0xa
jne 0x538125
mov eax, dword [esi + 0x8b8]
test eax, eax
je 0x538145
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