Function at 0x6de93760
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 [0x6dea0114], 8
jne 0x6de93890
test esi, 0x7ffffffe
jne 0x6de93a30
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 eax, dword [ebx + 0x18]
mov edx, 0x80040205
sub esp, 4
cmp dword [eax + 0x4c8], 1
je 0x6de93810
add eax, 0x20
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test byte [eax + 0x4c0], 1
je 0x6de937e7
test esi, esi
js 0x6de938e0
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x28]
sub esp, 4
mov edx, eax
test eax, eax
js 0x6de938d7
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
mov edx, eax
cmp eax, 0x110000
je 0x6de938f8
test edx, edx
js 0x6de938d0
or dword [ebx + 0x14c], 1
mov eax, dword [ebx + 0x18]
jmp 0x6de937e7
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], 0x6dea0114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de937ac
and dword [ebx + 0x14c], 0xfffffffe
mov eax, dword [ebx + 0x18]
jmp 0x6de937e7
mov ecx, dword [ebx + 0xc]
mov edx, 0x80040203
test ecx, ecx
je 0x6de937e7
jmp 0x6de93836
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
mov edx, eax
cmp eax, 0x110000
jne 0x6de93879
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
mov edx, eax
cmp eax, 0x110000
jne 0x6de93879
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
mov edx, eax
cmp eax, 0x110000
jne 0x6de93879
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]
mov edx, 0x8007001e
sub esp, 0x14
test eax, eax
je 0x6de938d0
xor edx, edx
jmp 0x6de9387d
mov edx, 0x80070057
jmp 0x6de937fc