Function at 0x14000278c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r12, rdx
mov rsi, rcx
call fcn.140002668
mov edx, dword [rsi + 0xc]
lea rax, [0x140000000]
mov ecx, dword [rsi + 0x10]
add rdx, rax
mov edi, dword [rsi + 4]
add rcx, rax
mov r14d, dword [rsi + 8]
add rdi, rax
mov r13d, dword [rsi + 0x14]
add r14, rax
mov r8d, dword [rsi + 0x1c]
add r13, rax
xor eax, eax
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov eax, dword [rsi]
and eax, 1
mov dword [rsp + 0x30], 0x48
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r9
mov dword [rsp + 0x70], r9d
test al, al
jne 0x14000285f
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
call fcn.140002704
xor edx, edx
lea r9, [rbp - 0x80]
mov ecx, 0xc06d0057
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rbx, qword [r14]
mov r15, r12
sub r15, rdx
sar r15, 3
mov r15d, r15d
mov rax, qword [rcx + r15*8]
shr rax, 0x3f
xor eax, 1
mov dword [rsp + 0x50], eax
je 0x140002895
mov eax, dword [rcx + r15*8]
lea rcx, [0x140000002]
add rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x14000289e
movzx eax, word [rcx + r15*8]
mov dword [rsp + 0x58], eax
test rbx, rbx
jne 0x140002a7e
mov rax, qword gs:[0x58]
lea r10, [0x1400720d8]
mov edx, 0x10
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400720c0], eax
jle 0x1400029b5
lea rcx, [0x1400720c0]
call fcn.140040b18
cmp dword [0x1400720c0], 0xffffffff
jne 0x1400029a6
xor edi, edi
lea rcx, str.Kernel32.dll
mov dword [0x1400720d4], edi
mov word [0x1400720d8], di
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x140002926
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
or eax, 0xc06d0000
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rdx, str.AddDllDirectory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
setne byte [0x1400720d0]
test rax, rax
jne 0x14000299a
lea rbx, [0x1400720d8]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
mov dword [0x1400720d4], ecx
lea eax, [rcx - 1]
cmp eax, 0x102
ja 0x14000297f
mov eax, ecx
mov ecx, 0x5c
mov word [rbx + rax*2], cx
inc dword [0x1400720d4]
jmp 0x14000299a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
or eax, 0xc06d0000
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [0x1400720c0]
call fcn.140040ab8
mov rdi, qword [rsp + 0x48]
lea r10, [0x1400720d8]
xor r9d, r9d
cmp byte [0x1400720d0], r9b
mov ebx, dword [0x1400720d4]
je 0x1400029cc
mov r8d, 0x800
jmp 0x1400029f6
mov r8, rbx
lea rcx, [rbp - 0x60]
add r8, r8
mov rdx, r10
call sub.msvcrt.dll_memcpy
mov r8d, 8
xor r9d, r9d
jmp 0x1400029f6
movsx eax, al
mov word [rbp + rbx*2 - 0x60], ax
inc ebx
inc rdi
mov al, byte [rdi]
test al, al
jne 0x1400029e9
mov eax, ebx
add rax, rax
cmp rax, 0x208
jae 0x140002b41
xor edx, edx
mov word [rbp + rax - 0x60], r9w
lea rcx, [rbp - 0x60]
call qword [fcn.140037af0]
xor r9d, r9d
mov rbx, rax
test rax, rax
jne 0x140002a61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x78], rax
call fcn.140002704
lea r9, [rbp - 0x78]
xor edx, edx
mov ecx, 0xc06d007e
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
xchg qword [r14], rax
cmp rax, rbx
jne 0x140002b37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x60], rbx
cmp dword [rsi + 0x14], r9d
je 0x140002ab4
cmp dword [rsi + 0x1c], r9d
je 0x140002ab4
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x140002ab4
cmp dword [rax + rbx + 8], r8d
jne 0x140002ab4
cmp rbx, qword [rax + rbx + 0x30]
jne 0x140002ab4
mov rdi, qword [r13 + r15*8]
test rdi, rdi
jne 0x140002b01
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140002b01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
call fcn.140002704
lea r9, [rbp - 0x70]
xor edx, edx
mov ecx, 0xc06d007f
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov qword [r12], rdi
call fcn.140002704
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400408d0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword [rsp + 0x20]
jmp 0x140002a7e
call fcn.140040d58
int3