Function at 0x14004b2d0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x880
mov rax, qword [0x1401a5020]
xor rax, rsp
mov qword [rsp + 0x870], rax
test r9, r9
lea rbp, [rsp + 0x370]
mov rdi, r8
lea rcx, [rsp + 0x50]
cmovne rbp, r9
mov r14, rdx
xor edx, edx
mov r8d, 0x208
call fcn.140081700
mov r8d, 0x206
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r15d, r15d
test eax, eax
jne 0x14004b346
lea rdx, str.Unknown
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x14004b386
lea rax, [rsp + 0x50]
nop dword [rax + rax]
movzx ecx, byte [rax]
inc rax
test cl, cl
jne 0x14004b350
nop word [rax + rax]
movzx ecx, byte [rax - 1]
lea rdx, [rsp + 0x50]
dec rax
cmp rax, rdx
je 0x14004b376
cmp cl, 0x5c
jne 0x14004b360
cmp cl, 0x5c
cmovne rax, r15
lea rbx, [rax + 1]
test rax, rax
jne 0x14004b38b
lea rbx, [rsp + 0x50]
lea r9, str.ERRORLOG.TXT
mov r8, rdi
lea rdx, str._s_s
lea rcx, [rsp + 0x260]
call fcn.14001b910
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x260]
mov dword [rsp + 0x28], 0x80000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004b3f2
lea rcx, str.Error_creating_exception_report_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14004b56b
mov r9d, 2
mov qword [rsp + 0x8b0], rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rsi, qword [r14]
mov r14, qword [r14 + 8]
mov r10d, dword [rsi]
mov ecx, r10d
call fcn.14004af10
mov r9, rax
mov dword [rsp + 0x20], r10d
lea rdx, str._s_caused__s__0x_08x_
mov rcx, rbp
mov r8, rbx
call fcn.14001b910
mov rdx, rbp
mov rcx, rdi
call fcn.14004a0e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x28], eax
mov r9d, ebx
lea rdx, str._r_nProcessId_d__0x_x__ThreadId_d__0x_x__r_n
mov dword [rsp + 0x20], eax
mov r8d, ebx
mov rcx, rdi
call fcn.14004a0e0
mov rcx, rdi
call fcn.14004ac40
cmp dword [rsi], 0xc0000005
jne 0x14004b4d9
cmp dword [rsi + 0x18], 2
jb 0x14004b4d9
cmp qword [rsi + 0x20], r15
lea rax, str.Read_from
mov r9, qword [rsi + 0x28]
lea r8, str.Write_to
cmove r8, rax
lea rdx, str._s_location__08x_caused_an_access_violation._r_n
lea rcx, [rsp + 0x480]
call fcn.14001b910
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea r8, [rsp + 0x480]
mov rcx, rdi
lea rdx, [0x1401623b4]
call fcn.14004a0e0
mov rdx, r14
mov rcx, rdi
call fcn.14004ba80
lea rdx, str.code_at_the_instruction_pointer_isnt_available_under_x64._r_n
mov rcx, rdi
call fcn.14004a0e0
lea rdx, str.stack_dump_isnt_available_under_x64._r_n
mov rcx, rdi
call fcn.14004a0e0
mov rcx, rdi
call fcn.14004a5b0
lea r8, str.ERRORLOG.TXT
mov rcx, rdi
lea rdx, str._r_n__end_of__s___r_n
call fcn.14004a0e0
cmp dword [0x1401b1d2c], r15d
mov rsi, qword [rsp + 0x8b0]
jle 0x14004b562
lea rcx, [0x1401b7670]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, eax
lea rdx, [0x1401b7670]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x1401b1d2c], r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140050f90
add rsp, 0x880
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret