Function at 0x6de96010
Capabilities:
Write file on windows

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, 0x98
mov ebx, dword [ecx]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movzx eax, word [edi + 0xb72]
mov word [ebp - 0x70], ax
mov eax, dword [edi + 0x93c]
mov dword [ebp - 0x6c], eax
mov eax, edi
test byte [0x6dea2114], 8
jne 0x6de96168
add eax, 0x20
mov esi, 0x80040205
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x18]
sub esp, 4
cmp dword [edx + 0x4c8], 1
je 0x6de960b0
add edx, 0x20
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
test byte [edx + 0x4c0], 1
je 0x6de9608b
mov eax, dword [ebx + 0x148]
mov esi, 0x80040206
and eax, 0x160
cmp eax, 0x160
jne 0x6de9608b
movzx eax, word [ebp - 0x70]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6de961a0
mov esi, dword [ebx + 0x144]
xor eax, eax
test esi, esi
sete al
mov esi, eax
test esi, esi
jne 0x6de969d8
movzx eax, word [ebx + 8]
mov edx, dword [ebx + 0x144]
cmp ax, 0x34
ja 0x6de9679d
cmp ax, 0x2f
ja 0x6de96ab9
cmp ax, 0x26
je 0x6de96a1f
cmp ax, 0x27
jne 0x6de96f27
test dh, 1
jne 0x6de96e6d
lea esi, [esi]
test byte [ebx + 0x148], 0x80
je 0x6de96150
test dl, 0x80
jne 0x6de96660
lea esi, [esi]
test edx, edx
jne 0x6de962c0
mov edx, dword [ebx + 0x18]
xor esi, esi
jmp 0x6de9608b
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.iface__p_n
mov dword [esp + 8], str.hid_joystick_effect_Download
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [ebx + 0x18]
jmp 0x6de9606b
movzx ecx, word [ebx + 8]
mov word [ebp - 0x66], cx
mov ecx, dword [edx + 0xdc4]
test ecx, ecx
je 0x6de9629b
movzx eax, word [edx + 0xb74]
mov dword [ebp - 0x74], edx
mov dword [esp + 0x10], eax
mov dword [ebp - 0x70], eax
mov eax, dword [edx + 0xbb4]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x954]
mov dword [esp + 8], eax
movzx eax, byte [edx + 0xddc]
mov dword [esp], 2
mov dword [esp + 4], eax
call sym._HidP_InitializeReportForID_20
mov edx, dword [ebp - 0x74]
sub esp, 0x14
cmp eax, 0x110000
mov esi, eax
je 0x6de96c60
mov edx, dword [ebx + 0x18]
test esi, esi
js 0x6de9608b
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x158]
mov edx, dword [edx + 0x954]
cmp byte [ecx], 0
jne 0x6de96ba2
mov ecx, dword [ebx + 0x15c]
cmp byte [ecx], 0
jne 0x6de96c01
mov esi, dword [ebp - 0x7c]
mov dword [esp + 0x1c], esi
mov ecx, dword [ebx + 0x154]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x22
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
mov esi, eax
cmp eax, 0x110000
jne 0x6de960f1
jmp 0x6de960f9
cmp eax, 0xff
je 0x6de96f32
movzx ecx, byte [edx + eax + 0xbc0]
mov esi, eax
add eax, 1
test cl, cl
jne 0x6de96290
mov byte [edx + esi + 0xbc0], 1
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0xc], eax
jmp 0x6de96213
mov eax, dword [ebx + 0x114]
mov ecx, dword [edi + 0xd2c]
mov edx, dword [ebx + 0x154]
mov dword [esp], eax
mov eax, ebx
call sym._set_parameter_value_us
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x11c]
mov ecx, dword [ebx + 0x154]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xd30]
mov dword [esp], esi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x118]
mov ecx, dword [edi + 0xd34]
mov edx, dword [ebx + 0x154]
mov dword [esp], eax
mov eax, ebx
call sym._set_parameter_value_us
mov eax, dword [ebx + 0x140]
mov ecx, dword [edi + 0xd38]
mov edx, dword [ebx + 0x154]
mov dword [esp], eax
mov eax, ebx
call sym._set_parameter_value_us
mov eax, dword [ebx + 0x124]
mov ecx, dword [edi + 0xd40]
mov edx, dword [ebx + 0x154]
mov dword [esp], eax
mov eax, ebx
call sym._set_parameter_value_us
mov eax, 0x56
mov dword [ebp - 0x64], 1
mov word [ebp - 0x66], ax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x154]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x954]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x64]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x66]
mov dword [esp + 0xc], eax
mov dword [esp], 1
call sym._HidP_SetUsages_32
sub esp, 0x20
cmp eax, 0x110000
je 0x6de963cd
test byte [0x6dea2114], 4
jne 0x6de96770
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebx + 0x10c]
call sym._convert_directions_to_spherical.isra.0
mov eax, dword [ebx + 0x128]
lea edx, [eax - 1]
mov eax, edx
jmp 0x6de9640e
mov ecx, dword [ebx + 0x12c]
mov ecx, dword [ecx + eax*4]
sub eax, 1
cmp cx, 0x30
je 0x6de96508
cmp eax, 0xffffffff
jne 0x6de963f8
jmp 0x6de9642e
mov eax, dword [ebx + 0x12c]
mov eax, dword [eax + edx*4]
sub edx, 1
cmp ax, 0x31
je 0x6de96508
cmp edx, 0xffffffff
jne 0x6de96418
test byte [0x6dea2114], 4
jne 0x6de969e0
mov eax, dword [ebx + 0x154]
mov dword [ebp - 0x70], eax
lea esi, [esi]
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x954]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x120]
mov dword [esp + 0xc], 0x53
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x6de964b0
test byte [0x6dea2114], 4
jne 0x6de96740
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x154]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x6de96a12
mov dword [ebx + 0x144], 0
mov eax, dword [ebx + 0x18]
and dword [eax + 0x930], 0xfffffffe
jmp 0x6de96158
mov esi, dword [edi + 0xcf8]
mov eax, dword [ebx + 0x154]
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0x70], eax
mov eax, esi
cmovbe eax, dword [ebp - 0x34]
xor ecx, ecx
test eax, eax
je 0x6de96450
mov dword [ebp - 0x74], ebx
mov ebx, ecx
mov dword [ebp - 0x78], edi
jmp 0x6de9658e
test byte [0x6dea2114], 4
jne 0x6de96600
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov eax, dword [eax + 0x18]
movzx esi, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp], edi
mov dword [esp + 4], edx
mov edx, esi
call sym._set_report_value.isra.0
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [eax + 0xcf8]
add ebx, 1
mov eax, esi
cmp dword [ebp - 0x34], esi
cmovbe eax, dword [ebp - 0x34]
cmp eax, ebx
jbe 0x6de965f8
mov ecx, dword [ebp + ebx*4 - 0x60]
test ebx, ebx
mov edi, dword [ebp - 0x78]
lea eax, [ecx + 0x2328]
cmove ecx, eax
mov eax, esi
sub eax, ebx
mov edi, dword [edi + eax*4 + 0xd10]
mov eax, 0xe90452d5
mul ecx
shr edx, 0xf
imul edx, edx, 0x8ca0
sub ecx, edx
mov edx, ecx
test edi, edi
je 0x6de9657e
mov eax, dword [edi + 0x60]
cmp eax, 0x14
jne 0x6de96538
mov ecx, dword [edi + 0x64]
cmp ecx, 0xfffffffe
jge 0x6de96638
add ecx, 1
lea esi, [esi]
lea edx, [edx + edx*4]
add ecx, 1
add edx, edx
cmp ecx, 0xffffffff
jne 0x6de965e0
jmp 0x6de96545
mov ebx, dword [ebp - 0x74]
jmp 0x6de96450
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unknown_angle_unit_caps__lx_n
mov dword [esp + 8], str.set_parameter_value_angle
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 2
mov dword [ebp - 0x80], ecx
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x80]
jmp 0x6de96545
je 0x6de96545
nop
mov eax, 0xcccccccd
sub ecx, 1
mul edx
shr edx, 3
cmp ecx, 0xfffffffe
jne 0x6de96640
jmp 0x6de96545
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xec]
mov ecx, dword [ebx + 0x15c]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xd64]
mov dword [esp], esi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0xf0]
mov ecx, dword [edi + 0xd68]
mov edx, dword [ebx + 0x15c]
mov dword [esp], eax
mov eax, ebx
call sym._set_parameter_value_us
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xf4]
mov ecx, dword [ebx + 0x15c]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xd6c]
mov dword [esp], esi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0xf8]
mov ecx, dword [edi + 0xd70]
mov edx, dword [ebx + 0x15c]
mov dword [esp], eax
mov eax, ebx
call sym._set_parameter_value_us
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x15c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x6de96a12
mov edx, dword [ebx + 0x144]
and dl, 0x7f
mov dword [ebx + 0x144], edx
jmp 0x6de96150
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HidP_SetUsageValue_returned__lx_n
mov dword [esp + 8], str.hid_joystick_effect_Download
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de964b0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HidP_SetUsages_returned__lx_n
mov dword [esp + 8], str.hid_joystick_effect_Download
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de963cd
lea ecx, [eax - 0x40]
cmp cx, 3
ja 0x6de969c0
test dh, 1
je 0x6de969c0
cmp dword [ebx + 0x138], 0x17
jbe 0x6de962c0
xor esi, esi
lea eax, [ebx + 0x58]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], esi
mov esi, eax
mov dword [ebp - 0x70], edi
jmp 0x6de96800
and dword [ebx + 0x144], 0xfffffeff
mov eax, 0xaaaaaaab
mul dword [ebx + 0x138]
add dword [ebp - 0x74], 1
add esi, 0x18
mov ecx, dword [ebp - 0x74]
shr edx, 4
cmp edx, ecx
jbe 0x6de96e50
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x158]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x954]
mov dword [esp + 0xc], 0x23
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], 0xf
mov dword [esp + 0x10], eax
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x6de96860
test byte [0x6dea2114], 4
jne 0x6de96b65
mov eax, dword [ebx + 0x18]
mov edi, dword [esi]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x70]
mov edi, dword [edi + 0xd7c]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x18]
mov edi, dword [esi + 4]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x70]
mov edi, dword [edi + 0xd80]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x18]
mov edi, dword [esi + 8]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x70]
mov edi, dword [edi + 0xd84]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x18]
mov edi, dword [esi + 0xc]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x70]
mov edi, dword [edi + 0xd88]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x18]
mov edi, dword [esi + 0x10]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x70]
mov edi, dword [edi + 0xd8c]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x18]
mov edi, dword [esi + 0x14]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x70]
mov edi, dword [edi + 0xd90]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x6de967d6
mov dword [ebp - 0x78], 0x8007001e
jmp 0x6de967e0
sub eax, 0x30
cmp ax, 4
ja 0x6de96150
jmp 0x6de96138
mov edx, dword [ebx + 0x18]
jmp 0x6de9608b
mov dword [esp + 0xc], str.neither_X_or_Y_axes_are_selected__skipping_direction_n
mov dword [esp + 8], str.hid_joystick_effect_Download
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [ebx + 0x154]
mov dword [ebp - 0x70], eax
jmp 0x6de96450
mov edx, dword [ebx + 0x18]
mov esi, 0x8007001e
jmp 0x6de9608b
test dh, 1
je 0x6de96138
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xd9c]
mov dword [esp], esi
call sym._set_report_value.isra.0
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x6de96a12
mov edx, dword [ebx + 0x144]
movzx eax, word [ebx + 8]
and dh, 0xfe
mov dword [ebx + 0x144], edx
lea esi, [esi]
cmp ax, 0x27
ja 0x6de969c0
cmp ax, 0x25
jbe 0x6de96150
jmp 0x6de96138
test dh, 1
je 0x6de969c0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xfc]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xd4c]
mov dword [esp], esi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x108]
mov ecx, dword [edi + 0xd50]
mov edx, dword [ebx + 0x158]
mov dword [esp], eax
mov eax, ebx
call sym._set_parameter_value_us
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x104]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xd54]
mov dword [esp], esi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x100]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xd58]
jmp 0x6de96a4b
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x23
mov dword [esp + 0x10], 0xf
mov dword [esp + 0xc], str.HidP_SetUsageValue__04x:_04x_returned__lx_n
mov dword [esp + 8], str.hid_joystick_effect_Download
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de96860
mov esi, dword [ebp - 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x22
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x6de96bf0
test byte [0x6dea2114], 4
jne 0x6de96ec0
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 0x954]
mov eax, dword [ebx + 0xc]
jmp 0x6de96228
mov esi, dword [ebp - 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x22
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x6de96c4f
test byte [0x6dea2114], 4
jne 0x6de96eed
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 0x954]
mov eax, dword [ebx + 0xc]
jmp 0x6de96237
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x50], 1
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xbb4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x954]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x66]
mov dword [esp + 0xc], eax
movzx eax, word [edx + 0xde4]
mov dword [esp + 4], 0xf
mov dword [esp + 8], eax
mov dword [esp], 2
call sym._HidP_SetUsages_32
mov edx, dword [ebp - 0x74]
sub esp, 0x20
cmp eax, 0x110000
mov esi, eax
jne 0x6de96205
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], eax
mov eax, dword [edx + 0xbb4]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x93c]
mov dword [esp], eax
call sym._HidD_SetFeature_12
mov edx, dword [ebp - 0x74]
sub esp, 0xc
test al, al
je 0x6de96a12
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xbb4]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x954]
mov dword [esp + 8], eax
movzx eax, byte [edx + 0xdd0]
mov dword [esp], 2
mov dword [esp + 4], eax
call sym._HidP_InitializeReportForID_20
mov edx, dword [ebp - 0x74]
sub esp, 0x14
cmp eax, 0x110000
mov esi, eax
jne 0x6de96205
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], eax
mov eax, dword [edx + 0xbb4]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x93c]
mov dword [esp], eax
call sym._HidD_GetFeature_12
mov edx, dword [ebp - 0x74]
sub esp, 0xc
test al, al
je 0x6de96a12
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x74], edx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xbb4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x954]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x64]
mov dword [esp + 0xc], eax
movzx eax, word [edx + 0xdd8]
mov dword [esp + 4], 0xf
mov dword [esp + 8], eax
mov dword [esp], 2
call sym._HidP_GetUsages_32
sub esp, 0x20
mov esi, eax
cmp eax, 0x110000
jne 0x6de96205
cmp dword [ebp - 0x50], 1
mov edx, dword [ebp - 0x74]
jne 0x6de96a12
movzx eax, word [ebp - 0x64]
cmp ax, 0x8e
je 0x6de96a12
cmp ax, 0x8d
je 0x6de96f1a
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xbb4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x954]
mov dword [esp + 0xc], 0x22
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 2
call sym._HidP_GetUsageValue_32
sub esp, 0x20
mov esi, eax
cmp eax, 0x110000
jne 0x6de96205
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x18]
jmp 0x6de96213
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x70]
test esi, esi
jne 0x6de969d8
movzx eax, word [ebx + 8]
mov edx, dword [ebx + 0x144]
jmp 0x6de96aa0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xda8]
mov dword [esp], esi
call sym._set_report_value.isra.0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x158]
movzx edx, word [eax + 0xb72]
mov eax, dword [eax + 0x954]
mov dword [esp + 4], esi
mov esi, dword [edi + 0xdac]
jmp 0x6de96a4b
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HidP_SetUsageValue_returned__lx_n
mov dword [esp + 8], str.hid_joystick_effect_Download
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de96bf0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HidP_SetUsageValue_returned__lx_n
mov dword [esp + 8], str.hid_joystick_effect_Download
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de96c4f
mov edx, dword [ebx + 0x18]
mov esi, 0x80040201
jmp 0x6de9608b
jbe 0x6de96aaa
jmp 0x6de96150
mov esi, 0x80040201
jmp 0x6de9608b