Function at 0x6de94570
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 [0x6dea0114], 8
jne 0x6de946c0
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 0x6de94610
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 0x6de945eb
mov eax, dword [ebx + 0x148]
mov esi, 0x80040206
and eax, 0x160
cmp eax, 0x160
jne 0x6de945eb
movzx eax, word [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6de946f0
mov eax, dword [ebx + 0x144]
mov esi, 1
test eax, eax
je 0x6de945eb
movzx edx, word [ebx + 8]
cmp dx, 0x34
ja 0x6de94810
cmp dx, 0x2f
ja 0x6de94e94
cmp dx, 0x26
je 0x6de94f79
cmp dx, 0x27
jne 0x6de95325
test ah, 1
jne 0x6de9529a
lea esi, [esi]
lea esi, [esi]
test byte [ebx + 0x148], 0x80
je 0x6de946a8
test al, 0x80
jne 0x6de94d38
lea esi, [esi]
test eax, eax
jne 0x6de949dd
mov edx, dword [ebx + 0x18]
xor esi, esi
jmp 0x6de945eb
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], 0x6dea0114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [ebx + 0x18]
jmp 0x6de945cb
movzx ecx, word [ebx + 8]
mov word [ebp - 0x66], cx
mov ecx, dword [edx + 0xdc4]
test ecx, ecx
je 0x6de94773
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 0x6de95094
test esi, esi
jns 0x6de95275
mov edx, dword [ebx + 0x18]
jmp 0x6de945eb
cmp eax, 0xff
je 0x6de9533d
movzx ecx, byte [edx + eax + 0xbc0]
mov esi, eax
inc eax
test cl, cl
jne 0x6de94768
mov byte [edx + esi + 0xbc0], 1
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0x158]
cmp byte [edx], 0
jne 0x6de95035
mov edx, dword [ebx + 0x15c]
cmp byte [edx], 0
jne 0x6de94fd6
mov esi, dword [ebp - 0x78]
mov dword [esp + 0x1c], esi
mov edx, dword [ebx + 0x154]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + 0x954]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x22
mov dword [esp + 0x14], edx
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
je 0x6de94805
test eax, eax
jne 0x6de94759
mov eax, dword [ebx + 0x144]
jmp 0x6de94651
lea ecx, [edx - 0x40]
cmp cx, 3
ja 0x6de949c8
test ah, 1
je 0x6de949c8
cmp dword [ebx + 0x138], 0x17
jbe 0x6de949dd
xor esi, esi
lea eax, [ebx + 0x58]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x7c], esi
mov esi, eax
mov dword [ebp - 0x70], edi
jmp 0x6de94872
and dword [ebx + 0x144], 0xfffffeff
mov eax, 0xaaaaaaab
mul dword [ebx + 0x138]
inc dword [ebp - 0x74]
add esi, 0x18
mov ecx, dword [ebp - 0x74]
shr edx, 4
cmp edx, ecx
jbe 0x6de9527d
mov eax, dword [ebp - 0x78]
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 0x6de948d2
test byte [0x6dea0114], 4
jne 0x6de94f99
mov eax, dword [ebp - 0x70]
mov edi, dword [esi]
mov edx, dword [ebx + 0x158]
mov ecx, dword [eax + 0xd7c]
mov eax, dword [ebx + 0x18]
mov dword [esp], edi
call sym._set_report_value
mov eax, dword [ebp - 0x70]
mov edi, dword [esi + 4]
mov edx, dword [ebx + 0x158]
mov ecx, dword [eax + 0xd80]
mov eax, dword [ebx + 0x18]
mov dword [esp], edi
call sym._set_report_value
mov eax, dword [ebp - 0x70]
mov edi, dword [esi + 8]
mov edx, dword [ebx + 0x158]
mov ecx, dword [eax + 0xd84]
mov eax, dword [ebx + 0x18]
mov dword [esp], edi
call sym._set_report_value
mov eax, dword [ebp - 0x70]
mov edi, dword [esi + 0xc]
mov edx, dword [ebx + 0x158]
mov ecx, dword [eax + 0xd88]
mov eax, dword [ebx + 0x18]
mov dword [esp], edi
call sym._set_report_value
mov eax, dword [ebp - 0x70]
mov edi, dword [esi + 0x10]
mov edx, dword [ebx + 0x158]
mov ecx, dword [eax + 0xd8c]
mov eax, dword [ebx + 0x18]
mov dword [esp], edi
call sym._set_report_value
mov eax, dword [ebp - 0x70]
mov edi, dword [esi + 0x14]
mov edx, dword [ebx + 0x158]
mov ecx, dword [eax + 0xd90]
mov eax, dword [ebx + 0x18]
mov dword [esp], edi
call sym._set_report_value
mov eax, dword [ebp - 0x78]
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 0x6de94849
mov dword [ebp - 0x7c], 0x8007001e
jmp 0x6de94853
sub edx, 0x30
cmp dx, 4
jbe 0x6de94690
test eax, eax
je 0x6de946b0
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 esi, dword [ebx + 0x11c]
mov ecx, dword [edi + 0xd30]
mov edx, dword [ebx + 0x154]
mov eax, dword [ebx + 0x18]
mov dword [esp], esi
call sym._set_report_value
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 - 0x78]
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 0x6de94ad9
test byte [0x6dea0114], 4
jne 0x6de94e28
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + 0x10c]
call sym._convert_directions_to_spherical
mov eax, dword [ebx + 0x128]
lea edx, [eax - 1]
mov eax, edx
jmp 0x6de94b14
mov ecx, dword [ebx + 0x12c]
mov ecx, dword [ecx + eax*4]
dec eax
cmp cx, 0x30
je 0x6de94c08
cmp eax, 0xffffffff
jne 0x6de94b00
jmp 0x6de94b34
mov eax, dword [ebx + 0x12c]
mov eax, dword [eax + edx*4]
dec edx
cmp ax, 0x31
je 0x6de94c08
cmp edx, 0xffffffff
jne 0x6de94b20
test byte [0x6dea0114], 4
jne 0x6de94e55
mov eax, dword [ebx + 0x154]
mov dword [ebp - 0x70], eax
nop
mov eax, dword [ebp - 0x78]
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 0x6de94bb0
test byte [0x6dea0114], 4
jne 0x6de94df8
mov eax, dword [ebp - 0x78]
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 0x6de94e87
mov dword [ebx + 0x144], 0
mov eax, dword [ebx + 0x18]
and dword [eax + 0x930], 0xfffffffe
jmp 0x6de946b0
mov eax, dword [edi + 0xcf8]
mov esi, dword [ebx + 0x154]
cmp dword [ebp - 0x34], eax
mov ecx, eax
cmovbe eax, dword [ebp - 0x34]
mov dword [ebp - 0x70], esi
xor esi, esi
test eax, eax
je 0x6de94b50
mov dword [ebp - 0x74], edi
mov edi, ecx
mov dword [ebp - 0x7c], ebx
jmp 0x6de94c78
test byte [0x6dea0114], 4
jne 0x6de94ce0
mov edi, dword [ebp - 0x7c]
mov ecx, ebx
mov eax, dword [edi + 0x18]
mov dword [esp], edx
mov edx, dword [ebp - 0x70]
call sym._set_report_value
mov eax, dword [edi + 0x154]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
mov edi, dword [eax + 0xcf8]
inc esi
mov eax, edi
cmp dword [ebp - 0x34], edi
cmovbe eax, dword [ebp - 0x34]
cmp eax, esi
jbe 0x6de94cd0
mov ecx, dword [ebp + esi*4 - 0x60]
test esi, esi
mov ebx, dword [ebp - 0x74]
lea eax, [ecx + 0x2328]
cmove ecx, eax
mov eax, edi
sub eax, esi
mov ebx, dword [ebx + eax*4 + 0xd10]
mov eax, 0xe90452d5
mul ecx
shr edx, 0xf
imul eax, edx, 0x8ca0
sub ecx, eax
mov edx, ecx
test ebx, ebx
je 0x6de94c6a
mov eax, dword [ebx + 0x60]
cmp eax, 0x14
jne 0x6de94c38
mov ecx, dword [ebx + 0x64]
cmp ecx, 0xfffffffe
jge 0x6de94d18
inc ecx
nop
lea edx, [edx + edx*4]
inc ecx
add edx, edx
cmp ecx, 0xffffffff
jne 0x6de94cc0
jmp 0x6de94c45
mov ebx, dword [ebp - 0x7c]
jmp 0x6de94b50
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], 0x6dea0114
mov dword [esp], 2
mov dword [ebp - 0x80], ecx
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x80]
jmp 0x6de94c45
je 0x6de94c45
nop
mov eax, 0xcccccccd
dec ecx
mul edx
shr edx, 3
cmp ecx, 0xfffffffe
jne 0x6de94d20
jmp 0x6de94c45
mov esi, dword [ebx + 0xec]
mov ecx, dword [edi + 0xd64]
mov edx, dword [ebx + 0x15c]
mov eax, dword [ebx + 0x18]
mov dword [esp], esi
call sym._set_report_value
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 esi, dword [ebx + 0xf4]
mov ecx, dword [edi + 0xd6c]
mov edx, dword [ebx + 0x15c]
mov eax, dword [ebx + 0x18]
mov dword [esp], esi
call sym._set_report_value
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 - 0x78]
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 0x6de94e87
mov eax, dword [ebx + 0x144]
and al, 0x7f
mov dword [ebx + 0x144], eax
jmp 0x6de946a8
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], 0x6dea0114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de94bb0
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], 0x6dea0114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de94ad9
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], 0x6dea0114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [ebx + 0x154]
mov dword [ebp - 0x70], eax
jmp 0x6de94b50
mov edx, dword [ebx + 0x18]
mov esi, 0x8007001e
jmp 0x6de945eb
test ah, 1
je 0x6de949c8
mov esi, dword [ebx + 0xfc]
mov ecx, dword [edi + 0xd4c]
mov edx, dword [ebx + 0x158]
mov eax, dword [ebx + 0x18]
mov dword [esp], esi
call sym._set_report_value
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 esi, dword [ebx + 0x104]
mov ecx, dword [edi + 0xd54]
mov edx, dword [ebx + 0x158]
mov eax, dword [ebx + 0x18]
mov dword [esp], esi
call sym._set_report_value
mov ecx, dword [edi + 0xd58]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x158]
mov esi, dword [ebx + 0x100]
mov dword [esp], esi
call sym._set_report_value
mov eax, dword [ebp - 0x78]
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 0x6de94e87
mov eax, dword [ebx + 0x144]
movzx edx, word [ebx + 8]
and ah, 0xfe
mov dword [ebx + 0x144], eax
lea esi, [esi]
nop
cmp dx, 0x27
ja 0x6de949c8
cmp dx, 0x25
jbe 0x6de946a8
jmp 0x6de94690
test ah, 1
je 0x6de94690
mov ecx, dword [edi + 0xd9c]
mov edx, dword [ebx + 0x158]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x4c]
jmp 0x6de94f08
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], 0x6dea0114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de948d2
mov esi, dword [ebp - 0x78]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + 0x954]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x22
mov dword [esp + 0x14], edx
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 0x6de9502d
test byte [0x6dea0114], 4
jne 0x6de952cb
mov eax, dword [ebx + 0xc]
jmp 0x6de947ab
mov esi, dword [ebp - 0x78]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + 0x954]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x22
mov dword [esp + 0x14], edx
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 0x6de9508c
test byte [0x6dea0114], 4
jne 0x6de952f8
mov eax, dword [ebx + 0xc]
jmp 0x6de9479c
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 0x6de94751
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 0x6de94e87
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 0x6de94751
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 0x6de94e87
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 0x6de94751
cmp dword [ebp - 0x50], 1
mov edx, dword [ebp - 0x74]
jne 0x6de94e87
movzx eax, word [ebp - 0x64]
cmp ax, 0x8e
je 0x6de94e87
cmp ax, 0x8d
je 0x6de95330
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 0x6de94751
mov eax, dword [ebx + 0xc]
jmp 0x6de9478d
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x70]
test esi, esi
jne 0x6de94759
movzx edx, word [ebx + 8]
mov eax, dword [ebx + 0x144]
jmp 0x6de94f60
mov esi, dword [ebx + 0x50]
mov ecx, dword [edi + 0xda8]
mov edx, dword [ebx + 0x158]
mov eax, dword [ebx + 0x18]
mov dword [esp], esi
call sym._set_report_value
mov ecx, dword [edi + 0xdac]
mov edx, dword [ebx + 0x158]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x54]
jmp 0x6de94f08
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], 0x6dea0114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de9502d
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], 0x6dea0114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de9508c
jbe 0x6de94f6a
jmp 0x6de946a8
mov edx, dword [ebx + 0x18]
mov esi, 0x80040201
jmp 0x6de945eb
mov esi, 0x80040201
jmp 0x6de945eb