Function at 0x1400202cc
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140059b08]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r12, r9
mov rsi, r8
mov r15, rdx
mov r13, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov edi, eax
mov eax, 2
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14003ffa8
mov rbx, rax
mov qword [rsp + 0x48], rax
mov edx, edi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
inc eax
cmp eax, edi
je 0x14002037c
mov rcx, qword [rsp + 0xb8]
mov esi, 0x8000ffff
mov r9d, esi
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x690
call fcn.140005930
nop
test rbx, rbx
je 0x140020375
mov rcx, rbx
call fcn.14003ffb4
mov eax, esi
jmp 0x140020680
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400070e8
nop
lea r8d, [rdi + 0x18]
lea rdx, str.SgrmSgrmAssertions.cat
lea rcx, [rsp + 0x50]
call fcn.140014004
mov qword [rsp + 0x20], rdi
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x38]
mov rdx, rsi
call fcn.14002009c
mov esi, eax
cmp byte [rsp + 0x40], dil
je 0x140020429
mov rdx, qword [rsp + 0x30]
mov r14, qword [rdx]
mov rcx, qword [rsp + 0x38]
mov qword [rdx], rcx
test r14, r14
je 0x140020429
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test esi, esi
jns 0x1400204c2
mov rcx, qword [rsp + 0xb8]
mov r9d, esi
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x696
call fcn.140005930
nop
mov r14, qword [rsp + 0x20]
mov qword [rsp + 0x20], rdi
test r14, r14
je 0x14002047e
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14002049b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
call fcn.140007850
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
test rbx, rbx
je 0x1400204bb
mov rcx, rbx
call fcn.14003ffb4
mov eax, esi
jmp 0x140020680
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400070e8
mov r8d, 0x18
lea rdx, str.SgrmSgrmAssertions.bin
lea rcx, [rsp + 0x50]
call fcn.140014004
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x38]
mov rdx, r13
call fcn.14002009c
mov esi, eax
cmp byte [rsp + 0x40], dil
je 0x14002055b
mov rdx, qword [rsp + 0x30]
mov r14, qword [rdx]
mov rcx, qword [rsp + 0x38]
mov qword [rdx], rcx
test r14, r14
je 0x14002055b
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test esi, esi
jns 0x140020620
mov rcx, qword [rsp + 0xb8]
mov r9d, esi
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x69c
call fcn.140005930
mov r14, qword [rsp + 0x28]
mov qword [rsp + 0x28], rdi
test r14, r14
je 0x1400205af
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
mov r14, qword [rsp + 0x20]
mov qword [rsp + 0x20], rdi
test r14, r14
je 0x1400205df
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400205fc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
call fcn.140007850
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
test rbx, rbx
je 0x14002061c
mov rcx, rbx
call fcn.14003ffb4
mov eax, esi
jmp 0x140020680
mov rax, qword [rsp + 0x28]
mov qword [r15], rax
mov rax, qword [rsp + 0x20]
mov qword [r12], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140020658
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
call fcn.140007850
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
test rbx, rbx
je 0x140020678
mov rcx, rbx
call fcn.14003ffb4
xor eax, eax
jmp 0x140020680
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003f700
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret