Function at 0x42cd10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, ecx
xor edx, edx
cmp esi, edx
jne 0x42cd26
xor al, al
jmp 0x42d06a
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp eax, 0xffffff6a
je 0x42cfdc
cmp eax, 0xffffff4f
je 0x42cfdc
cmp eax, 0xffffff94
jne 0x42cdbc
call fcn.0042a9b7
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
push 0xffffffffffffffff
and eax, 0x7f
push eax
mov ecx, esi
call fcn.0042981b
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x42cd6e
inc ebx
mov ecx, dword [edi + 0x10]
mov eax, dword [esi + 0x28]
mov al, byte [eax + ecx]
mov cl, byte [ebx]
mov dl, cl
and dl, 0x7f
cmp dl, al
jne 0x42cd8c
movzx eax, cl
xor eax, 0x80
jmp 0x42cd8f
movzx eax, al
mov byte [ebx], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ecx, esi
call fcn.0042aa42
mov eax, dword [esi + 0x10]
mov ecx, eax
shr ecx, 7
not ecx
and ecx, 1
push ecx
and eax, 0x7f
push eax
mov ecx, esi
call fcn.0042981b
jmp 0x42d066
cmp eax, 0xfffffff4
jne 0x42cee8
mov ecx, 0x10000
cmp byte [0x54b035], dl
je 0x42cde7
test dword [edi + 0xc], ecx
je 0x42cdf3
test byte [edi + 0x24], 1
je 0x42cdf3
mov eax, dword [0x537e88]
mov dword [edi + 0x34], eax
jmp 0x42cdf3
mov eax, dword [esi + 4]
cmp dword [eax + 0x24], edx
je 0x42cf83
mov eax, dword [edi + 0xc]
dec eax
je 0x42ced9
sub eax, ecx
je 0x42cec9
sub eax, 0x20000
je 0x42ce14
dec eax
je 0x42ce5f
jmp 0x42d066
mov ecx, dword [esi + 0xc]
push 0x10
call fcn.0046809c
mov eax, dword [esi + 4]
cmp dword [eax + 0x34], 0
je 0x42ce48
mov edx, dword [esi + 0x28]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi + 0x38]
movzx ecx, byte [ecx + edx]
push dword [esi + 0xc]
mov edx, dword [edi + 0x24]
call dword [eax + 0x34]
test al, al
je 0x42ce48
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], eax
cmp byte [0x54aed2], 0
je 0x42d066
cmp dword [edi + 0x38], 0
jne 0x42d066
mov ecx, dword [esi + 0x28]
mov eax, dword [edi + 0x38]
mov cl, byte [eax + ecx]
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [esi + 4]
test dword [ecx + 0x24], edx
jne 0x42ce79
push 0
jmp 0x42cedb
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x24]
mov dword [ebp - 0x14], 2
push 0x1038
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x42ce75
mov edx, dword [esi + 0x28]
mov ecx, dword [edi + 0x38]
movzx ecx, byte [ecx + edx]
push dword [esi + 0xc]
lea edx, [ebp - 0x14]
push ecx
mov ecx, edi
call eax
test al, al
je 0x42ce75
push 4
jmp 0x42cedb
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x24]
neg eax
sbb eax, eax
and eax, 0x20
push eax
jmp 0x42cedb
push 0x20
mov ecx, dword [esi + 0xc]
call fcn.0046809c
jmp 0x42d066
cmp eax, 0xffffff65
jne 0x42cf8a
cmp word [edi + 0xc], 0x41
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jne 0x42cf2a
push 0x11
call ebx
test ax, ax
jge 0x42cf2a
push 2
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x42d066
cmp word [edi + 0xc], 0x43
jne 0x42cf46
push 0x11
call ebx
test ax, ax
jge 0x42cf46
mov ecx, esi
call fcn.0042b94c
jmp 0x42d066
cmp word [edi + 0xc], 0x71
jne 0x42cf83
mov eax, dword [esi + 4]
test byte [eax + 0x30], 1
je 0x42cf83
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push dword [edi]
call esi
mov ebx, eax
test ebx, ebx
jl 0x42cf83
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push ebx
push 0x1076
push dword [edi]
call esi
xor al, al
jmp 0x42d068
cmp eax, 0xffffff4d
jne 0x42cf83
mov eax, dword [esi + 4]
cmp dword [eax + 0x2c], edx
je 0x42cf83
mov eax, dword [edi + 0x10]
or dword [ebp - 4], 0xffffffff
test al, 2
je 0x42cfd4
mov ebx, dword [edi + 0xc]
and eax, 0x20
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x14]
jb 0x42cfbc
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x42cfd4
mov dword [ebp + 8], ebx
push dword [esi + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x14]
mov ecx, ebx
call dword [eax + 0x2c]
test al, al
jne 0x42cfd1
inc ebx
jmp 0x42cfad
mov dword [ebp - 4], ebx
push dword [ebp - 4]
jmp 0x42cedb
mov ecx, dword [edi + 0x24]
add edi, 0xc
test byte [edi], 1
mov dword [ebp + 8], ecx
je 0x42d007
mov eax, 0x104
cmp ecx, eax
jge 0x42cff5
mov eax, ecx
mov dword [edi + 0x18], eax
xor eax, eax
mov word [0x547730], ax
mov dword [edi + 0x14], 0x547730
mov ebx, dword [edi + 8]
mov dword [edi + 0x24], edx
mov eax, dword [esi + 0x28]
cmp eax, edx
je 0x42d01a
movzx eax, byte [eax + ebx]
jmp 0x42d01c
xor eax, eax
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov edx, dword [eax + 0xc]
imul edx, dword [edi + 4]
push dword [esi + 0xc]
add edx, dword [esi + 0x18]
mov ecx, edi
call dword [eax + 0x1c]
test byte [edi], 1
mov dword [edi + 8], ebx
je 0x42d060
mov eax, dword [edi + 0x14]
mov esi, 0x547730
cmp eax, esi
je 0x42d060
test eax, eax
jne 0x42d051
mov eax, 0x4f1b50
push dword [edi + 0x18]
mov edx, eax
mov ecx, esi
call fcn.0042260d
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 4