Function at 0x14001c6fc
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14003c4b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r13, r9
mov r15, r8
mov r12, rdx
mov qword [rsp + 0x48], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
mov esi, eax
mov eax, 2
mul rsi
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140028b88
mov rbx, rax
mov qword [rsp + 0x58], rax
mov edx, esi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
inc eax
cmp eax, esi
je 0x14001c7ae
mov rcx, qword [rsp + 0xc8]
mov edi, 0x8000ffff
mov r9d, edi
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x610
call fcn.140002e14
nop
test rbx, rbx
je 0x14001c7a7
mov rcx, rbx
call fcn.140028698
mov eax, edi
jmp 0x14001ca2c
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140011c54
nop
lea rdx, str.SgrmSgrmAssertions.cat
lea rcx, [rsp + 0x60]
call fcn.140011414
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x38]
mov rdx, r15
call fcn.14001c50c
mov esi, eax
cmp byte [rsp + 0x40], r14b
je 0x14001c839
mov rdx, qword [rsp + 0x30]
mov r15, qword [rdx]
mov rcx, qword [rsp + 0x38]
mov qword [rdx], rcx
test r15, r15
je 0x14001c839
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test esi, esi
jns 0x14001c89d
mov rcx, qword [rsp + 0xc8]
mov r9d, esi
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x616
call fcn.140002e14
nop
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x20], r14
test rdi, rdi
je 0x14001c87e
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop
lea rcx, [rsp + 0x60]
call fcn.1400106cc
nop
test rbx, rbx
je 0x14001c896
mov rcx, rbx
call fcn.140028698
mov eax, esi
jmp 0x14001ca2c
inc rdi
cmp word [rbx + rdi*2], r14w
jne 0x14001c89d
cmp rdi, qword [rsp + 0x78]
ja 0x14001c8dc
lea rsi, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rsi, qword [rsp + 0x60]
mov qword [rsp + 0x70], rdi
add rdi, rdi
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov word [rdi + rsi], r14w
jmp 0x14001c8ec
mov r9, rbx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400105d4
lea rdx, str.SgrmSgrmAssertions.bin
lea rcx, [rsp + 0x60]
call fcn.140011414
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
call fcn.14001c50c
mov edi, eax
cmp byte [rsp + 0x40], r14b
je 0x14001c968
mov rdx, qword [rsp + 0x30]
mov rsi, qword [rdx]
mov rcx, qword [rsp + 0x38]
mov qword [rdx], rcx
test rsi, rsi
je 0x14001c968
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test edi, edi
jns 0x14001c9f0
mov rcx, qword [rsp + 0xc8]
mov r9d, edi
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x61c
call fcn.140002e14
mov rsi, qword [rsp + 0x28]
mov qword [rsp + 0x28], r14
test rsi, rsi
je 0x14001c9b0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop
mov rsi, qword [rsp + 0x20]
mov qword [rsp + 0x20], r14
test rsi, rsi
je 0x14001c9d4
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop
lea rcx, [rsp + 0x60]
call fcn.1400106cc
nop
test rbx, rbx
je 0x14001c9ec
mov rcx, rbx
call fcn.140028698
mov eax, edi
jmp 0x14001ca2c
mov rax, qword [rsp + 0x28]
mov qword [r12], rax
mov rax, qword [rsp + 0x20]
mov qword [r13], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x60]
call fcn.1400106cc
nop
test rbx, rbx
je 0x14001ca24
mov rcx, rbx
call fcn.140028698
xor eax, eax
jmp 0x14001ca2c
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400281d0
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret