Function at 0x180077770
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.180091550
sub rsp, rax
mov rax, qword [0x1800e3040]
xor rax, rsp
mov qword [rsp + 0x1830], rax
cmp qword [rcx], 0
mov rbx, rdx
mov rsi, rcx
je 0x180077c6c
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18007790d
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 0x18007790d
cmp qword [rsi + 0x4e0], 0
jne 0x18007790d
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18007784b
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 0x18007784b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x4e0], rax
cmp qword [rsi + 0x4e0], 0
jne 0x18007790d
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1800778ae
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 0x1800778ae
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x4e0], rax
cmp qword [rsi + 0x4e0], 0
jne 0x18007790d
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18007790d
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 0x18007790d
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 0x180077936
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x4e0], rax
test rax, rax
je 0x180077c6c
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 0x180077c4d
cmp qword [rsi + 0x4f8], 0
je 0x180077c4d
cmp qword [rsi + 0x508], 0
je 0x180077c4d
cmp qword [rsi + 0x510], 0
je 0x180077c4d
cmp qword [rsi + 0x518], 0
je 0x180077c4d
cmp qword [rsi + 0x520], 0
je 0x180077c4d
mov rax, qword [rsi + 0x528]
test rax, rax
je 0x180077c4d
cmp qword [rsi + 0x538], 0
je 0x180077c4d
cmp qword [rsi + 0x540], 0
je 0x180077c4d
cmp qword [rsi + 0x548], 0
je 0x180077c4d
cmp qword [rsi + 0x530], 0
je 0x180077c4d
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 0x180077b72
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 0x180077bea
mov rcx, qword [rsi + 0x4e8]
lea rdx, [rsp + 0x1430]
mov r8d, 0x400
call r9
test eax, eax
jne 0x180077bea
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 0x180077c6e
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 0x180077c6e
xor eax, eax
mov rcx, qword [rsp + 0x1830]
xor rcx, rsp
call fcn.1800903f0
add rsp, 0x1848
pop rsi
pop rbx
ret