Function at 0x14000272c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140015018]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x288]
mov rbx, rdx
mov r14, qword [rbp + 0x280]
mov rsi, rcx
mov rdi, qword [rbp + 0x2a8]
lea rcx, [rbp - 0x10]
and qword [rsp + 0x78], 0
xor edx, edx
and qword [rbp - 0x68], 0
mov r12, r9
mov qword [rbp - 0x78], rax
xor r15d, r15d
mov rax, qword [rbp + 0x2b0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rbp - 0x70], r8
mov r8d, 0x104
mov qword [rbp - 0x18], rax
mov qword [rsp + 0x70], r9
mov qword [rbp - 0x80], r14
mov dword [rsp + 0x60], 0xd41e4f1d
mov dword [rsp + 0x64], 0x11d1a407
mov dword [rsp + 0x68], 0xc000c98b
mov dword [rsp + 0x6c], 0x410aa34f
mov dword [rsp + 0x50], 0xaac56b
mov dword [rsp + 0x54], 0x11d0cd44
mov dword [rsp + 0x58], 0xc000c28c
mov dword [rsp + 0x5c], 0xee95c24f
call sub.msvcrt.dll_memset
lea r13d, [r15 + 0x40]
xor edx, edx
mov r8d, r13d
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
cmp dword [rsi], r15d
je 0x140002dc7
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsi + 0x30], 1
jge 0x140002835
mov ebx, 0x8007139f
jmp 0x140002dcc
test rbx, rbx
je 0x140002dc0
test r14, r14
je 0x140002dc0
test rdi, rdi
je 0x140002dc0
mov rdx, qword [rsi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x14000286a
add rbx, 2
test ecx, ecx
jne 0x140002857
test eax, eax
je 0x140002878
mov ebx, 0x80070005
jmp 0x140002dcc
mov rax, qword [rbp - 0x68]
and dword [rbp - 0x2c], r15d
and dword [rbp - 0x48], r15d
mov qword [rbp - 0x58], rax
mov eax, 0x80070005
mov dword [rbp - 0x60], r13d
mov qword [rbp - 0x50], r12
cmp dword [rsi + 0x8c], r15d
je 0x140002a0a
cmp dword [0x140015600], r15d
je 0x140002950
mov rcx, qword [rsi + 0x98]
mov ebx, eax
test rcx, rcx
je 0x1400028d2
mov rax, qword [rcx]
mov r8, rdi
mov rdx, r12
mov rax, qword [rax + 0x18]
call qword [0x140011990]
mov ebx, eax
test ebx, ebx
js 0x140002dcc
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400028eb
call fcn.140007f10
mov ebx, eax
jmp 0x1400028ed
xor ebx, ebx
test ebx, ebx
js 0x140002dcc
mov rcx, qword [rdi]
call fcn.140007fbc
mov ebx, eax
test eax, eax
js 0x140002dcc
mov eax, 0x58
xor r14b, r14b
mov ecx, eax
mov dword [rbp - 0x38], eax
xor r13b, r13b
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14000294a
mov r8d, dword [rbp - 0x38]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x40]
mov ecx, dword [rbp - 0x38]
mov dword [rax], ecx
mov rax, qword [rbp - 0x40]
mov dword [rax + 8], 1
jmp 0x1400029c3
and qword [rbp - 0x40], r15
jmp 0x1400029c3
mov r14b, 1
cmp dword [rsi + 0x90], r15d
je 0x1400029c0
mov rcx, qword [rsi + 0x98]
mov ebx, eax
test rcx, rcx
je 0x14000297f
mov rax, qword [rcx]
mov r8, rdi
mov rdx, r12
mov rax, qword [rax + 0x18]
call qword [0x140011990]
mov ebx, eax
test ebx, ebx
js 0x140002dcc
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002998
call fcn.140007f10
mov ebx, eax
jmp 0x14000299a
xor ebx, ebx
test ebx, ebx
js 0x140002dcc
mov rcx, qword [rdi]
call fcn.140007fbc
mov ebx, eax
test eax, eax
js 0x140002dcc
mov dword [rbp - 0x28], 1
xor r13b, r13b
jmp 0x1400029c3
mov r13b, 1
mov eax, 0x58
mov ecx, eax
mov dword [rbp - 0x38], eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140002a00
mov r8d, dword [rbp - 0x38]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x40]
mov ecx, dword [rbp - 0x38]
mov dword [rax], ecx
mov rax, qword [rbp - 0x40]
mov dword [rax + 8], 1
jmp 0x140002a10
and qword [rbp - 0x40], r15
and dword [rbp - 0x38], r15d
jmp 0x140002a10
mov r14b, 1
mov r13b, r14b
test r13b, r13b
je 0x140002af4
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140002a43
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x100]
call fcn.14000759c
mov ebx, eax
jmp 0x140002a57
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002dcc
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x10]
mov r8, rdi
call fcn.14000774c
mov ebx, eax
test eax, eax
js 0x140002dcc
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002a8a
call fcn.140007f10
mov ebx, eax
jmp 0x140002a8c
xor ebx, ebx
test ebx, ebx
js 0x140002dcc
mov rcx, qword [rdi]
call fcn.140007fbc
mov ebx, eax
test eax, eax
js 0x140002dcc
and qword [rsp + 0x30], r15
xor r9d, r9d
mov rcx, qword [rdi]
mov edx, 0x80000000
mov dword [rsp + 0x28], Ordinal_134
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140002af4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002dcc
test r14b, r14b
je 0x140002c9a
mov ecx, Ordinal_35
call fcn.14000123c
mov r15, rax
test rax, rax
je 0x140002b2d
and qword [r15 + 0x18], 0
lea rax, [0x14000f118]
and qword [r15 + 0x10], 0
mov qword [r15], rax
mov dword [r15 + 8], 1
jmp 0x140002b30
xor r15d, r15d
test r15, r15
je 0x140002dc7
and qword [rbp - 0x80], 0
mov r14d, 0x80070057
test r12, r12
je 0x140002b94
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12, rax
test rax, rax
je 0x140002b88
xor r8d, r8d
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_CoInternetCreateSecurityManager]
mov ebx, eax
test eax, eax
js 0x140002b7d
mov rcx, qword [rbp - 0x80]
mov qword [r15 + 0x18], rcx
mov qword [r15 + 0x10], r12
jmp 0x140002b8d
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140002b8d
mov ebx, 0x8007000e
mov r12, qword [rsp + 0x70]
jmp 0x140002b97
mov ebx, r14d
test ebx, ebx
js 0x140002dcc
mov rax, qword [r15]
lea r8, [rbp - 0x68]
lea rdx, [0x140011b90]
mov rcx, r15
mov rax, qword [rax]
call qword [0x140011990]
mov ebx, eax
test eax, eax
js 0x140002dcc
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x140002d52
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140002d52
mov rax, qword [rdi]
movaps xmm0, xmmword [rsp + 0x50]
mov ebx, dword [rbp + 0x298]
mov r12d, dword [rbp + 0x290]
movdqa xmmword [rsp + 0x50], xmm0
test rax, rax
je 0x140002c3d
mov r9, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp - 0x78]
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
call fcn.140008d78
test eax, eax
jns 0x140002c9a
mov rax, qword [rdi]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
test rax, rax
jne 0x140002c58
mov ebx, r14d
jmp 0x140002dcc
mov r8, qword [rsp + 0x70]
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp - 0x78]
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbp - 0x70]
call fcn.140008d78
mov ebx, eax
test eax, eax
js 0x140002dcc
cmp dword [rsi + 0x8c], 0
jne 0x140002cb3
mov rcx, qword [rdi]
call fcn.1400087f0
test eax, eax
je 0x14000286e
test r13b, r13b
je 0x140002cd1
lea rcx, [rsi + 0xa0]
mov rdx, rdi
call fcn.140007964
mov ebx, eax
test eax, eax
js 0x140002dcc
mov rcx, qword [rdi]
lea rdx, [rsi + 0x80]
call fcn.1400064c4
mov ebx, eax
test eax, eax
js 0x140002dcc
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140002d99
cmp dword [rbp - 0x38], 0
je 0x140002d99
mov rdx, qword [rcx + 0x18]
mov rax, rcx
test rdx, rdx
je 0x140002d18
sub rdx, rax
mov qword [rcx + 0x18], rdx
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rax + 0x28]
test rdx, rdx
je 0x140002d2c
sub rdx, rax
mov qword [rax + 0x28], rdx
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rax + 0x38]
test rdx, rdx
je 0x140002d40
sub rdx, rax
mov qword [rax + 0x38], rdx
mov rcx, qword [rbp - 0x40]
mov eax, dword [rbp - 0x38]
mov rdx, qword [rbp - 0x20]
mov dword [rdx], eax
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
jmp 0x140002da8
mov rcx, qword [rdi]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
test rcx, rcx
je 0x140002c50
lea rax, [rbp - 0x60]
mov r8, r12
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x298]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x290]
mov dword [rsp + 0x30], eax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
jmp 0x140002c7d
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
and dword [rdx], 0
and qword [rax], 0
mov rax, qword [rbp + 0x2a0]
movups xmm0, xmmword [rax]
mov dword [rsi + 0x30], 2
movdqu xmmword [rsi + 0x58], xmm0
jmp 0x140002dde
mov ebx, 0x80070057
jmp 0x140002dcc
mov ebx, 0x8007000e
test rdi, rdi
je 0x140002dde
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rdi], 0
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140002df4
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140011990]
test r15, r15
je 0x140002e09
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x10]
call qword [0x140011990]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002e1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
js 0x140002e29
and dword [rsi + 0x90], 0
lea rcx, [rbp - 0x10]
call fcn.140006a74
cmp dword [rsi], 0
je 0x140002e41
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000e250
mov rbx, qword [rsp + 0x368]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret