Function at 0x100367f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101b0b68]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [0x101afecc], 0
mov dword [0x101afec0], 0
mov dword [0x101afec4], 0
mov dword [0x101afed0], 0
mov dword [0x101afec8], 0
mov dword [0x101afed4], 0
mov dword [0x101afed8], 0
mov dword [0x101afedc], 0
mov dword [0x101afee0], 0
test eax, eax
jne 0x10036b0b
cmp dword [0x101b0db8], eax
je 0x10036896
push 0x101b0dbc
push str._s.h
push 0x104
push str.StateInfo_log.h
call fcn.10074a45
add esp, 0x10
push 0x1008f5a0
lea eax, [ebp - 4]
push str.StateInfo_log.h
push eax
call fcn.100748aa
push 0x1008f5a0
lea eax, [ebp - 8]
push str.tempStateInfo_log.h
push eax
call fcn.100748aa
mov eax, dword [ebp - 4]
add esp, 0x18
test eax, eax
je 0x10036aa2
cmp dword [ebp - 8], 0
je 0x10036a99
push dword [0x101b0ec4]
push str._ndefine_HEADER_VERSION__d_n
push eax
call fcn.10074a01
push str.struct_Header_n_n
push dword [ebp - 4]
call fcn.10074a01
push str._tchar_str_4___n
push dword [ebp - 4]
call fcn.10074a01
push str._tunsigned_int_version__n
push dword [ebp - 4]
call fcn.10074a01
push str.__n_n
push dword [ebp - 4]
call fcn.10074a01
push str.static_const_Header_header_n_n
push dword [ebp - 4]
call fcn.10074a01
push str._tIOCL_n
push dword [ebp - 4]
call fcn.10074a01
push str._tHEADER_VERSION__n
push dword [ebp - 4]
call fcn.10074a01
add esp, 0x44
push str.__n_n
push dword [ebp - 4]
call fcn.10074a01
push str.typedef_enum_n_n
push dword [ebp - 4]
call fcn.10074a01
push str._tKERNEL__n
push dword [ebp - 4]
call fcn.10074a01
push str._tRO_DATA__n
push dword [ebp - 4]
call fcn.10074a01
push str._tRW_DATA__n
push dword [ebp - 4]
call fcn.10074a01
push str._tSENSOR_FRAME__n
push dword [ebp - 4]
call fcn.10074a01
push str._tHID_PACKET__n
push dword [ebp - 4]
call fcn.10074a01
push str._tFEEDBACK__n
push dword [ebp - 4]
call fcn.10074a01
add esp, 0x40
push str._tDYNAMIC_STATE_HEAP___n
push dword [ebp - 4]
call fcn.10074a01
push str._tPATCH_LOCATION_LIST___n
push dword [ebp - 4]
call fcn.10074a01
push str._tALLOCATION_LIST___n
push dword [ebp - 4]
call fcn.10074a01
push str._tCOMMAND_BUFFER_PACKET___n
push dword [ebp - 4]
call fcn.10074a01
push str._tTAG__n
push dword [ebp - 4]
call fcn.10074a01
push str._BUFFER_TYPE__n
push dword [ebp - 4]
call fcn.10074a01
push 0x10090864
push dword [ebp - 8]
call fcn.10074a01
push str.typedef_struct__GfxDesc_n_n
push dword [ebp - 8]
call fcn.10074a01
add esp, 0x40
push str._tUINT_handle__n
push dword [ebp - 8]
call fcn.10074a01
push str._tBUFFER_TYPE_type__n
push dword [ebp - 8]
call fcn.10074a01
push str._tUINT_initialize__n
push dword [ebp - 8]
call fcn.10074a01
push str._tUINT_alignedSize__n
push dword [ebp - 8]
call fcn.10074a01
push str._tUINT_bufferSize__n
push dword [ebp - 8]
call fcn.10074a01
push str._tconst_void_pData__n
push dword [ebp - 8]
call fcn.10074a01
push str._GfxDesc__n_n
push dword [ebp - 8]
call fcn.10074a01
push str.static_const_GfxDesc_gfxDesc____n
push dword [ebp - 8]
call fcn.10074a01
add esp, 0x40
push dword [ebp - 4]
call fcn.1007440a
push dword [ebp - 8]
call fcn.1007440a
add esp, 8
jmp 0x10036abc
push eax
call fcn.1007440a
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x10036ab2
push eax
call fcn.1007440a
add esp, 4
mov dword [0x101b0b68], 1
push 0x10090930
lea eax, [ebp - 0xc]
push str.StateInfo_log.bin
push eax
call fcn.100748aa
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x10036afc
push eax
push 1
push 8
push str.IOCL
call fcn.1007576b
push dword [ebp - 0xc]
call fcn.1007440a
mov eax, dword [0x101b0b68]
add esp, 0x14
mov esp, ebp
pop ebp
ret
mov dword [0x101b0b68], 1
mov eax, 1
mov esp, ebp
pop ebp
ret