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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x4a8
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rax, qword [rsp + 0x4b0]
cmp qword [rax + 8], 0
jne 0x18026574f
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180265d1d
mov rax, qword [rsp + 0x4b0]
cmp dword [rax + 0x1c], 0
je 0x180265767
mov eax, 1
jmp 0x180265d1d
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x4b0]
mov eax, dword [rax + 0x28]
and eax, 0x10
test eax, eax
je 0x180265c49
mov qword [rsp + 0x80], 0x1000
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1802657bc
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180265d1d
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x4b0]
cmp qword [rax + 0x20], 0
je 0x180265810
mov rax, qword [rsp + 0x4b0]
mov r8, qword [rax + 0x20]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8cc0]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8cc4]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov qword [rsp + 0x88], 0x400
lea rdx, [rsp + 0x90]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x1802658a9
mov eax, 1
imul rax, rax, 0x3ff
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0x400
jae 0x180265868
jmp 0x18026586d
call fcn.18026a16c
mov rax, qword [rsp + 0x38]
mov byte [rsp + rax + 0x90], 0
lea r8, [rsp + 0x90]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8cc8]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8d, 0x400
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x1802659a3
mov eax, 1
imul rax, rax, 0x3ff
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x400
jae 0x1802658e5
jmp 0x1802658ea
call fcn.18026a16c
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x90], 0
lea rcx, [rsp + 0x90]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rax, [rsp + rax + 0x8f]
mov qword [rsp + 0x30], rax
jmp 0x180265920
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
cmp qword [rsp + 0x30], rax
jb 0x180265962
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x5c
je 0x180265956
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x180265956
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x180265960
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
jmp 0x180265962
jmp 0x180265913
lea rcx, [rsp + 0x90]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
jbe 0x1802659a3
lea r8, [rsp + 0x90]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8ccc]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8d, 0x400
lea rdx, [rsp + 0x90]
lea rcx, str._NT_SYMBOL_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x180265a21
mov eax, 1
imul rax, rax, 0x3ff
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0x400
jae 0x1802659e0
jmp 0x1802659e5
call fcn.18026a16c
mov rax, qword [rsp + 0x48]
mov byte [rsp + rax + 0x90], 0
lea r8, [rsp + 0x90]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8ce0]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8d, 0x400
lea rdx, [rsp + 0x90]
lea rcx, str._NT_ALTERNATE_SYMBOL_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x180265a9f
mov eax, 1
imul rax, rax, 0x3ff
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x400
jae 0x180265a5e
jmp 0x180265a63
call fcn.18026a16c
mov rax, qword [rsp + 0x50]
mov byte [rsp + rax + 0x90], 0
lea r8, [rsp + 0x90]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8ce4]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8d, 0x400
lea rdx, [rsp + 0x90]
lea rcx, str.SYSTEMROOT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x180265b6a
mov eax, 1
imul rax, rax, 0x3ff
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x400
jae 0x180265ae0
jmp 0x180265ae5
call fcn.18026a16c
mov rax, qword [rsp + 0x58]
mov byte [rsp + rax + 0x90], 0
lea r8, [rsp + 0x90]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8d04]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, str._system32
mov edx, 0x400
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rsp + 0x90]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1802f8d14]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rax, qword [rsp + 0x4b0]
mov eax, dword [rax + 0x28]
and eax, 0x20
test eax, eax
je 0x180265c49
mov r8d, 0x400
lea rdx, [rsp + 0x90]
lea rcx, str.SYSTEMDRIVE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x180265c32
mov eax, 1
imul rax, rax, 0x3ff
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x400
jae 0x180265bc1
jmp 0x180265bc6
call fcn.18026a16c
mov rax, qword [rsp + 0x60]
mov byte [rsp + rax + 0x90], 0
lea r8, str.SRV
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rsp + 0x90]
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, str.websymbols
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, str.https:__msdl.microsoft.com_download_symbols_
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
jmp 0x180265c49
lea r8, str.SRVc:websymbolshttps:__msdl.microsoft.com_download_symbols_
mov edx, 0x1000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rax, qword [rsp + 0x4b0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.180267cb0
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x20], 0
je 0x180265c80
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
cmp dword [rsp + 0x28], 0
jne 0x180265ccc
mov rax, qword [rsp + 0x4b0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x70], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Error_while_initializing_dbghelp.dll
mov rcx, qword [rsp + 0x4b0]
call qword [rsp + 0x70]
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180265d1d
mov rax, qword [rsp + 0x4b0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x4b0]
mov r8d, dword [rax + 0x18]
mov rax, qword [rsp + 0x4b0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
call fcn.180268830
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x180265d19
mov rax, qword [rsp + 0x4b0]
mov dword [rax + 0x1c], 1
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180269d00
add rsp, 0x4a8
ret