Function at 0x57f368
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
call fcn.0057bf60
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x57f2a9
cmp dword [ebx + 0x5c], 0
je 0x57f2a9
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0057ef40
test eax, eax
jne 0x57f29c
cmp dword [esi + 0x108], eax
jle 0x57f2c9
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, esi
call fcn.0057d610
mov edx, dword [eax + 0x20]
push esi
lea ecx, [ebp + 8]
push ecx
push 0x285a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00418c15
test eax, eax
je 0x57f2bc
mov eax, dword [esi + 0xac]
push edi
push eax
mov ecx, esi
call fcn.0057c8d0
mov edi, eax
test edi, edi
je 0x57f341
mov edx, dword [edi]
mov eax, dword [edx + 0x74]
mov ecx, edi
call eax
test eax, eax
je 0x57f341
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0xe0]
push eax
push ecx
mov ecx, edi
call edx
cmp eax, 1
je 0x57f6d9
cmp eax, 2
je 0x57f6d9
cmp dword [esi + 0x20], 0
je 0x57f6d4
mov eax, dword [ebp + 8]
add eax, 0xfffffff7
cmp eax, 0x17
ja case.0x57f361.10
movzx eax, byte [eax + 0x57f6f8]
jmp dword [eax*4 + 0x57f6e4]
mov ecx, dword [esi + 0xac]
push ecx
mov ecx, esi
call fcn.0057c8d0
push eax
push 0x722a80
mov dword [ebp + 0xc], eax
call fcn.00418d79
add esp, 8
test eax, eax
je 0x57f3ac
mov edi, dword [sym.imp.USER32.dll_GetFocus]
call edi
test eax, eax
je 0x57f3ac
call edi
mov edx, dword [esi + 0x20]
push eax
push edx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x57f4b0
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
test ax, ax
jns 0x57f3fe
cmp dword [ebp - 4], 0
je 0x57f3fe
mov ecx, esi
call fcn.0057bf30
mov edi, eax
push edi
push 0x71faa0
call fcn.00418d79
add esp, 8
test eax, eax
je 0x57f3fe
push 0x10
call ebx
xor ecx, ecx
test ax, ax
setns cl
lea ecx, [ecx + ecx - 1]
push ecx
mov ecx, dword [ebp - 4]
push edi
call fcn.0051fce0
test eax, eax
jne 0x57f6d4
mov edi, dword [esi]
push 0x10
call ebx
xor edx, edx
test ax, ax
mov eax, dword [edi + 0x1f0]
sets dl
mov ecx, esi
push edx
call eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x57f6d4
mov edx, dword [esi]
mov eax, dword [edx + 0xdc]
mov ecx, esi
call eax
test eax, eax
je 0x57f6d4
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
push 1
mov ecx, esi
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x1f0]
push 5
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x1f0]
push 4
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x1f0]
push 0xa
mov ecx, esi
call eax
test eax, eax
jne 0x57f6d4
mov edi, dword [sym.imp.USER32.dll_GetFocus]
call edi
test eax, eax
je 0x57f4be
call edi
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x57f4be
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x57f4e4
cmp eax, 1
je 0x57f4e4
cmp eax, 4
je 0x57f4e4
cmp eax, 5
jne 0x57f4e0
cmp dword [esi + 0xd4], 1
je 0x57f4e4
xor edi, edi
jmp 0x57f4e9
mov edi, 1
mov ecx, esi
call fcn.0057c090
mov edx, dword [ebp + 8]
lea ecx, [edx - 0x23]
cmp ecx, 5
ja case.default.0x57f4ff
jmp dword [ecx*4 + 0x57f710]
test edi, edi
je 0x57f52a
xor edx, edx
test eax, eax
setne dl
mov ecx, esi
lea eax, [edx + 8]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x1f0]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + 2]
push eax
mov eax, dword [edx + 0x1f0]
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x57f56b
mov edx, dword [esi]
neg eax
sbb eax, eax
add eax, 9
push eax
mov eax, dword [edx + 0x1f0]
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
neg eax
sbb eax, eax
add eax, 3
push eax
mov eax, dword [edx + 0x1f0]
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov edx, dword [edx + 0x1f0]
xor eax, eax
test edi, edi
setne al
mov ecx, esi
inc eax
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x1f0]
neg edi
sbb edi, edi
and edi, 3
push edi
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x1f0]
push 6
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x1f0]
push 7
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x57f6d4
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x57f6d4
mov ecx, esi
call fcn.0051ef10
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
test eax, eax
je 0x57f63d
push 0x11
call edi
test ax, ax
js 0x57f63d
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.0057f050
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x57f662
push esi
push 0x71faa0
call fcn.00418d79
add esp, 8
test eax, eax
je 0x57f662
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.00521250
test eax, eax
jne 0x57f6d4
push 0x11
mov dword [ebp + 0xc], 0
call edi
test ax, ax
js 0x57f6bf
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.0057e8e0
mov edi, eax
cmp edi, 0xffffffff
je 0x57f6bf
mov edx, dword [esi]
mov eax, dword [edx + 0x16c]
push 2
push edi
mov ecx, esi
call eax
cmp dword [ebp + 0xc], 0
jne 0x57f6d4
push edi
mov ecx, esi
call fcn.0057c8d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xb0]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp eax, 0x10
je 0x57f6d4
cmp eax, 0x11
je 0x57f6d4
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8