Function at 0x6de951e0
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, 0x48
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x2c], eax
movzx eax, word [edi + 0xb72]
mov word [ebp - 0x32], ax
mov eax, dword [edi + 0x954]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x93c]
mov dword [ebp - 0x38], eax
test byte [0x6dea2114], 8
jne 0x6de95310
test esi, 0x7ffffffe
jne 0x6de954a0
mov eax, esi
and eax, 1
add eax, 0x79
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 0x18]
add eax, 0x20
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x18]
mov eax, 0x80040205
sub esp, 4
cmp dword [edx + 0x4c8], 1
je 0x6de95290
add edx, 0x20
mov dword [ebp - 0x2c], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test byte [edx + 0x4c0], 1
je 0x6de95267
test esi, esi
js 0x6de95488
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x28]
sub esp, 4
test eax, eax
js 0x6de95479
movzx esi, word [ebp - 0x32]
mov dword [ebp - 0x1c], 1
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 0x150]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
movzx eax, byte [edi + 0xcd4]
mov dword [esp], 1
mov dword [esp + 4], eax
call sym._HidP_InitializeReportForID_20
sub esp, 0x14
cmp eax, 0x110000
je 0x6de95350
test eax, eax
js 0x6de95472
or dword [ebx + 0x14c], 1
mov edx, dword [ebx + 0x18]
jmp 0x6de95267
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.iface__p__iterations__lu__flags__lx._n
mov dword [esp + 8], str.hid_joystick_effect_Start
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de9522c
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 0x150]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], 0x22
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
jne 0x6de952f5
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 0x150]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1e]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 0xcdc]
mov dword [esp + 4], 0xf
mov dword [esp + 8], eax
mov dword [esp], 1
call sym._HidP_SetUsages_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x6de952f5
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 0x150]
mov dword [esp + 0xc], 0x7c
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
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
jne 0x6de952f5
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x6de954aa
mov eax, 0x8007001e
and dword [ebx + 0x14c], 0xfffffffe
mov edx, dword [ebx + 0x18]
jmp 0x6de95267
mov ecx, dword [ebx + 0xc]
mov eax, 0x80040203
test ecx, ecx
je 0x6de95267
jmp 0x6de952b4
mov eax, 0x80070057
jmp 0x6de9527c
xor eax, eax
jmp 0x6de952fd