Function at 0x413dc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4edb7b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp + 8]
shr eax, 0xf
and eax, 1
cmp dword [esi], 0
mov dword [esp + 0x18], eax
jne 0x413e3d
push 0x38
call fcn.004c8f3d
mov edi, eax
add esp, 4
test edi, edi
je 0x413e27
push 0x38
push 0
push edi
call fcn.004d1df0
add esp, 0xc
mov eax, edi
jmp 0x413e29
xor eax, eax
push 0x38
push 0
push eax
mov dword [esi], eax
call fcn.004d1df0
mov eax, dword [esi]
add esp, 0xc
mov dword [eax + 0x34], esi
mov ebx, dword [esi]
test ebx, ebx
je 0x413f56
push 0xc
call fcn.004c8f3d
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
xor esi, esi
mov dword [esp + 0x30], esi
cmp edi, esi
je 0x413e87
push 0x30
mov dword [edi + 8], esi
mov dword [edi], esi
call fcn.004c8f3d
add esp, 4
push 0x30
push esi
push eax
mov dword [edi + 4], eax
call fcn.004d1df0
mov ecx, dword [edi + 4]
add esp, 0xc
mov dword [ecx + 0x2c], edi
jmp 0x413e89
xor edi, edi
mov esi, edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x14], edi
call fcn.00417100
mov esi, dword [edi + 4]
mov eax, dword [ebp + 0xc]
or dword [esi], 0x2000
mov edx, dword [ebp + 0x18]
mov dword [esi + 4], edx
test eax, eax
je 0x413eb5
mov dword [eax + 0x1c], edx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x14], eax
test ecx, ecx
je 0x413ec3
cmp ecx, eax
je 0x413ee0
test eax, eax
je 0x413eca
inc dword [eax + 0x40]
test ecx, ecx
je 0x413ee0
add dword [ecx + 0x40], 0xffffffff
jne 0x413ee0
push ecx
call fcn.00416e30
mov edx, dword [ebp + 0x18]
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
and eax, 1
and ecx, 0xffffffbf
mov dword [esp + 0x20], eax
shl eax, 6
or ecx, eax
and ecx, 0xfffffffd
or ecx, 0x109
mov dword [esi], ecx
mov dword [esi + 0x1c], esi
mov eax, dword [edi]
mov dword [esi + 0x18], eax
mov dword [edi + 8], ebx
mov dword [ebx], esi
or dword [esi], 0x20
test dword [esi], 0x100
mov dword [esp + 0x18], pe_nt_image_headers32
jne 0x413f30
push 0
push 1
push 0x211
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00417160
test eax, eax
je 0x413f53
mov eax, dword [edi]
test eax, eax
je 0x413f53
push 0
push 1
push 0x1e2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x413f81
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x413f72
test dword [eax + 4], 0x800
je 0x413f72
and dword [eax + 4], 0xfffff7ff
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esp + 0x18], 1
xor edi, edi
jmp 0x41402e
mov ecx, dword [esi]
movzx edx, ax
shr eax, 0x10
mov dword [esp + 0x1c], eax
test cl, 2
mov eax, 0
setne al
push esi
push 0x182
inc eax
shl eax, 0x15
xor eax, ecx
and eax, 0x3600000
xor eax, ecx
mov ecx, dword [esp + 0x24]
or eax, 0x800000
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
push edx
call fcn.004141c0
or dword [esi], 0x2000000
add esp, 0x10
push 0x251
mov edx, eax
push 0
shr edx, 0x10
push 0
movsx ecx, dx
movsx edx, ax
mov eax, dword [edi]
push ecx
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x20]
and ecx, 0xfffffffb
lea eax, [edx*4]
or ecx, eax
push edi
mov dword [ebx + 4], ecx
call fcn.00417df0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 8]
push esi
push ecx
mov eax, ebx
call fcn.004148a0
mov esi, dword [ebp + 8]
mov edi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41404c
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
test ebx, ebx
je 0x414079
mov ebx, dword [esi]
test ebx, ebx
je 0x414079
cmp dword [ebx + 0x18], 0
jne 0x414079
mov eax, dword [ebx]
test eax, eax
je 0x41406a
push eax
mov ecx, esi
call fcn.00414c70
push ebx
call fcn.004c8f17
add esp, 4
mov dword [esi], 0
cmp dword [esp + 0x18], 0
mov eax, edi
jne 0x414087
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14