Function at 0x140012f70
Capabilities:
Write file on windows

Disassembly:
push rdi
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0xb0], rbx
lea r8, str.FunctionName
xor ebx, ebx
mov qword [rsp + 0x78], rsi
mov edi, ebx
mov r13, rdx
mov r14, rcx
call fcn.140012770
mov r15d, eax
test eax, eax
jns 0x140013068
mov r9d, 0x114f
lea rsi, [0x14003c070]
mov r11d, ebx
nop dword [rax]
mov ecx, ebx
mov rdx, r15
add rcx, rcx
mov r8d, ebx
mov eax, dword [rsi + rcx*8]
sub rdx, rax
je 0x140012ff3
mov ecx, r9d
sub ecx, ebx
shr ecx, 1
add ecx, ebx
test rdx, rdx
mov eax, ecx
cmovns eax, r9d
cmovns ebx, ecx
inc ebx
mov r9d, eax
cmp eax, ebx
jae 0x140012fc0
jmp 0x140012ffb
add r8, r8
mov r11, qword [rsi + r8*8 + 8]
cmp dword [0x140055944], edi
je 0x1400133b0
lea rax, str.GetEventProperty__pEvent__L_FunctionName___
mov ebx, 7
mov qword [rsp + 0x28], rax
lea r8, str._hr0x_08X__s_from__s_n
movzx edx, bx
mov r9d, r15d
mov ecx, 0xfffffff4
mov qword [rsp + 0x20], r11
call fcn.1400085c0
cmp dword [0x140055944], edi
je 0x1400133b0
mov dword [rsp + 0x20], 0x27e
lea r9, str.avcoremf_samplesmf360mftracemftracelibetwwriter.cpp
movzx edx, bx
lea r8, str.___at__s:_i_n
mov ecx, 0xfffffff4
call fcn.1400085c0
jmp 0x1400133b0
cmp dword [r14 + 0x24], 1
mov rdx, r13
mov rcx, r14
jbe 0x140013133
call fcn.140012680
mov ecx, dword [r14 + 0x24]
mov edi, 1
mov rax, qword [r14 + 0x18]
dec ecx
mov r8d, edi
mov byte [rcx + rax], 0x20
mov edx, dword [r14 + 0x24]
mov r9, qword [r14 + 0x28]
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.msvcrt.dll_fwrite]
lea r8, str.FormattedString
mov rdx, r13
mov rcx, r14
call fcn.140012770
mov r15d, eax
test eax, eax
jns 0x1400131ce
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0xc0], rbx
mov ecx, eax
call fcn.140008520
cmp dword [0x140055944], ebx
je 0x1400133b0
lea rax, str.GetEventProperty__pEvent__L_FormattedString___
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea ebx, [rdi + 6]
mov rax, qword [rsp + 0xc0]
lea r8, str._hr0x_08X__s_from__s_n
movzx edx, bx
mov ecx, 0xfffffff4
mov qword [rsp + 0x20], rax
call fcn.1400085c0
cmp dword [0x140055944], 0
je 0x1400133b0
mov dword [rsp + 0x20], 0x28b
jmp 0x140013048
lea r8, str.FormattedString
call fcn.140012770
mov r15d, eax
test eax, eax
jns 0x1400131b7
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0xc0], rbx
mov ecx, eax
call fcn.140008520
cmp dword [0x140055944], ebx
je 0x1400133b0
lea rax, str.GetEventProperty__pEvent__L_FormattedString___
mov ebx, 7
mov qword [rsp + 0x28], rax
lea r8, str._hr0x_08X__s_from__s_n
mov rax, qword [rsp + 0xc0]
mov r9d, r15d
movzx edx, bx
mov ecx, 0xfffffff4
mov qword [rsp + 0x20], rax
call fcn.1400085c0
cmp dword [0x140055944], edi
je 0x1400133b0
mov dword [rsp + 0x20], 0x293
jmp 0x140013048
cmp dword [r14 + 0x24], 1
mov rdx, r13
mov rcx, r14
jbe 0x1400131f6
call fcn.140012680
mov edi, 1
mov ecx, dword [r14 + 0x24]
mov r8, rdi
mov rax, qword [r14 + 0x18]
dec ecx
mov byte [rcx + rax], 0xa
mov edx, dword [r14 + 0x24]
mov r9, qword [r14 + 0x28]
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.msvcrt.dll_fwrite]
jmp 0x1400133b0
call fcn.140012c00
mov r15d, eax
test eax, eax
jns 0x140013273
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0xc0], rbx
mov ecx, eax
call fcn.140008520
cmp dword [0x140055944], ebx
je 0x1400133b0
lea rax, str.GetEventInformation__pEvent__
mov ebx, 7
mov qword [rsp + 0x28], rax
lea r8, str._hr0x_08X__s_from__s_n
mov rax, qword [rsp + 0xc0]
mov r9d, r15d
movzx edx, bx
mov ecx, 0xfffffff4
mov qword [rsp + 0x20], rax
call fcn.1400085c0
cmp dword [0x140055944], edi
je 0x1400133b0
mov dword [rsp + 0x20], 0x2a4
jmp 0x140013048
mov r9, qword [r14 + 0x30]
mov qword [rsp + 0x80], rbp
mov rbp, qword [r14 + 0x18]
mov r8d, dword [rbp + 0x1c]
xor r8d, dword [rbp + 0x18]
xor r8d, dword [rbp + 0x14]
xor r8d, dword [rbp + 0x10]
mov qword [rsp + 0x70], r12
lea r12, [rbp + 0x10]
mov qword [rsp + 0xc8], rbp
test r9, r9
je 0x1400132e7
xor edx, edx
mov eax, r8d
div dword [r14 + 0x40]
mov rdx, qword [r9 + rdx*8]
test rdx, rdx
je 0x1400132e7
nop dword [rax + rax]
cmp dword [rdx + 0x20], r8d
jne 0x1400132de
mov rax, qword [rdx]
cmp rax, qword [r12]
jne 0x1400132de
mov rax, qword [rdx + 8]
cmp rax, qword [r12 + 8]
je 0x1400133a3
mov rdx, qword [rdx + 0x18]
test rdx, rdx
jne 0x1400132c0
mov rdx, r12
lea rcx, [r14 + 0x30]
call fcn.140014b60
mov rdx, r13
mov rcx, r14
mov dword [rax], 1
call fcn.140012680
movzx ecx, byte [rbp + 0x1e]
movzx edx, byte [rbp + 0x1d]
movzx eax, byte [rbp + 0x1f]
movzx r10d, byte [rbp + 0x1c]
mov r8, qword [rsp + 0xc8]
movzx r11d, byte [rbp + 0x1b]
movzx ebx, byte [rbp + 0x1a]
movzx edi, byte [rbp + 0x19]
movzx esi, byte [rbp + 0x18]
movzx ebp, word [rbp + 0x16]
movzx r9d, word [r8 + 0x14]
mov r8d, dword [r12]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov rcx, qword [r14 + 0x28]
mov dword [rsp + 0x50], edx
lea rdx, str.WARNING:_Missing_TMF_file__08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x.tmf_n
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0xc0], 1
call qword [sym.imp.msvcrt.dll_fprintf_s]
cmp qword [r14 + 0x38], 1
jne 0x14001339e
mov rcx, qword [r14 + 0x28]
lea rdx, str.WARNING:_Is_TRACE_FORMAT_SEARCH_PATH_set_correctly__n
call qword [sym.imp.msvcrt.dll_fprintf_s]
mov edi, dword [rsp + 0xc0]
jmp 0x1400133a3
mov edi, 1
mov rbp, qword [rsp + 0x80]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xb0]
test r15d, r15d
jns 0x1400133e5
test edi, edi
jne 0x1400133d1
mov rdx, r13
mov rcx, r14
call fcn.140012680
mov rcx, qword [r14 + 0x28]
lea rdx, str._event_decoding_failed__hr0x_08X__n
mov r8d, r15d
call qword [sym.imp.msvcrt.dll_fprintf_s]
add rsp, 0x88
pop r15
pop r14
pop r13
pop rdi
ret