Function at 0x10015c20
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 dword [ebp - 0x60], 0
mov esi, dword [ecx]
test byte [0x10022114], 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov edi, dword [esi + 0x18]
movzx eax, word [edi + 0xb6e]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0x938]
mov dword [ebp - 0x70], eax
mov eax, edi
jne 0x10015d78
add eax, 0x20
mov ebx, 0x80040205
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x18]
sub esp, 4
cmp dword [ecx + 0x4c8], 1
je 0x10015cc0
lea esi, [ecx + 0x20]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
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 [ecx + 0x4c0], 1
je 0x10015c9a
mov eax, dword [esi + 0x148]
mov ebx, 0x80040206
and eax, 0x160
cmp eax, 0x160
jne 0x10015c9a
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10015db0
mov ecx, dword [esi + 0x144]
xor ebx, ebx
test ecx, ecx
sete bl
test ebx, ebx
jne 0x10016690
movzx eax, word [esi + 8]
mov edx, dword [esi + 0x144]
cmp eax, 0x34
ja 0x10016460
cmp eax, 0x2f
ja 0x10016777
cmp eax, 0x26
je 0x100166da
cmp eax, 0x27
jne 0x10016bef
test dh, 1
jne 0x10016b35
mov esi, esi
lea edi, [edi]
test byte [esi + 0x148], 0x80
je 0x10015d60
test dl, 0x80
jne 0x10016318
lea esi, [esi]
lea edi, [edi]
test edx, edx
jne 0x10015ed0
mov ecx, dword [esi + 0x18]
xor ebx, ebx
jmp 0x10015c9a
mov dword [esp + 0x10], esi
mov eax, str.hid_joystick_effect_Download
mov ebx, str.iface__p_n
mov dword [esp + 8], eax
mov eax, 0x10022114
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [esi + 0x18]
jmp 0x10015c7a
mov edx, dword [esi + 8]
mov word [ebp - 0x66], dx
mov edx, dword [ecx + 0xdc0]
test edx, edx
je 0x10015eab
mov dword [ebp - 0x78], ecx
movzx eax, word [ecx + 0xb70]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x74], eax
mov eax, dword [ecx + 0xbb0]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x950]
mov dword [esp + 8], eax
movzx eax, byte [ecx + 0xdd8]
mov dword [esp], 2
mov dword [esp + 4], eax
call sym._HidP_InitializeReportForID_20
mov ecx, dword [ebp - 0x78]
sub esp, 0x14
cmp eax, 0x110000
mov ebx, eax
je 0x10016923
test ebx, ebx
mov ecx, dword [esi + 0x18]
js 0x10015c9a
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x158]
mov ecx, dword [ecx + 0x950]
cmp byte [edx], 0
jne 0x10016865
mov edx, dword [esi + 0x15c]
cmp byte [edx], 0
jne 0x100168c4
mov ebx, dword [ebp - 0x6c]
mov dword [esp + 0x1c], ebx
mov ebx, 0x22
mov edx, dword [esi + 0x154]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0xf
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
mov ebx, eax
jne 0x10015cf8
jmp 0x10015d00
cmp eax, 0xff
je 0x10016bfb
movzx edx, byte [ecx + eax + 0xbbc]
mov ebx, eax
inc eax
test dl, dl
jne 0x10015ea0
mov dl, 1
mov byte [ecx + ebx + 0xbbc], dl
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x18]
jmp 0x10015e22
mov eax, dword [esi + 0x114]
mov ecx, dword [edi + 0xd28]
mov edx, dword [esi + 0x154]
mov dword [esp], eax
mov eax, esi
call sym._set_parameter_value_us
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x11c]
mov ecx, dword [esi + 0x154]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xd2c]
mov dword [esp], ebx
xor ebx, ebx
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x118]
mov ecx, dword [edi + 0xd30]
mov edx, dword [esi + 0x154]
mov dword [esp], eax
mov eax, esi
call sym._set_parameter_value_us
mov eax, dword [esi + 0x140]
mov ecx, dword [edi + 0xd34]
mov edx, dword [esi + 0x154]
mov dword [esp], eax
mov eax, esi
call sym._set_parameter_value_us
mov eax, dword [esi + 0x124]
mov ecx, dword [edi + 0xd3c]
mov edx, dword [esi + 0x154]
mov dword [esp], eax
mov eax, esi
call sym._set_parameter_value_us
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], 1
mov word [ebp - 0x66], 0x56
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x154]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x950]
mov dword [esp + 8], ebx
mov dword [esp], 1
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x64]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x66]
mov dword [esp + 0xc], eax
mov eax, 0xf
mov dword [esp + 4], eax
call sym._HidP_SetUsages_32
sub esp, 0x20
cmp eax, 0x110000
je 0x10015fd9
test byte [0x10022114], 4
jne 0x10016430
lea eax, [ebp - 0x60]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x34]
lea eax, [esi + 0x10c]
lea ecx, [ebp - 0x2c]
call sym._convert_directions_to_spherical.isra.0
mov eax, dword [esi + 0x128]
lea edx, [eax - 1]
mov eax, edx
jmp 0x10016014
mov ecx, dword [esi + 0x12c]
movzx ecx, word [ecx + eax*4]
dec eax
cmp ecx, 0x30
je 0x10016100
cmp eax, 0xffffffff
jne 0x10016000
jmp 0x10016034
mov eax, dword [esi + 0x12c]
movzx eax, word [eax + edx*4]
dec edx
cmp eax, 0x31
je 0x10016100
cmp edx, 0xffffffff
jne 0x10016020
test byte [0x10022114], 4
jne 0x10016698
mov eax, dword [esi + 0x154]
mov dword [ebp - 0x74], eax
nop
mov eax, dword [ebp - 0x6c]
mov edx, 0xf
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x950]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x120]
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, 0x53
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x100160b0
test byte [0x10022114], 4
jne 0x10016400
mov eax, dword [ebp - 0x6c]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esi + 0x154]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x100166cd
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [esi + 0x144], ecx
and dword [eax + 0x930], 0xfffffffe
jmp 0x10015d68
mov ecx, dword [edi + 0xcf4]
mov eax, dword [esi + 0x154]
cmp dword [ebp - 0x34], ecx
mov dword [ebp - 0x74], eax
mov eax, ecx
cmovbe eax, dword [ebp - 0x34]
xor ebx, ebx
test eax, eax
je 0x10016050
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], esi
jmp 0x10016188
test byte [0x10022114], 4
jne 0x100162b0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov eax, dword [eax + 0x18]
movzx esi, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], edx
mov dword [esp], edi
mov edx, esi
call sym._set_report_value.isra.0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0xcf4]
inc ebx
mov eax, ecx
cmp dword [ebp - 0x34], ecx
cmovbe eax, dword [ebp - 0x34]
cmp eax, ebx
jbe 0x100162a8
test ebx, ebx
mov esi, dword [ebp + ebx*4 - 0x60]
jne 0x10016196
add esi, 0x2328
mov edi, dword [ebp - 0x7c]
mov eax, ecx
sub eax, ebx
mov edi, dword [edi + eax*4 + 0xd0c]
mov eax, 0xe90452d5
mul esi
shr edx, 0xf
imul edx, edx, 0x8ca0
sub esi, edx
test edi, edi
mov edx, esi
je 0x10016176
mov eax, dword [edi + 0x60]
cmp eax, 0x14
jne 0x10016130
mov ecx, dword [edi + 0x64]
cmp ecx, 0xfffffffe
jge 0x100162f0
lea eax, [ecx + 1]
mov esi, 0xfffffffe
sub esi, ecx
mov dword [ebp - 0x80], esi
mov esi, 0xfffffffd
sub esi, ecx
cmp esi, 0x49
jbe 0x10016280
mov esi, dword [ebp - 0x80]
xor ecx, ecx
movdqu xmm0, xmmword [0x10029ac0]
shr esi, 2
jmp 0x10016210
movdqu xmm1, xmm0
inc ecx
pslld xmm1, 2
paddd xmm0, xmm1
cmp esi, ecx
pslld xmm0, 1
jne 0x10016210
movdqu xmm1, xmm0
psrldq xmm1, 8
mov esi, dword [ebp - 0x80]
movdqu xmm2, xmm1
psrlq xmm1, 0x20
pmuludq xmm2, xmm0
psrlq xmm0, 0x20
pmuludq xmm0, xmm1
pshufd xmm1, xmm2, 8
pshufd xmm0, xmm0, 8
punpckldq xmm1, xmm0
movdqu xmm0, xmm1
psrldq xmm1, 4
pmuludq xmm0, xmm1
movd ecx, xmm0
imul edx, ecx
mov ecx, esi
and ecx, 0xfffffffc
add eax, ecx
cmp ecx, esi
je 0x1001613d
lea esi, [esi]
lea edx, [edx + edx*4]
mov ecx, eax
add edx, edx
inc eax
cmp ecx, 0xfffffffe
jge 0x1001613d
lea edx, [edx + edx*4]
mov ecx, eax
add edx, edx
inc eax
cmp ecx, 0xfffffffe
jl 0x10016280
jmp 0x1001613d
mov esi, dword [ebp - 0x78]
jmp 0x10016050
mov dword [ebp - 0x80], esi
mov ecx, str.unknown_angle_unit_caps__lx_n
mov esi, str.set_parameter_value_angle
mov dword [esp + 0x10], eax
mov eax, 0x10022114
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x80]
jmp 0x1001613d
je 0x1001613d
mov esi, 0xcccccccd
nop
lea esi, [esi]
mov eax, edx
dec ecx
mul esi
shr edx, 3
cmp ecx, 0xfffffffe
jne 0x10016300
jmp 0x1001613d
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0xec]
mov ecx, dword [esi + 0x15c]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xd60]
mov dword [esp], ebx
call sym._set_report_value.isra.0
mov eax, dword [esi + 0xf0]
mov ecx, dword [edi + 0xd64]
mov edx, dword [esi + 0x15c]
mov dword [esp], eax
mov eax, esi
call sym._set_parameter_value_us
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0xf4]
mov ecx, dword [esi + 0x15c]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xd68]
mov dword [esp], ebx
call sym._set_report_value.isra.0
mov eax, dword [esi + 0xf8]
mov ecx, dword [edi + 0xd6c]
mov edx, dword [esi + 0x15c]
mov dword [esp], eax
mov eax, esi
call sym._set_parameter_value_us
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x15c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x100166cd
mov edx, dword [esi + 0x144]
and edx, 0xffffff7f
mov dword [esi + 0x144], edx
jmp 0x10015d60
mov dword [esp + 0x10], eax
mov eax, str.HidP_SetUsageValue_returned__lx_n
mov dword [esp + 0xc], eax
mov eax, str.hid_joystick_effect_Download
mov dword [esp + 8], eax
mov eax, 0x10022114
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x100160b0
mov dword [esp + 0x10], eax
mov edx, str.hid_joystick_effect_Download
mov ecx, 0x10022114
mov dword [esp + 8], edx
mov eax, str.HidP_SetUsages_returned__lx_n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x10015fd9
lea ecx, [eax - 0x40]
cmp cx, 3
ja 0x10016678
test dh, 1
je 0x10016678
cmp dword [esi + 0x138], 0x17
jbe 0x10015ed0
mov dword [ebp - 0x78], 0
lea eax, [esi + 0x58]
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov ebx, eax
mov dword [ebp - 0x74], edi
jmp 0x100164c2
and dword [esi + 0x144], 0xfffffeff
inc dword [ebp - 0x78]
mov eax, 0xaaaaaaab
mul dword [esi + 0x138]
add ebx, 0x18
mov ecx, dword [ebp - 0x78]
shr edx, 4
cmp edx, ecx
jbe 0x10016b18
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov ecx, 0xf
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x158]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x950]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x10], eax
mov eax, 0x23
mov dword [esp + 0xc], eax
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x10016522
test byte [0x10022114], 4
jne 0x10016823
mov eax, dword [esi + 0x18]
mov edi, dword [ebx]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x74]
mov edi, dword [edi + 0xd78]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x18]
mov edi, dword [ebx + 4]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x74]
mov edi, dword [edi + 0xd7c]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x18]
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x74]
mov edi, dword [edi + 0xd80]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x18]
mov edi, dword [ebx + 0xc]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x74]
mov edi, dword [edi + 0xd84]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x18]
mov edi, dword [ebx + 0x10]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x74]
mov edi, dword [edi + 0xd88]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x18]
mov edi, dword [ebx + 0x14]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x74]
mov edi, dword [edi + 0xd8c]
mov dword [esp], edi
call sym._set_report_value.isra.0
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov dword [esp + 0x10], edx
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x10016499
mov dword [ebp - 0x7c], 0x8007001e
jmp 0x100164a3
sub eax, 0x30
cmp ax, 4
ja 0x10015d60
jmp 0x10015d40
mov ecx, dword [esi + 0x18]
jmp 0x10015c9a
mov dword [esp], 2
mov eax, str.neither_X_or_Y_axes_are_selected__skipping_direction_n
mov dword [esp + 0xc], eax
mov eax, str.hid_joystick_effect_Download
mov dword [esp + 8], eax
mov eax, 0x10022114
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [esi + 0x154]
mov dword [ebp - 0x74], eax
jmp 0x10016050
mov ecx, dword [esi + 0x18]
mov ebx, 0x8007001e
jmp 0x10015c9a
test dh, 1
je 0x10015d40
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xd98]
mov dword [esp], ebx
call sym._set_report_value.isra.0
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x100166cd
mov edx, dword [esi + 0x144]
movzx eax, word [esi + 8]
and edx, 0xfffffeff
mov dword [esi + 0x144], edx
lea esi, [esi]
lea edi, [edi]
cmp eax, 0x27
ja 0x10016678
cmp eax, 0x25
jbe 0x10015d60
jmp 0x10015d40
test dh, 1
je 0x10016678
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0xfc]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xd48]
mov dword [esp], ebx
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x108]
mov ecx, dword [edi + 0xd4c]
mov edx, dword [esi + 0x158]
mov dword [esp], eax
mov eax, esi
call sym._set_parameter_value_us
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x104]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xd50]
mov dword [esp], ebx
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x100]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xd54]
jmp 0x10016706
mov dword [esp + 0x18], eax
mov eax, 0xf
mov edi, 0x23
mov dword [esp + 0x10], eax
mov eax, str.HidP_SetUsageValue__04x:_04x_returned__lx_n
mov dword [esp + 0xc], eax
mov eax, str.hid_joystick_effect_Download
mov dword [esp + 8], eax
mov eax, 0x10022114
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x10016522
mov dword [esp + 0x18], edx
mov ebx, dword [ebp - 0x6c]
mov edx, 0x22
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ebx
mov ebx, 0xf
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x100168b3
test byte [0x10022114], 4
jne 0x10016b88
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x950]
mov eax, dword [esi + 0xc]
jmp 0x10015e37
mov dword [esp + 0x10], eax
mov ebx, dword [ebp - 0x6c]
mov eax, 0x22
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0xf
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
je 0x10016912
test byte [0x10022114], 4
jne 0x10016bb5
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x950]
mov eax, dword [esi + 0xc]
jmp 0x10015e46
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xbb0]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x950]
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 [ecx + 0xde0]
mov dword [esp], 2
mov dword [esp + 8], eax
mov eax, 0xf
mov dword [esp + 4], eax
call sym._HidP_SetUsages_32
mov ecx, dword [ebp - 0x78]
sub esp, 0x20
cmp eax, 0x110000
mov ebx, eax
jne 0x10015e14
mov eax, dword [ebp - 0x74]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0xbb0]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x938]
mov dword [esp], eax
call sym._HidD_SetFeature_12
mov ecx, dword [ebp - 0x78]
sub esp, 0xc
test al, al
je 0x100166cd
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xbb0]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x950]
mov dword [esp + 8], eax
movzx eax, byte [ecx + 0xdcc]
mov dword [esp], 2
mov dword [esp + 4], eax
call sym._HidP_InitializeReportForID_20
mov ecx, dword [ebp - 0x78]
sub esp, 0x14
cmp eax, 0x110000
mov ebx, eax
jne 0x10015e14
mov eax, dword [ebp - 0x74]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0xbb0]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x938]
mov dword [esp], eax
call sym._HidD_GetFeature_12
mov ecx, dword [ebp - 0x78]
sub esp, 0xc
test al, al
je 0x100166cd
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xbb0]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x950]
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 [ecx + 0xdd4]
mov dword [esp + 4], 0xf
mov dword [esp], 2
mov dword [esp + 8], eax
call sym._HidP_GetUsages_32
sub esp, 0x20
cmp eax, 0x110000
mov ebx, eax
jne 0x10015e14
cmp dword [ebp - 0x50], 1
mov ecx, dword [ebp - 0x78]
jne 0x100166cd
movzx eax, word [ebp - 0x64]
cmp eax, 0x8e
je 0x100166cd
cmp eax, 0x8d
je 0x10016be2
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xbb0]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x950]
mov dword [esp + 0xc], 0x22
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp + 0x14], eax
lea eax, [esi + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp], 2
call sym._HidP_GetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
mov ebx, eax
jne 0x10015e14
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
jmp 0x10015e22
mov ebx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x74]
test ebx, ebx
jne 0x10016690
movzx eax, word [esi + 8]
mov edx, dword [esi + 0x144]
jmp 0x10016760
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x50]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xda4]
mov dword [esp], ebx
call sym._set_report_value.isra.0
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x54]
mov ecx, dword [esi + 0x158]
movzx edx, word [eax + 0xb6e]
mov eax, dword [eax + 0x950]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 0xda8]
jmp 0x10016706
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], 0x10022114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x100168b3
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], 0x10022114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x10016912
mov ecx, dword [esi + 0x18]
mov ebx, 0x80040201
jmp 0x10015c9a
nop
jbe 0x10016769
jmp 0x10015d60
mov ebx, 0x80040201
jmp 0x10015c9a