Function at 0x1400074a0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x630]
sub rsp, 0x730
movaps xmm0, xmmword [str.DRIVERSQL_Server_Native_Client_10.0_SERVERSKYPROVDBMKM_DATABASESkynetDB_UIDDHOPUser_PWDpredictDHOP_amd_MARS_ConnectionYes]
mov rbx, rcx
movaps xmm1, xmmword [0x140060e40]
lea rcx, [rbp - 0x3e]
movzx eax, word [0x140060eb0]
xor edx, edx
movaps xmmword [rsp + 0x40], xmm0
mov r8d, 0xaa
movaps xmm0, xmmword [0x140060e50]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x140060e60]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x140060e70]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm1, xmmword [0x140060e80]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x140060e90]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x140060ea0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x40], ax
call fcn.140013e20
movaps xmm0, xmmword [str.DRIVERSQL_Server_Native_Client_11.0_SERVERSKYPROVDBMKM_DATABASESkynetDB_UIDDHOPUser_PWDpredictDHOP_amd_MARS_ConnectionYes]
lea rcx, [rbp + 0xf2]
movaps xmm1, xmmword [0x140060ed0]
xor edx, edx
movzx eax, word [0x140060f40]
mov r8d, 0xaa
movaps xmmword [rbp + 0x70], xmm0
movaps xmm0, xmmword [0x140060ee0]
movaps xmmword [rbp + 0x80], xmm1
movaps xmm1, xmmword [0x140060ef0]
movaps xmmword [rbp + 0x90], xmm0
movaps xmm0, xmmword [0x140060f00]
movaps xmmword [rbp + 0xa0], xmm1
movaps xmm1, xmmword [0x140060f10]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmm0, xmmword [0x140060f20]
movaps xmmword [rbp + 0xc0], xmm1
movaps xmm1, xmmword [0x140060f30]
movaps xmmword [rbp + 0xd0], xmm0
movaps xmmword [rbp + 0xe0], xmm1
mov word [rbp + 0xf0], ax
call fcn.140013e20
lea rdx, [rbp + 0x2a0]
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov rcx, rbx
call sub.ODBC32.dll_SQLAllocEnv
mov rcx, qword [rbx]
mov r9d, 0xfffffffa
mov edx, 0xc8
lea r8d, [r9 + 9]
call sub.ODBC32.dll_SQLSetEnvAttr
mov rcx, qword [rbx]
lea rsi, [rbx + 8]
mov rdx, rsi
call sub.ODBC32.dll_SQLAllocConnect
mov rcx, qword [rsi]
lea rax, [rbp + 0x668]
xor ebx, ebx
lea r8, [rsp + 0x40]
mov word [rsp + 0x38], bx
mov r14d, 0xff
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0x1a0]
mov word [rsp + 0x28], r14w
lea r9d, [rbx - 3]
mov qword [rsp + 0x20], rax
call sub.ODBC32.dll_SQLDriverConnect
movzx edi, ax
test ax, 0xfffe
je 0x140007697
mov rcx, qword [rsi]
lea rax, [rbp + 0x668]
mov word [rsp + 0x38], bx
lea r9d, [rbx - 3]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x70]
lea rax, [rbp + 0x1a0]
mov word [rsp + 0x28], r14w
xor edx, edx
mov qword [rsp + 0x20], rax
call sub.ODBC32.dll_SQLDriverConnect
movzx edi, ax
and di, 0xfffe
je 0x140007720
lea rcx, str.Could_not_connect_to_release_database_n
call fcn.140008940
lea rax, [rbp + 0x660]
mov edx, 0x200
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x678]
mov word [rsp + 0x30], dx
lea rax, [rbp + 0x430]
mov rdx, qword [rsi]
mov ecx, 2
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x670]
mov qword [rsp + 0x20], rax
lea r8d, [rcx - 1]
call sub.ODBC32.dll_SQLGetDiagRec
lea rcx, [rbp + 0x678]
lea rdx, str.IM002
movzx eax, byte [rcx + rbx]
inc rbx
cmp al, byte [rdx + rbx - 1]
jne 0x140007720
cmp rbx, 6
jne 0x140007701
lea rcx, str.MS_Access_ODBC_Driver_not_found_n
call fcn.140008940
test di, di
sete al
add rsp, 0x730
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret