Function at 0x140003660
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140029008]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor edi, edi
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
or ebx, 0xffffffff
mov dword [rsp + 0x30], edi
mov word [rsp + 0x60], di
call fcn.14000a2f0
lea rcx, [rbp + 0x172]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x38], rdi
mov word [rbp + 0x170], di
call fcn.14000a2f0
lea r9, [rsp + 0x38]
lea rcx, [0x14001a3d8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, eax
test eax, eax
jns 0x140003759
xorps xmm0, xmm0
lea rdi, vtable._com_error.0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], eax
movdqu xmmword [rsp + 0x50], xmm0
call fcn.1400031f0
lea r8, str.OpenADL:_SHGetKnownFolderPath:_Get_Windows_System_folder_failed__hr0x_x__s_
lea rcx, [rsp + 0x60]
mov r9d, esi
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140003160
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x140003740
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003953
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140003953
mov r9, qword [rsp + 0x38]
test r9, r9
jne 0x14000377b
lea r8, str.OpenADL:_SHGetKnownFolderPath:_Get_NULL_Windows_System_folder_
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140003160
jmp 0x140003953
lea rax, str.atiadlxx.dll
lea r8, str._s_s
lea rcx, [rbp + 0x170]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.140003160
mov esi, eax
test eax, eax
jns 0x140003811
xorps xmm0, xmm0
lea rdi, vtable._com_error.0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], eax
movdqu xmmword [rsp + 0x50], xmm0
call fcn.1400031f0
lea r8, str.OpenADL:_StrPrintfW:_Set_ADL_path_failed__hr0x_x__s_
lea rcx, [rsp + 0x60]
mov r9d, esi
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140003160
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x1400037f8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003953
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140003953
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140003841
lea r9, [rbp + 0x170]
lea r8, str.OpenADL:_PathFileExistsW:__ws_not_found_
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140003160
jmp 0x140003953
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x38], rdi
call fcn.140003560
test eax, eax
jne 0x14000388f
mov eax, dword [rsp + 0x30]
xor edx, edx
lea r9, [rbp + 0x170]
lea rcx, [rsp + 0x60]
cmp eax, 0x800b0100
jne 0x1400038d1
lea r8, str.OpenADL:__ws_has_no_digital_signature._Loading_it_as_an_exception_since_it_didnt_start_having_signatures_till_Sept_2016._ret0x_x
mov dword [rsp + 0x20], eax
call fcn.140003160
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14002bf88], rax
test rax, rax
jne 0x1400038e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rbp + 0x170]
lea r8, str.OpenADL:_LoadLibraryW:_Load___ws__failed__err0x_x_
lea rcx, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140003160
jmp 0x140003953
lea r8, str.OpenADL:_Verify__ws_digital_signature_failed__lVerifyCode0x_x_dwErr0x_x
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.140003160
jmp 0x140003953
lea rdx, str.ADL_Main_Control_Create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000390e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenADL:_GetProcAddress:_Get_ADL_MAIN_CONTROL_CREATE_function_address_failed__err0x_x_
mov r9d, eax
jmp 0x140003947
lea rcx, [0x140003550]
mov edx, 1
call rax
mov ebx, eax
test eax, eax
je 0x140003979
mov rcx, qword [0x14002bf88]
lea rdx, str.ADL_Main_Control_Destroy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000393d
call rax
mov r9d, ebx
lea r8, str.OpenADL:_ADL_MAIN_CONTROL_CREATE:_call_function_failed__ADL_Err_d_
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140003160
mov rcx, qword [0x14002bf88]
test rcx, rcx
je 0x140003965
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140003975
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
jmp 0x14000397b
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140007480
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret