Function at 0x100128b0
Capabilities:
Log keystrokes via application hook
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov edx, dword [ebp + 0x10]
test byte [0x100220b8], 8
mov dword [ebp - 0x48], 0x28
mov edi, dword [ebp + 0xc]
mov ebx, dword [0x10037008]
movzx esi, dl
jne 0x100129e0
cmp edi, 0xff
jne 0x100128e9
cmp esi, 1
jbe 0x10012930
cmp edi, 0x410
jne 0x100129b0
test byte [0x100220b8], 8
jne 0x10012ac8
cmp edx, 1
je 0x10012b08
cmp edx, 2
je 0x10012ee8
xor eax, eax
test edx, edx
jne 0x100129ce
mov dword [ebx], 0
jmp 0x100129ce
lea eax, [ebp - 0x48]
mov ecx, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x34]
mov esi, 0x10000003
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], esi
mov dword [ebp + 0x10], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetRawInputData]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
sub eax, 0x10
sub esp, 0x14
cmp eax, 0xffffffee
jbe 0x10012a28
test byte [0x100220b8], 4
je 0x100129b0
mov edx, str.Unable_to_read_raw_input_data_n
mov dword [esp + 0xc], edx
mov dword [esp], 2
mov eax, str.di_em_win_wndproc
mov dword [esp + 8], eax
mov eax, 0x100220b8
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp + 0x10]
mov esi, esi
lea edi, [edi]
mov dword [esp + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp], 3
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, str._p__d__Ix__Ix_n
mov dword [esp + 0xc], eax
mov eax, str.di_em_win_wndproc
mov dword [esp + 8], eax
mov eax, 0x100220b8
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp + 0x10]
jmp 0x100128dc
cmp dword [ebp - 0x34], 2
je 0x10013040
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jb 0x10012a6a
jmp 0x100129b0
cmp eax, 2
je 0x10012a98
cmp eax, 3
jne 0x10012a60
cmp dword [ebp - 0x34], 1
je 0x10013060
lea esi, [esi]
lea edi, [edi]
inc esi
cmp dword [ebx + 8], esi
jbe 0x100129b0
mov ecx, dword [ebx + esi*4 + 0x2c]
mov eax, dword [ecx + 0x4cc]
test eax, eax
je 0x10012a60
mov eax, dword [ecx + 0x6c]
test eax, 0x10000
jne 0x10012a60
movzx eax, al
cmp eax, 0x12
je 0x10012a98
jbe 0x10012a40
cmp eax, 0x13
nop
je 0x10012a4a
jmp 0x10012a60
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x10012a60
mov dword [esp + 4], edx
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], ecx
mov dword [ebp + 0x10], edx
mov dword [esp + 8], eax
call sym._dinput_mouse_rawinput_hook
mov edx, dword [ebp + 0x10]
jmp 0x10012a60
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 0x14]
mov ecx, 0x100220b8
mov dword [ebp + 0x10], edx
mov edx, str.di_em_win_wndproc
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x14], eax
mov eax, str.Processing_hook_change_notification_wparam__Ix__lparam__Ix._n
mov dword [esp + 0xc], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp + 0x10]
jmp 0x10012902
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x58], eax
jmp 0x10012b2c
mov eax, dword [ebx + eax*4 + 0x2c]
mov dword [esp], eax
call sym._dinput_device_internal_release
mov edx, dword [ebx + 8]
lea eax, [edx - 1]
test edx, edx
mov dword [ebx + 8], eax
jne 0x10012b20
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x4c]
xor esi, esi
mov dword [ebp - 0x40], 0x60001
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0x20001
mov dword [esp], 0x100220a0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], 1
call eax
mov eax, dword [0x10022060]
lea edi, [eax - 0x3c]
sub esp, 4
cmp eax, 0x10022060
jne 0x10012bd2
jmp 0x10012f7c
mov eax, dword [edi + 0x51c]
test eax, eax
je 0x10012bc5
mov edx, dword [edi + 0x520]
mov edx, dword [edx + 8]
test edx, edx
je 0x10012bc5
lea edx, [ebx + esi*4]
inc esi
mov dword [edx + 0x22c], eax
mov dword [edx + 0x2c], edi
mov dword [esp], edi
call sym._dinput_device_internal_addref
cmp esi, 0x7f
ja 0x10012c50
mov eax, dword [edi + 0x3c]
lea edi, [eax - 0x3c]
cmp eax, 0x10022060
je 0x10012c50
mov eax, dword [edi + 0x4d0]
test eax, eax
je 0x10012bf0
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
xor eax, eax
mov dword [edi + 0x4d0], eax
sub esp, 4
test byte [edi + 0x4c0], 4
je 0x10012b90
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x4c4]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
sub esp, 8
test eax, eax
je 0x10012b90
mov dword [esp + 0xc], eax
mov eax, dword [0x100370c4]
mov ecx, sym._cbt_hook_proc_12
mov dword [esp + 4], ecx
mov dword [esp], 5
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [edi + 0x4d0], eax
sub esp, 0x10
jmp 0x10012b90
mov dword [ebx + 4], esi
mov edx, dword [0x10022060]
lea eax, [edx - 0x3c]
cmp edx, 0x10022060
je 0x10012f83
mov dword [ebp - 0x50], 0
mov edi, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], ebx
jmp 0x10012c91
mov eax, dword [edi + 0x3c]
lea edi, [eax - 0x3c]
cmp eax, 0x10022060
je 0x10012d1a
mov eax, dword [edi + 0x51c]
test eax, eax
je 0x10012ca8
mov eax, dword [edi + 0x520]
mov eax, dword [eax + 8]
test eax, eax
jne 0x10012c80
movzx eax, byte [edi + 0x6c]
cmp eax, 0x12
je 0x10012e80
ja 0x10012e70
cmp eax, 2
je 0x10012e80
cmp eax, 3
jne 0x10012cf0
mov ebx, dword [edi + 0x4c0]
test bl, 1
je 0x10012cdb
or dword [ebp - 0x3c], 0x200
mov eax, dword [edi + 0x4cc]
test eax, eax
jne 0x10012ea8
inc dword [ebp - 0x50]
lea esi, [esi]
cmp esi, 0x7f
ja 0x10012c80
mov eax, dword [ebp - 0x4c]
lea ebx, [esi + 1]
mov dword [eax + esi*4 + 0x2c], edi
mov esi, ebx
mov dword [esp], edi
call sym._dinput_device_internal_addref
mov eax, dword [edi + 0x3c]
lea edi, [eax - 0x3c]
cmp eax, 0x10022060
jne 0x10012c91
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
mov dword [ebx + 8], esi
mov dword [esp], 0x100220a0
call eax
mov eax, dword [ebp - 0x50]
sub esp, 4
test eax, eax
je 0x10013018
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x100130b5
mov edx, dword [ebp - 0x54]
mov eax, dword [ebx + 0xc]
test edx, edx
je 0x10012fc0
test eax, eax
je 0x10013085
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebx + 0x1c]
test esi, esi
sete dl
test edi, edi
sete al
cmp dl, al
je 0x10012dd0
mov edx, 0xc
mov ecx, 1
mov dword [esp + 8], edx
lea eax, [ebp - 0x34]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x10012dd0
test byte [0x100220b8], 4
je 0x10012dd0
mov dword [esp], 2
mov eax, str.Failed_to__un_register_rawinput_mouse_device._n
mov dword [esp + 0xc], eax
mov eax, str.input_thread_update_device_list
mov dword [esp + 8], eax
mov eax, 0x100220b8
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_3
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x38]
test eax, eax
mov eax, dword [ebx + 0x28]
sete dl
test eax, eax
sete al
cmp dl, al
je 0x10012e39
lea eax, [ebp - 0x40]
mov esi, 0xc
mov dword [esp + 8], esi
mov edi, 1
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x10012e39
test byte [0x100220b8], 4
je 0x10012e39
mov eax, str.Failed_to__un_register_rawinput_mouse_device._n
mov edx, str.input_thread_update_device_list
mov dword [esp + 0xc], eax
mov ecx, 0x100220b8
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x28], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp eax, 0x13
je 0x10012cc9
jmp 0x10012cf0
mov ebx, dword [edi + 0x4c0]
test bl, 1
je 0x10012e92
or dword [ebp - 0x30], 0x200
mov eax, dword [edi + 0x4cc]
test eax, eax
jne 0x10012ee0
inc dword [ebp - 0x54]
jmp 0x10012cf0
lea ecx, [ebp - 0x40]
test bl, 8
mov eax, dword [ecx + 4]
je 0x10012ec1
or eax, 0x100
mov dword [ecx + 4], eax
mov ebx, dword [edi + 0x4c0]
test bl, 1
je 0x10012ec9
or eax, 0x30
and eax, 0xfffffffe
mov dword [ecx + 4], eax
mov eax, dword [0x10037014]
mov dword [ecx + 8], eax
jmp 0x10012cf0
lea ecx, [ebp - 0x34]
jmp 0x10012eab
mov dword [esp], 0x100220a0
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x4c], eax
call eax
mov eax, dword [0x10022060]
mov ecx, dword [eax]
lea esi, [eax - 0x3c]
sub esp, 4
cmp eax, 0x10022060
lea edi, [ecx - 0x3c]
je 0x10012f63
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebp + 0x14]
jmp 0x10012f32
mov eax, dword [edi + 0x3c]
mov esi, edi
sub eax, 0x3c
cmp edi, 0x10022024
je 0x10012f60
mov edi, eax
test byte [esi + 0x4c0], 4
je 0x10012f20
cmp dword [esi + 0x4c4], ebx
jne 0x10012f20
test byte [0x100220b8], 8
jne 0x10012fe0
xor edx, edx
mov eax, esi
call sym._dinput_device_internal_unacquire
jmp 0x10012f20
mov ebx, dword [ebp - 0x50]
mov dword [esp], 0x100220a0
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x58], eax
call eax
sub esp, 4
jmp 0x10012b2c
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x58]
mov dword [esp], 0x100220a0
call eax
mov eax, dword [ebx + 0x10]
sub esp, 4
test eax, eax
je 0x100130e5
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], 0
sub esp, 4
lea esi, [esi]
lea edi, [edi]
test eax, eax
je 0x10012d5b
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0xc], 0
sub esp, 4
jmp 0x10012d5b
mov dword [esp + 0x14], esi
mov eax, str._p_window_is_not_foreground___unacquiring__p_n
mov dword [esp + 0xc], eax
mov eax, str.handle_foreground_lost
mov dword [esp + 8], eax
mov eax, 0x100220b8
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x10012f50
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10012d45
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0x10], 0
sub esp, 4
jmp 0x10012d45
test byte [0x100220b8], 4
je 0x100129b0
mov dword [ebp + 0x10], edx
mov eax, str.Unexpected_HID_rawinput_message_n
mov dword [esp + 0xc], eax
jmp 0x10012986
mov dword [esp + 4], edx
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], ecx
mov dword [ebp + 0x10], edx
mov dword [esp + 8], eax
call sym._dinput_keyboard_rawinput_hook
mov edx, dword [ebp + 0x10]
jmp 0x10012a60
mov dword [esp], 0xe
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [0x100370c4]
mov dword [esp + 8], eax
mov eax, sym._input_thread_ll_hook_proc_12
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [ebx + 0xc], eax
sub esp, 0x10
jmp 0x10012d5b
mov eax, dword [0x100370c4]
xor ecx, ecx
mov esi, sym._input_thread_ll_hook_proc_12
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], 0xd
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [ebx + 0x10], eax
sub esp, 0x10
jmp 0x10012d45
mov eax, dword [ebx + 0xc]
jmp 0x10012fc0