Function at 0x100368d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10174330]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [0x10173694], 0
mov dword [0x10173688], 0
mov dword [0x1017368c], 0
mov dword [0x10173698], 0
mov dword [0x10173690], 0
mov dword [0x1017369c], 0
mov dword [0x101736a0], 0
mov dword [0x101736a4], 0
mov dword [0x101736a8], 0
test eax, eax
jne 0x10036bb7
cmp dword [0x10174578], eax
je 0x10036976
push 0x1017457c
push str._s.h
push 0x104
push str.StateInfo_log.h
call fcn.100742f9
add esp, 0x10
push 0x1008e5d4
lea eax, [ebp - 4]
push str.StateInfo_log.h
push eax
call fcn.1007415e
push 0x1008e5d4
lea eax, [ebp - 8]
push str.tempStateInfo_log.h
push eax
call fcn.1007415e
mov eax, dword [ebp - 4]
add esp, 0x18
test eax, eax
je 0x10036b79
cmp dword [ebp - 8], 0
je 0x10036b79
push dword [0x10174684]
push str._ndefine_HEADER_VERSION__d_n
push eax
call fcn.100742b5
push str.struct_Header_n_n
push dword [ebp - 4]
call fcn.100742b5
push str._tchar_str_4___n
push dword [ebp - 4]
call fcn.100742b5
push str._tunsigned_int_version__n
push dword [ebp - 4]
call fcn.100742b5
push str.__n_n
push dword [ebp - 4]
call fcn.100742b5
push str.static_const_Header_header_n_n
push dword [ebp - 4]
call fcn.100742b5
push str._tIOCL_n
push dword [ebp - 4]
call fcn.100742b5
push str._tHEADER_VERSION__n
push dword [ebp - 4]
call fcn.100742b5
add esp, 0x44
push str.__n_n
push dword [ebp - 4]
call fcn.100742b5
push str.typedef_enum_n_n
push dword [ebp - 4]
call fcn.100742b5
push str._tKERNEL__n
push dword [ebp - 4]
call fcn.100742b5
push str._tRO_DATA__n
push dword [ebp - 4]
call fcn.100742b5
push str._tRW_DATA__n
push dword [ebp - 4]
call fcn.100742b5
push str._tSENSOR_FRAME__n
push dword [ebp - 4]
call fcn.100742b5
push str._tHID_PACKET__n
push dword [ebp - 4]
call fcn.100742b5
push str._tFEEDBACK__n
push dword [ebp - 4]
call fcn.100742b5
add esp, 0x40
push str._tDYNAMIC_STATE_HEAP___n
push dword [ebp - 4]
call fcn.100742b5
push str._tPATCH_LOCATION_LIST___n
push dword [ebp - 4]
call fcn.100742b5
push str._tALLOCATION_LIST___n
push dword [ebp - 4]
call fcn.100742b5
push str._tCOMMAND_BUFFER_PACKET___n
push dword [ebp - 4]
call fcn.100742b5
push str._tTAG__n
push dword [ebp - 4]
call fcn.100742b5
push str._BUFFER_TYPE__n
push dword [ebp - 4]
call fcn.100742b5
push 0x1008f8d8
push dword [ebp - 8]
call fcn.100742b5
push str.typedef_struct__GfxDesc_n_n
push dword [ebp - 8]
call fcn.100742b5
add esp, 0x40
push str._tUINT_handle__n
push dword [ebp - 8]
call fcn.100742b5
push str._tBUFFER_TYPE_type__n
push dword [ebp - 8]
call fcn.100742b5
push str._tUINT_initialize__n
push dword [ebp - 8]
call fcn.100742b5
push str._tUINT_alignedSize__n
push dword [ebp - 8]
call fcn.100742b5
push str._tUINT_bufferSize__n
push dword [ebp - 8]
call fcn.100742b5
push str._tconst_void_pData__n
push dword [ebp - 8]
call fcn.100742b5
push str._GfxDesc__n_n
push dword [ebp - 8]
call fcn.100742b5
push str.static_const_GfxDesc_gfxDesc____n
push dword [ebp - 8]
call fcn.100742b5
add esp, 0x40
push dword [ebp - 4]
call fcn.10073cc2
push dword [ebp - 8]
call fcn.10073cc2
add esp, 8
jmp 0x10036b83
mov dword [0x10174330], 1
push 0x1008f9a4
lea eax, [ebp - 0xc]
push str.StateInfo_log.bin
push eax
call fcn.1007415e
push dword [ebp - 0xc]
push 1
push 8
push str.IOCL
call fcn.10074fd8
push dword [ebp - 0xc]
call fcn.10073cc2
mov eax, dword [0x10174330]
add esp, 0x20
mov esp, ebp
pop ebp
ret