Function at 0x14003f3b0
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 rbp
push rbx
push rdi
lea rbp, [rsp - 0x2740]
mov eax, 0x2840
call fcn.140065cc0
sub rsp, rax
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x2730], rax
mov rdi, qword [rbp + 0x2760]
mov rbx, qword [rbp + 0x2768]
cmp qword [rdi], 0
je 0x14003f7cf
lea rdx, [rbp + 0x730]
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14003f4ff
lea r8, str..local
lea rcx, [rbp + 0x730]
mov edx, 0x1000
call fcn.14006217c
lea rcx, [rbp + 0x730]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003f4ff
lea rdx, [rbp + 0x730]
lea rcx, str.ProgramFiles
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14003f49f
lea r8, str.Debugging_Tools_for_Windowsdbghelp.dll
lea rcx, [rbp + 0x730]
mov edx, 0x1000
call fcn.14006217c
lea rcx, [rbp + 0x730]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003f49f
lea rcx, [rbp + 0x730]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
cmp qword [rdi + 8], 0
jne 0x14003f517
lea rdx, [rbp + 0x730]
lea rcx, str.ProgramFiles
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14003f4ff
lea r8, str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
lea rcx, [rbp + 0x730]
mov edx, 0x1000
call fcn.14006217c
lea rcx, [rbp + 0x730]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003f4ff
lea rcx, [rbp + 0x730]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
cmp qword [rdi + 8], 0
jne 0x14003f517
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 8], rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003f7cf
lea rdx, str.SymInitialize
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 0x14003f7ba
cmp qword [rdi + 0x28], 0
je 0x14003f7ba
cmp qword [rdi + 0x38], 0
je 0x14003f7ba
cmp qword [rdi + 0x40], 0
je 0x14003f7ba
cmp qword [rdi + 0x48], 0
je 0x14003f7ba
cmp qword [rdi + 0x50], 0
je 0x14003f7ba
cmp qword [rdi + 0x58], 0
je 0x14003f7ba
cmp qword [rdi + 0x68], 0
je 0x14003f7ba
cmp qword [rdi + 0x70], 0
je 0x14003f7ba
cmp qword [rdi + 0x78], 0
je 0x14003f7ba
cmp qword [rdi + 0x60], 0
je 0x14003f7ba
mov qword [rsp + 0x2870], rsi
test rbx, rbx
je 0x14003f6c6
mov rcx, rbx
call fcn.14006210c
mov qword [rdi + 0x18], rax
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
call qword [rdi + 0x58]
test eax, eax
jne 0x14003f6f7
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, 0x210
mov ecx, eax
call qword [rdi + 0x68]
lea rcx, [rbp + 0x331]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0x330], 0
mov esi, eax
call fcn.140062cd0
mov r11, qword [rdi + 0x80]
test r11, r11
je 0x14003f764
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp + 0x330]
mov r8d, 0x400
call r11
test eax, eax
jne 0x14003f764
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]
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x30], 0
call fcn.140062cd0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [rbp + 0x330]
mov r8d, esi
call qword [rax + 8]
mov rsi, qword [rsp + 0x2870]
mov eax, 1
jmp 0x14003f7d1
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r11d, r11d
mov qword [rdi + 8], r11
mov qword [rdi + 0x20], r11
xor eax, eax
mov rcx, qword [rbp + 0x2730]
xor rcx, rsp
call fcn.14005e0b0
add rsp, 0x2840
pop rdi
pop rbx
pop rbp
ret