Function at 0x4c73e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0x28], eax
mov esi, edx
cmp edi, 0x201
je 0x4c7406
cmp edi, 0x204
jne 0x4c740d
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ebx, dword [ebp + 0x10]
mov eax, edi
mov byte [ebp - 1], 0
sub eax, 0x201
je 0x4c762a
sub eax, 1
je 0x4c7481
sub eax, 2
jne 0x4c748d
mov eax, dword [esi + 0x20]
test al, 2
je 0x4c748d
test al, 0x10
je 0x4c7471
mov ecx, dword [esi + 0xc8]
mov eax, dword [esi + 0x68]
mov dword [esi + 0x64], ecx
cmp ecx, eax
jge 0x4c744b
mov dword [esi + 0x64], eax
jmp 0x4c744d
mov eax, ecx
inc eax
mov dword [ebp - 0x78], 1
mov dword [esi + 0x6c], eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x120c
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4c7487
mov dword [esi + 0x64], 0
mov dword [esi + 0x6c], 0
jmp 0x4c7487
test byte [esi + 0x20], 2
je 0x4c7497
call dword [sym.imp.USER32.dll_ReleaseCapture]
test byte [esi + 0x20], 2
jne 0x4c7a04
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x40]
mov ecx, esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 3
call fcn.004c9f40
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x30]
and eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
and eax, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
and eax, 0x20
mov dword [ebp - 0xc], eax
je 0x4c74f8
cmp edi, 0x201
jne 0x4c74f8
mov eax, dword [ebx]
mov edx, ebx
shr eax, 2
mov ecx, esi
not al
and al, 1
movzx eax, al
push eax
call fcn.004c9b10
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
test eax, eax
jne 0x4c7922
cmp edi, 0x201
je 0x4c751a
cmp edi, 0x204
jne 0x4c7922
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4c7552
push 0
push 0
push 0x41c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0xf4], 0xffffffff
mov dword [esi + 0xf8], 0xffffffff
mov dword [esi + 0x118], 0xffffffff
mov eax, dword [ebp - 0x34]
mov ecx, eax
and ecx, 0x10
mov dword [ebp - 0x44], ecx
je 0x4c75fd
mov eax, dword [ebp - 8]
xor ebx, ebx
test byte [esi + 0x2c], 1
mov dword [esi + 0x70], eax
je 0x4c75d3
cmp byte [ebp - 1], bl
jne 0x4c75d3
test byte [eax], 2
jne 0x4c75d3
lea ecx, [ebp - 0xf8]
push ecx
push ecx
push edx
mov edx, dword [eax + 0x20]
mov ecx, esi
call fcn.004c9bf0
test al, al
je 0x4c75d3
mov ecx, dword [ebp - 0xf8]
mov ebx, 1
mov eax, dword [ebp + 0x10]
test cl, 4
je 0x4c75b8
cmp eax, dword [ebp - 0xc4]
jl 0x4c75b8
xor edx, edx
cmp eax, dword [ebp - 0xbc]
cmovl ebx, edx
cmp eax, dword [ebp - 0x9c]
jge 0x4c75d3
cmp eax, dword [ebp - 0xa4]
jl 0x4c75d3
and cl, 0x18
xor eax, eax
cmp cl, 0x18
cmove ebx, eax
mov edx, dword [ebp - 8]
xor eax, eax
cmp edi, 0x204
mov ecx, esi
sete al
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.004ca350
test ebx, ebx
mov ebx, dword [ebp - 8]
je 0x4c7922
mov eax, dword [ebp - 0x34]
xor cl, cl
mov byte [ebp - 3], 0
or edx, 0xffffffff
mov byte [ebp - 0x24], 0
mov byte [ebp - 2], cl
test al, 0xf
jne 0x4c791a
cmp byte [ebp - 1], cl
jne 0x4c791a
test ebx, ebx
je 0x4c768a
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x4c7691
mov ecx, dword [esi + 0x20]
test cl, 0x20
je 0x4c748d
mov edx, dword [esi + 0x64]
lea eax, [edx - 8]
cmp ebx, eax
jl 0x4c748d
lea eax, [edx + 8]
cmp ebx, eax
jge 0x4c748d
push dword [ebp - 0x28]
or ecx, 2
mov byte [ebp - 1], 1
mov dword [esi + 0x20], ecx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], edx
call dword [sym.imp.USER32.dll_SetCapture]
push 0
push 0x64
push 1
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x4c7497
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c76a0
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jmp 0x4c76a7
mov dword [ebp - 8], 0xffffffff
mov ebx, dword [ebp + 0x10]
mov eax, ebx
mov edx, dword [esi + 0x19c]
sub eax, edx
mov ecx, dword [esi + 0x1a0]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x34], eax
lea eax, [edx + ebx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
add eax, ecx
push 2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
mov dword [ebp - 0x20], eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4c7767
mov eax, dword [ebp - 0x60]
add eax, 0xfffffe00
cmp eax, 5
ja case.0x4c7713.515
jmp dword [eax*4 + 0x4c7a10]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
jmp 0x4c776d
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x38]
jl 0x4c7742
cmp eax, dword [ebp - 0x30]
jge 0x4c7742
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x34]
jl 0x4c7742
cmp eax, dword [ebp - 0x2c]
jl 0x4c776d
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
setne dl
jmp 0x4c7789
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4c776d
call dword [sym.imp.USER32.dll_WaitMessage]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c7787
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi]
je 0x4c76f0
xor dl, dl
mov ecx, dword [ebp - 0xc]
cmp ecx, 0xffffffff
jne 0x4c7795
xor ecx, ecx
jmp 0x4c77a9
mov eax, dword [esi + 0xd0]
cmp ecx, dword [eax]
jae 0x4c7a04
mov eax, dword [eax + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp eax, 0xffffffff
je 0x4c77da
cmp eax, dword [esi + 0x98]
jae 0x4c7a04
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x90]
mov eax, dword [eax + ebx*4]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4c7a04
test dl, dl
je 0x4c77f3
cmp dword [ebp - 0x44], 0
mov byte [ebp - 3], 1
je 0x4c780c
test byte [esi + 0x2c], 1
je 0x4c780c
mov edx, dword [ecx + 0x20]
jmp 0x4c780f
cmp edi, 0x201
jne 0x4c7892
cmp dword [ebp - 0x20], 0x202
je 0x4c78ab
or edx, 0xffffffff
cmp dword [ebp - 0x18], 0
jne 0x4c7859
cmp dword [ebp - 0x1c], 0
jne 0x4c7859
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push edx
call fcn.004ca120
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x88]
push eax
push 1
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004c9e80
test al, al
je 0x4c7859
push 0
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp byte [ebp - 3], 0
je 0x4c786b
push dword [ebp - 0x10]
mov edx, ebx
mov ecx, esi
call fcn.004ccaa0
mov cl, byte [ebp - 2]
test cl, cl
je 0x4c7a04
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 0x204
jne 0x4c780c
cmp dword [ebp - 0x20], 0x205
jne 0x4c780c
cmp dword [ebp - 0x44], 0
je 0x4c78c6
mov eax, dword [ebp - 0x24]
mov ecx, 1
test byte [esi + 0x2c], 1
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [esi]
lea edx, [ebp - 0x48]
call fcn.004cd2b0
cmp dword [ebp - 0x48], ebx
jne 0x4c78ff
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x44], eax
jne 0x4c78ff
mov ecx, dword [ebp + 0xc]
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x14]
cmp edi, 0x201
push ecx
push dword [ebp - 0xc]
setne dl
mov ecx, esi
push eax
push ebx
add edx, 0xd
call fcn.004c8ef0
cmp edi, 0x204
sete cl
cmp byte [ebp - 0x24], 0
mov byte [ebp - 2], cl
je 0x4c780c
jmp 0x4c786e
mov ebx, dword [ebp + 0x10]
jmp 0x4c780f
or eax, 0xffffffff
cmp edi, 0x201
je 0x4c799c
cmp edi, 0x204
je 0x4c799c
cmp edi, 0x202
je 0x4c796d
cmp edi, 0x205
je 0x4c796d
cmp edi, 0x203
jne 0x4c7957
mov edx, dword [ebp + 0x10]
mov eax, 0xf
jmp 0x4c79cf
cmp edi, 0x206
jne 0x4c7a04
mov edx, dword [ebp + 0x10]
mov eax, 0x10
jmp 0x4c79cf
mov ecx, dword [esi + 0x7c]
mov edx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c7998
cmp dword [esi + 0x80], edx
jne 0x4c7998
mov edi, dword [ebp - 0x10]
cmp dword [esi + 0x84], edi
jne 0x4c7998
xor eax, eax
cmp ecx, 0x201
setne al
add eax, 0xd
xor edi, edi
jmp 0x4c79c7
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x4c79b5
cmp ecx, edi
je 0x4c79b5
xor eax, eax
cmp ecx, 0x201
setne al
add eax, 0xd
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x7c], edi
cmp eax, 0xffffffff
je 0x4c7a04
cmp dword [ebp - 0xc], 0
jne 0x4c7a04
mov ecx, dword [ebp - 0x10]
push dword [esi + 0x8c]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10