Function at 0x49ece0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x50ac94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xd8]
push 0x3ff
push eax
lea ecx, [ebp - 0x804]
push ecx
mov dword [ebp - 0x814], edi
call fcn.004b24a5
add esp, 0xc
xor edx, edx
lea eax, [ebp - 0x804]
mov word [ebp - 6], dx
lea edx, [eax + 2]
jmp 0x49ed30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ed30
movzx ebx, word [edi + 0x508]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
add edx, 0x1b
and edx, 0xfffffffc
xor ecx, ecx
mov dword [ebp - 0x80c], eax
test ebx, ebx
jle 0x49edb2
lea eax, [edi + 4]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x808]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
lea esi, [eax + 2]
mov dword [ebp - 0x810], esi
jmp 0x49ed80
mov si, word [eax]
add eax, 2
test si, si
jne 0x49ed80
sub eax, dword [ebp - 0x810]
lea esi, [ebx - 1]
sar eax, 1
lea eax, [eax + eax + 0x1a]
cmp ecx, esi
je 0x49eda4
add eax, 3
and eax, 0xfffffffc
add dword [ebp - 0x808], 4
inc ecx
add edx, eax
cmp ecx, ebx
jl 0x49ed64
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x834], esi
test esi, esi
je 0x49ede1
push esi
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ebx, eax
mov dword [ebp - 0x838], ebx
test ebx, ebx
jne 0x49edf7
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004add11
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x500]
mov dword [ebx], ecx
mov edx, dword [edi + 0x504]
mov dword [ebx + 4], edx
mov eax, dword [edi + 0x508]
mov dword [ebx + 8], eax
mov ecx, dword [edi + 0x50c]
mov dword [ebx + 0xc], ecx
mov dx, word [edi + 0x510]
xor eax, eax
mov word [ebx + 0x10], dx
mov word [ebx + 0x12], ax
mov eax, dword [ebp - 0x80c]
xor ecx, ecx
lea esi, [ebx + 0x12]
add esi, 2
mov word [esi], cx
add eax, 0x64
mov edx, 2
add esi, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049f8a9
mov ecx, dword [ebp - 0x80c]
add ecx, ecx
add ecx, 2
push ecx
push 0
push eax
mov dword [ebp - 0x808], eax
call fcn.004aefb0
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x808]
add eax, eax
push eax
lea eax, [ebp - 0x804]
push eax
push ecx
call fcn.004ae900
mov eax, dword [ebp - 0x80c]
mov edx, dword [ebp - 0x808]
lea eax, [eax + eax + 2]
push eax
push edx
push esi
mov dword [ebp - 0x810], eax
call fcn.004ae900
mov eax, dword [ebp - 0x808]
add esi, dword [ebp - 0x810]
push eax
call fcn.0049f8b4
xor ecx, ecx
add esp, 0x2c
mov dword [ebp - 0x808], 0
cmp cx, word [edi + 0x508]
jae 0x49efd0
add edi, 4
mov dword [ebp - 0x80c], edi
jmp 0x49eee9
mov edi, dword [ebp - 0x80c]
mov eax, dword [edi]
mov edx, dword [eax + 4]
add eax, 4
add esi, 3
and esi, 0xfffffffc
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
movzx edx, word [eax + 0x10]
mov word [esi + 0x10], dx
add esi, 0x12
mov eax, 0xffff
mov word [esi], ax
mov ecx, dword [edi]
movzx edx, word [ecx + 0x18]
add esi, 2
mov word [esi], dx
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
add esi, 2
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x49ef35
sub eax, ecx
sar eax, 1
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 0x65]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049f8a9
mov edi, eax
lea ebx, [ebx + ebx + 2]
lea eax, [ebx + 2]
push eax
push 0
push edi
call fcn.004aefb0
mov ecx, dword [ebp - 0x80c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push ebx
push eax
push edi
call fcn.004ae900
push ebx
push edi
push esi
call fcn.004ae900
push edi
add esi, ebx
call fcn.0049f8b4
mov edx, dword [ebp - 0x814]
mov eax, dword [ebp - 0x808]
add dword [ebp - 0x80c], 4
xor ecx, ecx
mov word [esi], cx
movzx ecx, word [edx + 0x508]
inc eax
add esp, 0x2c
add esi, 2
cmp eax, ecx
mov dword [ebp - 0x808], eax
jl 0x49eee3
mov ebx, dword [ebp - 0x838]
mov edi, edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [edi + 0xb8]
push edi
push 0x49de60
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov ebx, eax
test ebx, ebx
je 0x49f112
mov eax, dword [edi + 0xb8]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
cmp dword [edi + 0xb0], eax
jne 0x49f0d5
mov edi, edi
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x49f0b9
mov eax, dword [ebp - 0x82c]
cmp eax, 0x12
je 0x49f0de
cmp eax, 0x100
jne 0x49f08b
mov esi, dword [ebp - 0x828]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x49f08b
push esi
push edi
mov ecx, ebx
call fcn.0049ea00
test eax, eax
jne 0x49f0c8
lea edx, [ebp - 0x830]
push edx
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x49f0c8
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x49f0c8
cmp dword [edi + 0xb0], 0
jne 0x49f0d5
call dword [sym.imp.USER32.dll_WaitMessage]
cmp dword [edi + 0xb0], 0
je 0x49f040
cmp dword [ebp - 0x82c], 0x12
jne 0x49f0eb
mov edx, dword [ebp - 0x828]
push edx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [edi + 0xb8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49f10b
mov ecx, dword [edi + 0xb8]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [ebp - 0x834]
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi + 0x88]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004add11
mov esp, ebp
pop ebp
ret