Function at 0x14000a280
Capabilities:
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x78dc0
call fcn.140012c30
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78db0], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x7f8
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov word [rsp + 0x80], ax
mov byte [rsp + 0x82], al
xor ebx, ebx
mov qword [rsp + 0x48], rbx
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x990]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x890]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x63ff6
lea rcx, [rsp + 0x14db0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x13ffe
lea rcx, [rsp + 0xdb0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x60], rbx
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0xa90]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0xba0]
call sub.VCRUNTIME140.dll_memset
nop
cmp dword [rdi + 0x128d0], 1
je 0x14000a386
cmp dword [rdi + 0x128d4], 1
jne 0x14000a476
cmp dword [rdi + 0x12870], 0
jne 0x14000a476
mov rax, qword [rdi + 0x12878]
cmp byte [rax], 0
jne 0x14000a476
cmp byte [rdi + 0x1d3d8], 0
jne 0x14000a476
cmp byte [rdi + 0x1d1d8], 0
jne 0x14000a476
cmp dword [rdi + 0x128d4], 1
je 0x14000c415
lea rdx, [rsp + 0xba0]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000c415
cmp eax, 0x105
je 0x14000c415
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0xba0]
mov r8d, 0x105
lea rdx, [rsp + 0xa90]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
cmp eax, 0x2a
je 0x14000a42c
test eax, eax
je 0x14000a42c
cmp eax, 0x50
jne 0x14000c415
mov byte [rsp + 0xb94], 0
xor edx, edx
lea rcx, [rsp + 0xa90]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access_s]
test eax, eax
jne 0x14000c415
lea edx, [rax + 2]
lea rcx, [rsp + 0xa90]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access_s]
test eax, eax
jne 0x14000c415
lea rax, [rsp + 0xa90]
lea r9, [0x14001d4b8]
jmp 0x14000a4b7
lea rax, [rdi + 0x1d3d8]
cmp byte [rax], 0
je 0x14000a48b
lea r9, [0x14001d4b4]
jmp 0x14000a4b7
lea rax, [rdi + 0x1d1d8]
cmp byte [rax], 0
je 0x14000a4a0
lea r9, [0x14001d4b0]
jmp 0x14000a4b7
cmp dword [rdi + 0x12870], 1
jne 0x14000a4dc
mov rax, qword [rdi + 0x12878]
lea r9, [0x14001d494]
mov qword [rsp + 0x20], rax
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x890]
call fcn.140001030
mov ecx, 1
jmp 0x14000a4de
xor ecx, ecx
mov byte [rsp + 0x98e], 0
cmp dword [rsi + 0x28], 0
jne 0x14000a4fc
mov eax, dword [rdi + 0x1d120]
mov dword [rsi + 0x3c], eax
mov dword [rsi + 0x28], 1
mov edx, dword [rdi + 0x1284c]
sub edx, 1
je 0x14000a530
sub edx, 1
je 0x14000a530
cmp edx, 1
jne 0x14000c26d
mov r9, qword [str._s_s_error_stack__06u__06u.json]
test ecx, ecx
jne 0x14000a549
cmp dword [rdi + 0x12870], ecx
cmove r9, qword [str._s_error_stack__06u__06u.json]
jmp 0x14000a549
mov r9, qword [str._s_s_error_stack__06u__06u.txt]
test ecx, ecx
jne 0x14000a549
cmp dword [rdi + 0x12870], ecx
cmove r9, qword [str._s_error_stack__06u__06u.txt]
lea rax, [rdi + 0x1d2d8]
cmp ecx, 1
jne 0x14000a586
lea r8, str.default
cmp byte [rax], 0
cmovne r8, rax
mov ecx, dword [rsi + 0x40]
lea eax, [rcx + 1]
mov dword [rsi + 0x40], eax
mov dword [rsp + 0x38], ecx
mov eax, dword [rsi + 0x3c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x890]
jmp 0x14000a600
movzx ecx, byte [rax]
cmp dword [rdi + 0x12870], 0
jne 0x14000a5d3
lea rdx, [0x14001d4a0]
test cl, cl
cmovne rdx, rax
mov ecx, dword [rsi + 0x40]
lea eax, [rcx + 1]
mov dword [rsi + 0x40], eax
mov dword [rsp + 0x30], ecx
mov eax, dword [rsi + 0x3c]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x990]
call fcn.140001030
jmp 0x14000a61e
lea rdx, [0x14001d498]
test cl, cl
cmovne rdx, rax
mov ecx, dword [rsi + 0x40]
lea eax, [rcx + 1]
mov dword [rsi + 0x40], eax
mov dword [rsp + 0x38], ecx
mov eax, dword [rsi + 0x3c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, qword [rdi + 0x12878]
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
mov edx, 0xff
lea rcx, [rsp + 0x990]
call fcn.140001030
mov byte [rsp + 0xa8e], 0
lea rdx, [0x14001d490]
lea rcx, [rsp + 0x990]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000c26d
mov ecx, dword [rdi + 0x1284c]
sub ecx, 1
je 0x14000a73b
sub ecx, 1
je 0x14000a73b
cmp ecx, 1
jne 0x14000c26d
lea rdx, [rdi + 0x11b18]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0x63ff6
lea r9, [rsp + 0x14db0]
xor r8d, r8d
mov rcx, rdi
call fcn.1400099d0
cmp eax, 1
je 0x14000c26d
mov byte [rsp + 0x78da5], 0
cmp byte [str._error_stack_:], 0
je 0x14000a6e6
mov edx, 0x10
lea rcx, [0x14001d470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d460]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
cmp byte [rsp + 0x14db0], 0
je 0x14000a726
mov edx, 0x63ff6
lea rcx, [rsp + 0x14db0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x14db0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rdx, [rsp + 0x14db0]
mov rcx, rdi
call fcn.140004c90
jmp 0x14000c240
lea rdx, str._______________________________________
mov rcx, rdi
call fcn.140004c90
cmp byte [0x14001d410], 0
je 0x14000a7b2
mov edx, 0x28
lea rcx, [0x14001d3e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d3c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d3bc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d3b8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rdx, str.______Error_Stack_Dump_BEGIN_____
mov rcx, rdi
call fcn.140004c90
cmp byte [0x14001d368], 0
je 0x14000a829
mov edx, 0x28
lea rcx, [0x14001d340]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d318]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d314]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d310]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rdx, [0x14001d2e8]
mov rcx, rdi
call fcn.140004c90
cmp byte [0x14001d2c0], 0
je 0x14000a8a0
mov edx, 0x28
lea rcx, [0x14001d298]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d270]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d26c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d268]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rsi + 4]
mov dword [rsp + 0x20], eax
lea r9, str....Stack_Protected_Flag:...............__d_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000a942
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d234]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d230]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rsi + 8]
mov dword [rsp + 0x20], eax
lea r9, str....Stack_Expandable_Flag:..............__d_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000a9e4
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d1fc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d1f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rsi + 0xc]
mov dword [rsp + 0x20], eax
lea r9, str....Stack_Size_Limited_Flag:............__d_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000aa86
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d1c4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d1c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x20], eax
lea r9, str....Stack_Size_Limit_Size:..............__u_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000ab28
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d18c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d188]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x20], eax
lea r9, str....Stack_Internal_Error_Flag:..........__d_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000abca
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d154]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d150]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rsi + 0x34]
mov dword [rsp + 0x20], eax
lea r9, str....Stack_Max_Entries:..................__u_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000ac6c
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d11c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d118]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rsi + 0x38]
mov dword [rsp + 0x20], eax
lea r9, str....Stack_Entries_Count:................__u_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000ad0e
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d0e4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d0e0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rax, qword [rsi + 0x48]
mov qword [rsp + 0x20], rax
lea r9, str....Stack_Entries_Address:..............__p_.
mov edx, 0x7f8
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x90]
call fcn.140001030
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004c90
cmp byte [rsp + 0x90], 0
je 0x14000adb2
mov edx, 0x7f8
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d0ac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d0a8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rdx, [0x14001d080]
mov rcx, rdi
call fcn.140004c90
cmp byte [0x14001d058], 0
je 0x14000ae29
mov edx, 0x28
lea rcx, [0x14001d030]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d008]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 2
lea rcx, [0x14001d004]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rbx
mov r8d, 1
mov rdx, rax
lea rcx, [0x14001d000]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
xor r15d, r15d
lea r13, [0x140000000]