Function at 0x402753
Capabilities:
Log keystrokes

Disassembly:
mov eax, 0x4bc1f4
call fcn.00483820
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x4f1070
push edi
lea ecx, [esi + 0x144]
call fcn.0049b93c
push edi
lea ecx, [esi + 0xc8]
call fcn.0049ae34
xor eax, eax
push eax
push eax
push 0x188
mov dword [esi + 0x15c], eax
push dword [esi + 0x120]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
lea edi, [esi + 0x140]
cmp ebx, 0xffffffff
je 0x4027bd
lea eax, [ebx + ebx*2]
mov ecx, edi
push dword [eax*4 + 0x4ec964]
call fcn.0049be1e
jmp 0x4027c9
push 0x4f1070
mov ecx, edi
call fcn.0049b93c
push 0xa
mov ecx, edi
call fcn.0049bc7a
cmp eax, 0xffffffff
je 0x4027fb
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00493848
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0049b8ec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0049b7ff
xor edi, edi
push edi
push edi
push 0x184
push dword [esi + 0xa8]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esi + 0x174]
push edi
call fcn.00496010
mov eax, dword [0x4eec8c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x14c], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
jle 0x4029d6
lea eax, [ebx + ebx*2]
lea eax, [eax*4 + 0x4ec964]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x148]
mov ecx, dword [ebp - 0x20]
movzx eax, word [eax + edi + 4]
cmp eax, dword [ecx]
jne 0x4029bf
push 0x4f1070
lea ecx, [ebp - 0x10]
call fcn.0049b93c
mov eax, dword [esi + 0x148]
test byte [eax + edi], 0x10
je 0x40288c
push 0x4e9538
lea ecx, [ebp - 0x10]
call fcn.0049b93c
mov eax, dword [esi + 0x148]
test byte [eax + edi], 8
je 0x4028a5
push 0x4e9530
lea ecx, [ebp - 0x10]
call fcn.0049bb8f
mov eax, dword [esi + 0x148]
test byte [eax + edi], 4
je 0x4028be
push 0x4e9528
lea ecx, [ebp - 0x10]
call fcn.0049bb8f
mov eax, dword [esi + 0x148]
add eax, edi
test byte [eax], 1
je 0x402988
push str.Unknown_Key
lea ecx, [ebp - 0x14]
call fcn.0049b93c
mov al, byte [0x4e92e0]
xor ebx, ebx
test al, al
je 0x40291f
mov ecx, dword [esi + 0x148]
mov dx, word [ecx + edi + 2]
mov ecx, 0x4e92e0
movzx ax, al
cmp dx, ax
je 0x40290d
mov al, byte [ecx + 6]
add ecx, 6
inc ebx
test al, al
jne 0x4028f7
jmp 0x40291f
lea eax, [ebx + ebx*2]
lea ecx, [ebp - 0x14]
push dword [eax*2 + 0x4e92e2]
call fcn.0049be1e
lea eax, [ebx + ebx*2]
cmp byte [eax*2 + 0x4e92e0], 0
jne 0x40297a
mov eax, dword [esi + 0x148]
push 1
push 2
movzx eax, word [eax + edi + 2]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00493471
push 0x4f1070
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
call fcn.0048383f
pop ecx
test eax, eax
pop ecx
je 0x40296e
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0049b8ec
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0049b7ff
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.0049bbcb
jmp 0x402994
mov al, byte [eax + 2]
lea ecx, [ebp - 0x10]
push eax
call fcn.0049bbb6
push dword [ebp - 0x10]
push 0
push 0x180
push dword [esi + 0xa8]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x18]
mov eax, dword [esi + 0x17c]
lea ecx, [esi + 0x174]
push eax
call fcn.00496123
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add edi, 6
cmp eax, dword [esi + 0x14c]
jl 0x402850
xor edi, edi
mov ecx, esi
call fcn.00402f17
push edi
mov ecx, esi
call fcn.0049a257
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0049b7ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049b7ff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret