Function at 0x10014f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
test byte [0x10022114], 8
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 0x950]
movzx ebx, word [edi + 0xb6e]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x938]
mov dword [ebp - 0x1c], eax
mov eax, edi
jne 0x10015080
add eax, 0x20
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x18]
mov eax, 0x80040205
sub esp, 4
cmp dword [edx + 0x4c8], 1
je 0x10015018
mov dword [ebp - 0x18], eax
add edx, 0x20
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 4
mov esp, ebp
pop ebp
ret 4
test byte [edx + 0x4c0], 1
je 0x10014fed
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100151dc
mov dword [esp + 0x10], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [esi + 0x150]
mov word [ebp - 0x12], 0x7b
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
movzx eax, byte [edi + 0xcd0]
mov dword [esp], 1
mov dword [esp + 4], eax
call sym._HidP_InitializeReportForID_20
sub esp, 0x14
cmp eax, 0x110000
je 0x100150b8
and dword [esi + 0x14c], 0xfffffffe
mov edx, dword [esi + 0x18]
jmp 0x10014fed
mov dword [esp + 0x10], esi
mov eax, str.iface__p._n
mov dword [esp + 0xc], eax
mov eax, str.hid_joystick_effect_Stop
mov dword [esp + 8], eax
mov eax, 0x10022114
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [esi + 0x18]
jmp 0x10014fcd
mov dword [esp + 0x1c], ebx
mov edx, 0xf
mov eax, dword [esi + 0x150]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, 0x22
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x1001506f
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x150]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x12]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 0xcd8]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 0xf
mov dword [esp + 4], eax
call sym._HidP_SetUsages_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x1001506f
mov dword [esp + 0x1c], ebx
xor ecx, ecx
mov edi, 0x7c
mov eax, dword [esi + 0x150]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
mov dword [esp], 1
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0xf
mov dword [esp + 4], eax
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x1001506f
mov dword [esp + 8], ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
cmp eax, 1
sbb eax, eax
and eax, 0x8007001e
jmp 0x1001506f
mov eax, 0x80040203
jmp 0x10014fed