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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x54], 0x28
mov edx, dword [ecx + 4]
mov ebx, dword [0x6deb6014]
mov dword [ebp - 0x60], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, esi
movzx edi, al
test byte [0x6dea00b8], 8
jne 0x6de91010
cmp edx, 0xff
jne 0x6de90f21
cmp edi, 1
jbe 0x6de90f68
cmp edx, 0x410
jne 0x6de90fe0
test byte [0x6dea00b8], 8
jne 0x6de910f0
cmp esi, 1
je 0x6de91128
cmp esi, 2
je 0x6de91558
xor eax, eax
test esi, esi
jne 0x6de90ffe
mov dword [ebx], 0
jmp 0x6de90ffe
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x10], 0x10
mov dword [esp + 4], 0x10000003
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetRawInputData]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
sub eax, 0x10
sub esp, 0x14
cmp eax, 0xffffffee
jbe 0x6de91058
test byte [0x6dea00b8], 4
je 0x6de90fe0
mov dword [esp + 0xc], str.Unable_to_read_raw_input_data_n
mov dword [esp + 8], str.di_em_win_wndproc
mov dword [esp + 4], 0x6dea00b8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x64]
lea esi, [esi]
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0xc], str._p__d__Ix__Ix_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.di_em_win_wndproc
mov dword [esp + 4], 0x6dea00b8
mov dword [esp], 3
mov dword [ebp - 0x64], edx
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x64]
jmp 0x6de90f14
cmp dword [ebp - 0x40], 2
je 0x6de91648
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jb 0x6de91092
jmp 0x6de90fe0
cmp eax, 2
je 0x6de910c0
cmp eax, 3
jne 0x6de91088
cmp dword [ebp - 0x40], 1
je 0x6de91668
lea esi, [esi]
inc edi
cmp dword [ebx + 8], edi
jbe 0x6de90fe0
mov ecx, dword [ebx + edi*4 + 0x2c]
mov eax, dword [ecx + 0x4cc]
test eax, eax
je 0x6de91088
mov eax, dword [ecx + 0x6c]
test eax, 0x10000
jne 0x6de91088
movzx eax, al
cmp eax, 0x12
je 0x6de910c0
jbe 0x6de91070
cmp eax, 0x13
je 0x6de9107a
jmp 0x6de91088
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x6de91088
lea eax, [ebp - 0x40]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [ebp - 0x64], edx
call sym._dinput_mouse_rawinput_hook
mov edx, dword [ebp - 0x64]
jmp 0x6de91088
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Processing_hook_change_notification_wparam__Ix__lparam__Ix._n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.di_em_win_wndproc
mov dword [esp + 4], 0x6dea00b8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6de90f3a
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x60], eax
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x68], eax
jmp 0x6de9114c
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]
mov dword [ebx + 8], eax
test edx, edx
jne 0x6de91140
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0x60001
xor edi, edi
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x20001
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0
mov dword [esp], 0x6dea00a0
call eax
mov eax, dword [0x6dea0060]
sub esp, 4
lea esi, [eax - 0x3c]
cmp eax, 0x6dea0060
jne 0x6de911f1
jmp 0x6de914f5
mov eax, dword [esi + 0x51c]
test eax, eax
je 0x6de911e4
mov edx, dword [esi + 0x520]
mov edx, dword [edx + 8]
test edx, edx
je 0x6de911e4
mov dword [ebx + edi*4 + 0x22c], eax
mov dword [ebx + edi*4 + 0x2c], esi
inc edi
mov dword [esp], esi
call sym._dinput_device_internal_addref
cmp edi, 0x7f
ja 0x6de91270
mov eax, dword [esi + 0x3c]
lea esi, [eax - 0x3c]
cmp eax, 0x6dea0060
je 0x6de91270
mov eax, dword [esi + 0x4d0]
test eax, eax
je 0x6de91211
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [esi + 0x4d0], 0
sub esp, 4
test byte [esi + 0x4c0], 4
je 0x6de911b0
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x4c4]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
sub esp, 8
test eax, eax
je 0x6de911b0
mov dword [esp + 0xc], eax
mov eax, dword [0x6deb6010]
mov dword [esp + 4], sym._cbt_hook_proc_12
mov dword [esp + 8], eax
mov dword [esp], 5
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [esi + 0x4d0], eax
sub esp, 0x10
jmp 0x6de911b0
mov eax, dword [0x6dea0060]
mov dword [ebx + 4], edi
lea esi, [eax - 0x3c]
cmp eax, 0x6dea0060
je 0x6de914fc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], ebx
jmp 0x6de912b1
mov eax, dword [esi + 0x3c]
lea esi, [eax - 0x3c]
cmp eax, 0x6dea0060
je 0x6de9133a
mov eax, dword [esi + 0x51c]
test eax, eax
je 0x6de912c8
mov eax, dword [esi + 0x520]
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x6de912a0
movzx eax, byte [esi + 0x6c]
cmp eax, 0x12
je 0x6de91490
ja 0x6de91480
cmp eax, 2
je 0x6de91490
cmp eax, 3
jne 0x6de91310
mov edx, dword [esi + 0x4c0]
test dl, 1
je 0x6de912fb
or dword [ebp - 0x48], 0x200
mov eax, dword [esi + 0x4cc]
test eax, eax
jne 0x6de914b8
inc dword [ebp - 0x60]
lea esi, [esi]
cmp edi, 0x7f
ja 0x6de912a0
mov eax, dword [ebp - 0x5c]
lea ebx, [edi + 1]
mov dword [eax + edi*4 + 0x2c], esi
mov edi, ebx
mov dword [esp], esi
call sym._dinput_device_internal_addref
mov eax, dword [esi + 0x3c]
lea esi, [eax - 0x3c]
cmp eax, 0x6dea0060
jne 0x6de912b1
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
mov dword [ebx + 8], edi
mov dword [esp], 0x6dea00a0
call eax
mov eax, dword [ebp - 0x60]
sub esp, 4
test eax, eax
je 0x6de91620
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x6de916be
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x6de91530
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6de9168d
mov esi, dword [ebp - 0x38]
mov edi, dword [ebx + 0x1c]
test esi, esi
sete dl
test edi, edi
sete al
cmp dl, al
je 0x6de913e0
lea eax, [ebp - 0x40]
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x6de913e0
test byte [0x6dea00b8], 4
je 0x6de913e0
mov dword [esp + 0xc], str.Failed_to__un_register_rawinput_mouse_device._n
mov dword [esp + 8], str.input_thread_update_device_list
mov dword [esp + 4], 0x6dea00b8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
nop
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebx + 0x28]
test eax, eax
sete dl
test ecx, ecx
sete al
cmp dl, al
je 0x6de91444
lea eax, [ebp - 0x4c]
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x6de91444
test byte [0x6dea00b8], 4
je 0x6de91444
mov dword [esp + 0xc], str.Failed_to__un_register_rawinput_mouse_device._n
mov dword [esp + 8], str.input_thread_update_device_list
mov dword [esp + 4], 0x6dea00b8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x28], eax
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x13
je 0x6de912e9
jmp 0x6de91310
mov edx, dword [esi + 0x4c0]
test dl, 1
je 0x6de914a2
or dword [ebp - 0x3c], 0x200
mov ecx, dword [esi + 0x4cc]
test ecx, ecx
jne 0x6de914f0
inc dword [ebp - 0x64]
jmp 0x6de91310
lea ecx, [ebp - 0x4c]
mov eax, dword [ecx + 4]
test dl, 8
je 0x6de914cf
or ah, 1
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x4c0]
mov ebx, eax
or ebx, 0x30
and edx, 1
cmovne eax, ebx
and eax, 0xfffffffe
mov dword [ecx + 4], eax
mov eax, dword [0x6deb6020]
mov dword [ecx + 8], eax
jmp 0x6de91310
lea ecx, [ebp - 0x40]
jmp 0x6de914bb
mov dword [ebx + 4], 0
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x68]
mov dword [esp], 0x6dea00a0
call eax
mov eax, dword [ebx + 0x10]
sub esp, 4
test eax, eax
je 0x6de91530
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0x10], 0
sub esp, 4
lea esi, [esi]
nop
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6de9137b
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0xc], 0
sub esp, 4
jmp 0x6de9137b
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esp], 0x6dea00a0
mov dword [ebp - 0x60], eax
call eax
mov eax, dword [0x6dea0060]
sub esp, 4
mov ecx, dword [eax]
lea esi, [eax - 0x3c]
lea edi, [ecx - 0x3c]
cmp eax, 0x6dea0060
je 0x6de915d3
mov dword [ebp - 0x64], ebx
mov ebx, edi
mov edi, dword [ebp - 0x5c]
jmp 0x6de915a2
mov eax, dword [ebx + 0x3c]
mov esi, ebx
sub eax, 0x3c
cmp ebx, 0x6dea0024
je 0x6de915d0
mov ebx, eax
test byte [esi + 0x4c0], 4
je 0x6de91590
cmp dword [esi + 0x4c4], edi
jne 0x6de91590
test byte [0x6dea00b8], 8
jne 0x6de915f0
xor edx, edx
mov eax, esi
call sym._dinput_device_internal_unacquire
jmp 0x6de91590
mov ebx, dword [ebp - 0x64]
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esp], 0x6dea00a0
mov dword [ebp - 0x68], eax
call eax
sub esp, 4
jmp 0x6de9114c
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._p_window_is_not_foreground___unacquiring__p_n
mov dword [esp + 8], str.handle_foreground_lost
mov dword [esp + 4], 0x6dea00b8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6de915bc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x6de91365
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0x10], 0
sub esp, 4
jmp 0x6de91365
test byte [0x6dea00b8], 4
je 0x6de90fe0
mov dword [ebp - 0x64], edx
mov dword [esp + 0xc], str.Unexpected_HID_rawinput_message_n
jmp 0x6de90fbb
lea eax, [ebp - 0x40]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [ebp - 0x64], edx
call sym._dinput_keyboard_rawinput_hook
mov edx, dword [ebp - 0x64]
jmp 0x6de91088
mov eax, dword [0x6deb6010]
mov dword [esp + 0xc], 0
mov dword [esp + 4], sym._input_thread_ll_hook_proc_12
mov dword [esp + 8], eax
mov dword [esp], 0xe
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [ebx + 0xc], eax
sub esp, 0x10
jmp 0x6de9137b
mov eax, dword [0x6deb6010]
mov dword [esp + 0xc], 0
mov dword [esp + 4], sym._input_thread_ll_hook_proc_12
mov dword [esp + 8], eax
mov dword [esp], 0xd
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [ebx + 0x10], eax
sub esp, 0x10
jmp 0x6de91365