Function at 0x18009c8d0
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1430
call fcn.180105690
sub rsp, rax
mov rax, qword [0x180163880]
xor rax, rsp
mov qword [rsp + 0x1420], rax
cmp byte [0x1801675c0], 0
mov rsi, rdx
mov rbx, rcx
je 0x18009c979
lea rdx, [0x1801675c0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x18009c917
mov edi, 0xfff
lea rcx, [rsp + 0x20]
cmp rax, rdi
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8, [0x1801492e0]
mov byte [rsp + rdi + 0x20], 0
mov edx, 0x1000
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18009c979
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x18009ca83
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18009c9d0
lea r8, str.Debugging_Tools_for_Windows__x64_dbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18009c9d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x18009ca83
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18009ca23
lea r8, str.Debugging_Tools_for_Windowsdbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18009ca23
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x18009ca83
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18009ca76
lea r8, str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
mov edx, 0x1000
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18009ca76
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x18009ca83
lea rcx, [0x180149310]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x4e0], rax
test rax, rax
je 0x18009cd01
lea rdx, str.SymInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymCleanup
mov qword [rbx + 0x528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.StackWalk64
mov qword [rbx + 0x4f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymGetOptions
mov qword [rbx + 0x548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymSetOptions
mov qword [rbx + 0x510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymFunctionTableAccess64
mov qword [rbx + 0x540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymGetLineFromAddr64
mov qword [rbx + 0x4f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymGetModuleBase64
mov qword [rbx + 0x520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymGetModuleInfo64
mov qword [rbx + 0x500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymGetSymFromAddr64
mov qword [rbx + 0x508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.UnDecorateSymbolName
mov qword [rbx + 0x518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymLoadModule64
mov qword [rbx + 0x550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymUnloadModule64
mov qword [rbx + 0x530], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.SymGetSearchPath
mov qword [rbx + 0x538], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x4e0]
lea rdx, str.EnumerateLoadedModules64
mov qword [rbx + 0x558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x4f0], 0
mov rcx, rax
mov qword [rbx + 0x560], rax
je 0x18009cde1
cmp qword [rbx + 0x4f8], 0
je 0x18009cde1
cmp qword [rbx + 0x500], 0
je 0x18009cde1
cmp qword [rbx + 0x508], 0
je 0x18009cde1
cmp qword [rbx + 0x510], 0
je 0x18009cde1
cmp qword [rbx + 0x518], 0
je 0x18009cde1
mov rax, qword [rbx + 0x528]
test rax, rax
je 0x18009cde1
cmp qword [rbx + 0x540], 0
je 0x18009cde1
cmp qword [rbx + 0x548], 0
je 0x18009cde1
cmp qword [rbx + 0x550], 0
je 0x18009cde1
cmp qword [rbx + 0x530], 0
je 0x18009cde1
cmp qword [rbx + 0x538], 0
je 0x18009cde1
test rcx, rcx
je 0x18009cde1
mov rcx, qword [rbx + 0x4e8]
xor r8d, r8d
mov rdx, rsi
call rax
test eax, eax
jne 0x18009cd28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SymInitialize_failed__ErrorCode_lu__n
call fcn.180005bb0
xor al, al
mov rcx, qword [rsp + 0x1420]
xor rcx, rsp
call fcn.180104980
lea r11, [rsp + 0x1430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [rbx + 0x510]
mov ecx, eax
mov rax, qword [rbx + 0x540]
or ecx, 0x210
call rax
xor edx, edx
lea rcx, [rsp + 0x1020]
mov r8d, 0x400
mov edi, eax
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rbx + 0x558]
test r9, r9
je 0x18009cd92
mov rcx, qword [rbx + 0x4e8]
lea rdx, [rsp + 0x1020]
mov r8d, 0x400
call r9
test eax, eax
jne 0x18009cd92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SymGetSearchPath_failed__ErrorCode_lu__n
call fcn.180005bb0
mov r8, qword [rbx]
mov rax, qword [r8]
test rax, rax
je 0x18009cdad
mov r8, qword [r8 + 0x28]
lea rcx, [rsp + 0x1020]
mov edx, edi
call rax
lea rcx, [rbx + 0x568]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x500
mov dword [rbx + 0x594], 0x20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
mov qword [rbx + 0x598], rax
setne al
jmp 0x18009cd03
mov rcx, qword [rbx + 0x4e0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov qword [rbx + 0x4e0], rax
mov qword [rbx + 0x4f0], rax
jmp 0x18009cd03