Function at 0x1400c3080
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rsi, qword [rbp + 0x340]
cmp qword [rsi + 8], 0
jne 0x1400c30cb
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400c3464
cmp dword [rsi + 0x1c], 0
je 0x1400c30db
mov eax, 1
jmp 0x1400c3464
mov qword [rsp + 0x448], rbx
xor ebx, ebx
test byte [rsi + 0x28], 0x10
mov qword [rsp + 0x450], rdi
je 0x1400c33d8
mov ecx, 0x1000
call fcn.14006194c
mov rbx, rax
test rax, rax
jne 0x1400c3119
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400c3454
mov byte [rax], 0
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x1400c3146
mov edx, 0x1000
mov rcx, rax
call fcn.140062204
lea r8, [0x1401175ec]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea r8, [0x14011769c]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400c319b
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
mov byte [rbp + 0x31f], 0
call fcn.140062204
lea r8, [0x14011772c]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea rdx, [rsp + 0x20]
mov r8d, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400c3241
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov byte [rbp + 0x31f], 0
repne scasb al, byte [rdi]
lea rax, [rsp + 0x20]
dec rax
not rcx
dec rcx
add rcx, rax
lea rax, [rsp + 0x20]
cmp rcx, rax
jb 0x1400c3206
movzx eax, byte [rcx]
cmp al, 0x5c
je 0x1400c3203
cmp al, 0x2f
je 0x1400c3203
cmp al, 0x3a
je 0x1400c3203
lea rax, [rsp + 0x20]
dec rcx
cmp rcx, rax
jae 0x1400c31e5
jmp 0x1400c3206
mov byte [rcx], 0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x1400c3241
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea r8, [0x140117834]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea rdx, [rsp + 0x20]
lea rcx, str._NT_SYMBOL_PATH
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400c328a
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
mov byte [rbp + 0x31f], 0
call fcn.140062204
lea r8, [0x140117eac]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea rdx, [rsp + 0x20]
lea rcx, str._NT_ALTERNATE_SYMBOL_PATH
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400c32d3
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
mov byte [rbp + 0x31f], 0
call fcn.140062204
lea r8, [0x140117ffc]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea rdx, [rsp + 0x20]
lea rcx, str.SYSTEMROOT
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400c3358
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
mov byte [rbp + 0x31f], 0
call fcn.140062204
lea r8, [0x140118184]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea r8, str._system32
lea rcx, [rsp + 0x20]
mov edx, 0x400
call fcn.140062204
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea r8, [0x140118474]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
test byte [rsi + 0x28], 0x10
je 0x1400c33d8
lea rdx, [rsp + 0x20]
lea rcx, str.SYSTEMDRIVE
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, 0x1000
mov rcx, rbx
test eax, eax
je 0x1400c33cc
lea r8, str.SRV
mov byte [rbp + 0x31f], 0
call fcn.140062204
lea r8, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea r8, str.websymbols
mov edx, 0x1000
mov rcx, rbx
call fcn.140062204
lea r8, str.http:__msdl.microsoft.com_download_symbols_
mov edx, 0x1000
mov rcx, rbx
jmp 0x1400c33d3
lea r8, str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
call fcn.140062204
mov rcx, qword [rsi + 8]
mov rdx, rbx
call fcn.14003f3b0
mov edi, eax
test rbx, rbx
je 0x1400c33f3
mov rcx, rbx
call fcn.14006190c
test edi, edi
jne 0x1400c341c
mov rax, qword [rsi]
lea rdx, str.Error_while_initializing_dbghelp.dll
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [rax + 0x20]
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400c3454
mov rdi, qword [rsi + 0x10]
mov rbx, qword [rsi + 8]
mov r8d, dword [rsi + 0x18]
mov rdx, rdi
mov rcx, rbx
call fcn.14003f7f0
test eax, eax
je 0x1400c343e
mov eax, 1
jmp 0x1400c344d
mov rdx, rdi
mov rcx, rbx
call fcn.14003f990
test eax, eax
je 0x1400c3454
mov dword [rsi + 0x1c], 1
mov rbx, qword [rsp + 0x448]
mov rdi, qword [rsp + 0x450]
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14005e0b0
mov rsi, qword [rsp + 0x458]
add rsp, 0x430
pop rbp
ret