Function at 0x180267cb0
Capabilities:
Check if file exists
Get file attributes
Get session user name
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2890
call fcn.180269ca0
sub rsp, rax
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rsp + 0x2880], rax
mov rax, qword [rsp + 0x28a0]
cmp qword [rax], 0
jne 0x180267cef
xor eax, eax
jmp 0x18026840e
mov r8d, 0x1000
lea rdx, [rsp + 0x880]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x180267e97
lea rdx, str..local
lea rcx, [rsp + 0x880]
call fcn.180267230
lea rcx, [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180267e97
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x4e0], 0
jne 0x180267dad
mov r8d, 0x1000
lea rdx, [rsp + 0x880]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x180267dad
lea rdx, str.Debugging_Tools_for_Windows__x64_dbghelp.dll
lea rcx, [rsp + 0x880]
call fcn.180267230
lea rcx, [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180267dad
lea rcx, [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x4e0], rax
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x4e0], 0
jne 0x180267e22
mov r8d, 0x1000
lea rdx, [rsp + 0x880]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x180267e22
lea rdx, str.Debugging_Tools_for_Windowsdbghelp.dll
lea rcx, [rsp + 0x880]
call fcn.180267230
lea rcx, [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180267e22
lea rcx, [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x4e0], rax
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x4e0], 0
jne 0x180267e97
mov r8d, 0x1000
lea rdx, [rsp + 0x880]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x180267e97
lea rdx, str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
lea rcx, [rsp + 0x880]
call fcn.180267230
lea rcx, [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180267e97
lea rcx, [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x4e0], rax
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x4e0], 0
jne 0x180267ec5
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x4e0], rax
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x4e0], 0
jne 0x180267ede
xor eax, eax
jmp 0x18026840e
lea rdx, str.SymInitialize
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x528], rax
lea rdx, str.SymCleanup
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x4f0], rax
lea rdx, str.StackWalk64
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x540], rax
lea rdx, str.SymGetOptions
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x518], rax
lea rdx, str.SymSetOptions
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x538], rax
lea rdx, str.SymFunctionTableAccess64
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x4f8], rax
lea rdx, str.SymGetLineFromAddr64
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x500], rax
lea rdx, str.SymGetModuleBase64
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x508], rax
lea rdx, str.SymGetModuleInfo64
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x510], rax
lea rdx, str.SymGetSymFromAddr64
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x520], rax
lea rdx, str.UnDecorateSymbolName
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x548], rax
lea rdx, str.SymLoadModule64
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x530], rax
lea rdx, str.SymGetSearchPath
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28a0]
mov qword [rcx + 0x550], rax
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x4f0], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x4f8], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x508], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x510], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x518], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x520], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x528], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x538], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x540], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x548], 0
je 0x1802681df
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x530], 0
jne 0x180268221
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsp + 0x28a0]
mov qword [rax + 0x4e0], 0
mov rax, qword [rsp + 0x28a0]
mov qword [rax + 0x4f0], 0
xor eax, eax
jmp 0x18026840e
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax + 0x528]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x28a8]
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e8]
call qword [rsp + 0x30]
test eax, eax
jne 0x1802682a0
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
lea rdx, str.SymInitialize
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x40]
mov rax, qword [rsp + 0x28a0]
call qword [rax + 0x518]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
bts eax, 9
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax + 0x538]
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x20]
call qword [rsp + 0x48]
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x480]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x28a0]
cmp qword [rax + 0x550], 0
je 0x180268395
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax + 0x550]
mov qword [rsp + 0x50], rax
mov r8d, 0x400
lea rdx, [rsp + 0x480]
mov rax, qword [rsp + 0x28a0]
mov rcx, qword [rax + 0x4e8]
call qword [rsp + 0x50]
test eax, eax
jne 0x180268395
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov r8d, dword [rsp + 0x28]
lea rdx, str.SymGetSearchPath
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x60]
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov dword [rsp + 0x2c], 0x400
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28a0]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x480]
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x70]
mov eax, 1
mov rcx, qword [rsp + 0x2880]
xor rcx, rsp
call fcn.180269d00
add rsp, 0x2890
pop rdi
ret