Function at 0x6de92da0
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 [0x6deb8008]
mov dword [ebp - 0x60], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, esi
movzx edi, al
test byte [0x6dea20b8], 8
jne 0x6de92ee0
cmp edx, 0xff
jne 0x6de92df1
cmp edi, 1
jbe 0x6de92e38
cmp edx, 0x410
jne 0x6de92eb0
test byte [0x6dea20b8], 8
jne 0x6de92fc0
cmp esi, 1
je 0x6de92ff8
cmp esi, 2
je 0x6de933c8
xor eax, eax
test esi, esi
jne 0x6de92ece
mov dword [ebx], 0
jmp 0x6de92ece
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 0x6de92f28
test byte [0x6dea20b8], 4
je 0x6de92eb0
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], 0x6dea20b8
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], 0x6dea20b8
mov dword [esp], 3
mov dword [ebp - 0x64], edx
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x64]
jmp 0x6de92de4
cmp dword [ebp - 0x40], 2
je 0x6de93520
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jb 0x6de92f64
jmp 0x6de92eb0
cmp eax, 2
je 0x6de92f90
cmp eax, 3
jne 0x6de92f58
cmp dword [ebp - 0x40], 1
je 0x6de93540
lea esi, [esi]
add edi, 1
cmp dword [ebx + 8], edi
jbe 0x6de92eb0
mov ecx, dword [ebx + edi*4 + 0x2c]
mov eax, dword [ecx + 0x4cc]
test eax, eax
je 0x6de92f58
mov eax, dword [ecx + 0x6c]
test eax, 0x10000
jne 0x6de92f58
movzx eax, al
cmp eax, 0x12
je 0x6de92f90
jbe 0x6de92f40
cmp eax, 0x13
je 0x6de92f4a
jmp 0x6de92f58
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x6de92f58
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 0x6de92f58
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], 0x6dea20b8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6de92e0a
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 0x6de9301c
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 0x6de93010
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], 0
xor edi, edi
mov dword [ebp - 0x4c], 0x60001
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0x20001
mov dword [ebp - 0x3c], 1
mov dword [esp], 0x6dea20a0
call eax
mov eax, dword [0x6dea2060]
sub esp, 4
lea esi, [eax - 0x3c]
cmp eax, 0x6dea2060
jne 0x6de930c4
jmp 0x6de9345c
mov eax, dword [esi + 0x51c]
test eax, eax
je 0x6de930b7
mov edx, dword [esi + 0x520]
mov edx, dword [edx + 8]
test edx, edx
je 0x6de930b7
lea edx, [ebx + edi*4]
add edi, 1
mov dword [edx + 0x22c], eax
mov dword [edx + 0x2c], esi
mov dword [esp], esi
call sym._dinput_device_internal_addref
cmp edi, 0x7f
ja 0x6de93140
mov eax, dword [esi + 0x3c]
lea esi, [eax - 0x3c]
cmp eax, 0x6dea2060
je 0x6de93140
mov eax, dword [esi + 0x4d0]
test eax, eax
je 0x6de930e4
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 0x6de93080
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 0x6de93080
mov dword [esp + 0xc], eax
mov eax, dword [0x6deb80e8]
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 0x6de93080
mov eax, dword [0x6dea2060]
mov dword [ebx + 4], edi
lea esi, [eax - 0x3c]
cmp eax, 0x6dea2060
je 0x6de93463
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], ebx
jmp 0x6de93181
mov eax, dword [esi + 0x3c]
lea esi, [eax - 0x3c]
cmp eax, 0x6dea2060
je 0x6de9320a
mov eax, dword [esi + 0x51c]
test eax, eax
je 0x6de93198
mov eax, dword [esi + 0x520]
mov eax, dword [eax + 8]
test eax, eax
jne 0x6de93170
movzx eax, byte [esi + 0x6c]
cmp eax, 0x12
je 0x6de93360
ja 0x6de93350
cmp eax, 2
je 0x6de93360
cmp eax, 3
jne 0x6de931e0
mov edx, dword [esi + 0x4c0]
test dl, 1
je 0x6de931cb
or dword [ebp - 0x48], 0x200
mov eax, dword [esi + 0x4cc]
test eax, eax
jne 0x6de93388
add dword [ebp - 0x60], 1
lea esi, [esi]
cmp edi, 0x7f
ja 0x6de93170
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, 0x6dea2060
jne 0x6de93181
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
mov dword [ebx + 8], edi
mov dword [esp], 0x6dea20a0
call eax
mov esi, dword [ebp - 0x60]
sub esp, 4
test esi, esi
je 0x6de934f8
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x6de93596
mov edx, dword [ebp - 0x64]
mov eax, dword [ebx + 0xc]
test edx, edx
je 0x6de934a0
test eax, eax
je 0x6de93565
mov esi, dword [ebp - 0x38]
mov edi, dword [ebx + 0x1c]
test esi, esi
sete dl
test edi, edi
sete al
cmp dl, al
je 0x6de932b0
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 0x6de932b0
test byte [0x6dea20b8], 4
je 0x6de932b0
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], 0x6dea20b8
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 0x6de93314
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 0x6de93314
test byte [0x6dea20b8], 4
je 0x6de93314
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], 0x6dea20b8
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 0x6de931b9
jmp 0x6de931e0
mov edx, dword [esi + 0x4c0]
test dl, 1
je 0x6de93372
or dword [ebp - 0x3c], 0x200
mov eax, dword [esi + 0x4cc]
test eax, eax
jne 0x6de933c0
add dword [ebp - 0x64], 1
jmp 0x6de931e0
lea ecx, [ebp - 0x4c]
mov eax, dword [ecx + 4]
test dl, 8
je 0x6de9339f
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 [0x6deb8014]
mov dword [ecx + 8], eax
jmp 0x6de931e0
lea ecx, [ebp - 0x40]
jmp 0x6de9338b
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esp], 0x6dea20a0
mov dword [ebp - 0x60], eax
call eax
mov eax, dword [0x6dea2060]
sub esp, 4
mov edi, dword [eax]
lea esi, [eax - 0x3c]
sub edi, 0x3c
cmp eax, 0x6dea2060
je 0x6de93443
mov dword [ebp - 0x64], ebx
mov ebx, edi
mov edi, dword [ebp - 0x5c]
jmp 0x6de93412
mov eax, dword [ebx + 0x3c]
mov esi, ebx
sub eax, 0x3c
cmp ebx, 0x6dea2024
je 0x6de93440
mov ebx, eax
test byte [esi + 0x4c0], 4
je 0x6de93400
cmp dword [esi + 0x4c4], edi
jne 0x6de93400
test byte [0x6dea20b8], 8
jne 0x6de934c0
xor edx, edx
mov eax, esi
call sym._dinput_device_internal_unacquire
jmp 0x6de93400
mov ebx, dword [ebp - 0x64]
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esp], 0x6dea20a0
mov dword [ebp - 0x68], eax
call eax
sub esp, 4
jmp 0x6de9301c
mov dword [ebx + 4], 0
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x68]
mov dword [esp], 0x6dea20a0
call eax
mov eax, dword [ebx + 0x10]
sub esp, 4
test eax, eax
je 0x6de935c7
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0xc]
sub esp, 4
lea esi, [esi]
lea edi, [edi]
test eax, eax
je 0x6de9324b
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0xc], 0
sub esp, 4
jmp 0x6de9324b
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], 0x6dea20b8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6de93430
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x6de93235
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov dword [ebx + 0x10], 0
sub esp, 4
jmp 0x6de93235
test byte [0x6dea20b8], 4
je 0x6de92eb0
mov dword [ebp - 0x64], edx
mov dword [esp + 0xc], str.Unexpected_HID_rawinput_message_n
jmp 0x6de92e8b
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 0x6de92f58
mov eax, dword [0x6deb80e8]
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 0x6de9324b
mov eax, dword [0x6deb80e8]
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 0x6de93235
mov eax, dword [ebx + 0xc]
jmp 0x6de934a0