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

Disassembly:
push rbx
push rsi
mov eax, 0x1848
call fcn.180095c60
sub rsp, rax
mov rax, qword [0x1800e9040]
xor rax, rsp
mov qword [rsp + 0x1830], rax
cmp qword [rcx], 0
mov rbx, rdx
mov rsi, rcx
je 0x18007c2dc
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18007bf7d
lea r8, str..local
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18007bf7d
cmp qword [rsi + 0x4e0], 0
jne 0x18007bf7d
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18007bebb
lea r8, str.Debugging_Tools_for_Windows__x64_dbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18007bebb
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x4e0], rax
cmp qword [rsi + 0x4e0], 0
jne 0x18007bf7d
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18007bf1e
lea r8, str.Debugging_Tools_for_Windowsdbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18007bf1e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x4e0], rax
cmp qword [rsi + 0x4e0], 0
jne 0x18007bf7d
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18007bf7d
lea r8, str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18007bf7d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x4e0], rax
mov rax, qword [rsi + 0x4e0]
test rax, rax
jne 0x18007bfa6
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x4e0], rax
test rax, rax
je 0x18007c2dc
lea rdx, str.SymInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymCleanup
mov qword [rsi + 0x528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.StackWalk64
mov qword [rsi + 0x4f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymGetOptions
mov qword [rsi + 0x540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymSetOptions
mov qword [rsi + 0x518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymFunctionTableAccess64
mov qword [rsi + 0x538], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymGetLineFromAddr64
mov qword [rsi + 0x4f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymGetModuleBase64
mov qword [rsi + 0x500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymGetModuleInfo64
mov qword [rsi + 0x508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymGetSymFromAddr64
mov qword [rsi + 0x510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.UnDecorateSymbolName
mov qword [rsi + 0x520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymLoadModule64
mov qword [rsi + 0x548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x4e0]
lea rdx, str.SymGetSearchPath
mov qword [rsi + 0x530], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rsi + 0x4f0], 0
mov qword [rsi + 0x550], rax
je 0x18007c2bd
cmp qword [rsi + 0x4f8], 0
je 0x18007c2bd
cmp qword [rsi + 0x508], 0
je 0x18007c2bd
cmp qword [rsi + 0x510], 0
je 0x18007c2bd
cmp qword [rsi + 0x518], 0
je 0x18007c2bd
cmp qword [rsi + 0x520], 0
je 0x18007c2bd
mov rax, qword [rsi + 0x528]
test rax, rax
je 0x18007c2bd
cmp qword [rsi + 0x538], 0
je 0x18007c2bd
cmp qword [rsi + 0x540], 0
je 0x18007c2bd
cmp qword [rsi + 0x548], 0
je 0x18007c2bd
cmp qword [rsi + 0x530], 0
je 0x18007c2bd
mov rcx, qword [rsi + 0x4e8]
xor r8d, r8d
mov qword [rsp + 0x1870], rbp
mov rdx, rbx
mov qword [rsp + 0x1840], rdi
call rax
test eax, eax
jne 0x18007c1e2
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rdx, str.SymInitialize
mov r8d, eax
mov rcx, rdi
call rbx
call qword [rsi + 0x518]
mov ecx, eax
mov rax, qword [rsi + 0x538]
or ecx, 0x210
call rax
xor edx, edx
lea rcx, [rsp + 0x1430]
mov r8d, 0x400
mov ebp, eax
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsi + 0x550]
test r9, r9
je 0x18007c25a
mov rcx, qword [rsi + 0x4e8]
lea rdx, [rsp + 0x1430]
mov r8d, 0x400
call r9
test eax, eax
jne 0x18007c25a
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rdx, str.SymGetSearchPath
mov r8d, eax
mov rcx, rdi
call rbx
xor edx, edx
lea rcx, [rsp + 0x1030]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x400
lea rcx, [rsp + 0x1030]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, qword [rsi]
lea r9, [rsp + 0x1030]
mov r8d, ebp
lea rdx, [rsp + 0x1430]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x1840]
mov eax, 1
mov rbp, qword [rsp + 0x1870]
jmp 0x18007c2de
mov rcx, qword [rsi + 0x4e0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov qword [rsi + 0x4e0], rax
mov qword [rsi + 0x4f0], rax
jmp 0x18007c2de
xor eax, eax
mov rcx, qword [rsp + 0x1830]
xor rcx, rsp
call fcn.180094b70
add rsp, 0x1848
pop rsi
pop rbx
ret