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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x2840
call fcn.1400c83e0
sub rsp, rax
mov rax, qword [0x140174940]
xor rax, rsp
mov qword [rsp + 0x2830], rax
cmp qword [rcx], 0
mov rbx, rdx
mov rdi, rcx
je 0x1400b5935
mov r8d, 0x1000
lea rdx, [rsp + 0x830]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400b566b
lea r8, str..local
mov edx, 0x1000
lea rcx, [rsp + 0x830]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400b566b
cmp qword [rdi + 8], 0
jne 0x1400b566b
mov r8d, 0x1000
lea rdx, [rsp + 0x830]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400b559d
lea r8, str.Debugging_Tools_for_Windows__x64_dbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x830]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b559d
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
cmp qword [rdi + 8], 0
jne 0x1400b566b
mov r8d, 0x1000
lea rdx, [rsp + 0x830]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400b5606
lea r8, str.Debugging_Tools_for_Windowsdbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x830]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b5606
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
cmp qword [rdi + 8], 0
jne 0x1400b566b
mov r8d, 0x1000
lea rdx, [rsp + 0x830]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400b566b
lea r8, str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x830]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b566b
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
mov rax, qword [rdi + 8]
test rax, rax
jne 0x1400b568e
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
test rax, rax
je 0x1400b5935
lea rdx, str.SymInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymCleanup
mov qword [rdi + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.StackWalk64
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymGetOptions
mov qword [rdi + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymSetOptions
mov qword [rdi + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymFunctionTableAccess64
mov qword [rdi + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymGetLineFromAddr64
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymGetModuleBase64
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymGetModuleInfo64
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymGetSymFromAddr64
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.UnDecorateSymbolName
mov qword [rdi + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymLoadModule64
mov qword [rdi + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 8]
lea rdx, str.SymGetSearchPath
mov qword [rdi + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rdi + 0x20], 0
mov qword [rdi + 0x80], rax
je 0x1400b591f
cmp qword [rdi + 0x28], 0
je 0x1400b591f
cmp qword [rdi + 0x38], 0
je 0x1400b591f
cmp qword [rdi + 0x40], 0
je 0x1400b591f
cmp qword [rdi + 0x48], 0
je 0x1400b591f
cmp qword [rdi + 0x50], 0
je 0x1400b591f
cmp qword [rdi + 0x58], 0
je 0x1400b591f
cmp qword [rdi + 0x68], 0
je 0x1400b591f
cmp qword [rdi + 0x70], 0
je 0x1400b591f
cmp qword [rdi + 0x78], 0
je 0x1400b591f
cmp qword [rdi + 0x60], 0
je 0x1400b591f
mov qword [rsp + 0x2860], rsi
test rbx, rbx
je 0x1400b5834
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rdi + 0x18], rax
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [rdi + 0x58]
test eax, eax
jne 0x1400b5865
mov rax, qword [rdi]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
lea rdx, str.SymInitialize
mov r8d, eax
xor r9d, r9d
call qword [rbx + 0x20]
call qword [rdi + 0x48]
or eax, reloc.mfc140u.dll_CHandleMap::CHandleMap
mov ecx, eax
call qword [rdi + 0x68]
xor edx, edx
lea rcx, [rsp + 0x430]
mov r8d, 0x400
mov esi, eax
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400b58cd
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x430]
mov r8d, 0x400
call r9
test eax, eax
jne 0x1400b58cd
mov rax, qword [rdi]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
lea rdx, str.SymGetSearchPath
mov r8d, eax
xor r9d, r9d
call qword [rbx + 0x20]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x400
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, esi
lea rdx, [rsp + 0x430]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x2860]
mov eax, 1
jmp 0x1400b5937
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov qword [rdi + 8], rax
mov qword [rdi + 0x20], rax
jmp 0x1400b5937
xor eax, eax
mov rcx, qword [rsp + 0x2830]
xor rcx, rsp
call fcn.1400c7c30
mov rbx, qword [rsp + 0x2868]
add rsp, 0x2840
pop rdi
ret