Function at 0x14000290c
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 [0x140016018]
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 0x140002fe9
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x30], 1
jge 0x140002a1b
mov ebx, 0x8007139f
jmp 0x140002fee
test rbx, rbx
je 0x140002fe2
test r14, r14
je 0x140002fe2
test rdi, rdi
je 0x140002fe2
mov rdx, qword [rsi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140002a50
add rbx, 2
test ecx, ecx
jne 0x140002a3d
test eax, eax
je 0x140002a5e
mov ebx, 0x80070005
jmp 0x140002fee
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 0x140002bfc
cmp dword [0x140016600], r15d
je 0x140002b3c
mov rcx, qword [rsi + 0x98]
mov ebx, eax
test rcx, rcx
je 0x140002ab8
mov rax, qword [rcx]
mov r8, rdi
mov rdx, r12
mov rax, qword [rax + 0x18]
call qword [0x140012988]
mov ebx, eax
test ebx, ebx
js 0x140002fee
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002ad1
call fcn.1400088f0
mov ebx, eax
jmp 0x140002ad3
xor ebx, ebx
test ebx, ebx
js 0x140002fee
mov rcx, qword [rdi]
call fcn.1400089a0
mov ebx, eax
test eax, eax
js 0x140002fee
mov eax, 0x58
xor r14b, r14b
mov ecx, eax
mov dword [rbp - 0x38], eax
xor r13b, r13b
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140002b36
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 0x140002baf
and qword [rbp - 0x40], r15
jmp 0x140002baf
mov r14b, 1
cmp dword [rsi + 0x90], r15d
je 0x140002bac
mov rcx, qword [rsi + 0x98]
mov ebx, eax
test rcx, rcx
je 0x140002b6b
mov rax, qword [rcx]
mov r8, rdi
mov rdx, r12
mov rax, qword [rax + 0x18]
call qword [0x140012988]
mov ebx, eax
test ebx, ebx
js 0x140002fee
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002b84
call fcn.1400088f0
mov ebx, eax
jmp 0x140002b86
xor ebx, ebx
test ebx, ebx
js 0x140002fee
mov rcx, qword [rdi]
call fcn.1400089a0
mov ebx, eax
test eax, eax
js 0x140002fee
mov dword [rbp - 0x28], 1
xor r13b, r13b
jmp 0x140002baf
mov r13b, r14b
mov eax, 0x58
mov ecx, eax
mov dword [rbp - 0x38], eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140002bf2
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 0x140002c02
and qword [rbp - 0x40], r15
and dword [rbp - 0x38], r15d
jmp 0x140002c02
mov r14b, 1
mov r13b, r14b
test r13b, r13b
je 0x140002cfe
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
test eax, eax
je 0x140002c3b
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x100]
call fcn.140007e68
mov ebx, eax
jmp 0x140002c55
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140002fee
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x10]
mov r8, rdi
call fcn.140008058
mov ebx, eax
test eax, eax
js 0x140002fee
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002c88
call fcn.1400088f0
mov ebx, eax
jmp 0x140002c8a
xor ebx, ebx
test ebx, ebx
js 0x140002fee
mov rcx, qword [rdi]
call fcn.1400089a0
mov ebx, eax
test eax, eax
js 0x140002fee
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]
nop dword [rax + rax]
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140002cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002fee
test r14b, r14b
je 0x140002ebc
mov ecx, Ordinal_34
call fcn.14000123c
mov r15, rax
test rax, rax
je 0x140002d37
and qword [r15 + 0x18], 0
lea rax, [0x140010118]
and qword [r15 + 0x10], 0
mov qword [r15], rax
mov dword [r15 + 8], 1
jmp 0x140002d3a
xor r15d, r15d
test r15, r15
je 0x140002fe9
and qword [rbp - 0x80], 0
mov r14d, 0x80070057
test r12, r12
je 0x140002db0
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x140002da4
xor r8d, r8d
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_CoInternetCreateSecurityManager]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140002d93
mov rcx, qword [rbp - 0x80]
mov qword [r15 + 0x18], rcx
mov qword [r15 + 0x10], r12
jmp 0x140002da9
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
jmp 0x140002da9
mov ebx, 0x8007000e
mov r12, qword [rsp + 0x70]
jmp 0x140002db3
mov ebx, r14d
test ebx, ebx
js 0x140002fee
mov rax, qword [r15]
lea r8, [rbp - 0x68]
lea rdx, [0x140012b80]
mov rcx, r15
mov rax, qword [rax]
call qword [0x140012988]
mov ebx, eax
test eax, eax
js 0x140002fee
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x140002f74
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
je 0x140002f74
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 0x140002e5f
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.140009a2c
test eax, eax
jns 0x140002ebc
mov rax, qword [rdi]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
test rax, rax
jne 0x140002e7a
mov ebx, r14d
jmp 0x140002fee
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.140009a2c
mov ebx, eax
test eax, eax
js 0x140002fee
cmp dword [rsi + 0x8c], 0
jne 0x140002ed5
mov rcx, qword [rdi]
call fcn.140009348
test eax, eax
je 0x140002a54
test r13b, r13b
je 0x140002ef3
lea rcx, [rsi + 0xa0]
mov rdx, rdi
call fcn.1400082c4
mov ebx, eax
test eax, eax
js 0x140002fee
mov rcx, qword [rdi]
lea rdx, [rsi + 0x80]
call fcn.140006bdc
mov ebx, eax
test eax, eax
js 0x140002fee
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140002fbb
cmp dword [rbp - 0x38], 0
je 0x140002fbb
mov rdx, qword [rcx + 0x18]
mov rax, rcx
test rdx, rdx
je 0x140002f3a
sub rdx, rax
mov qword [rcx + 0x18], rdx
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rax + 0x28]
test rdx, rdx
je 0x140002f4e
sub rdx, rax
mov qword [rax + 0x28], rdx
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rax + 0x38]
test rdx, rdx
je 0x140002f62
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 0x140002fca
mov rcx, qword [rdi]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
test rcx, rcx
je 0x140002e72
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 0x140002e9f
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 0x140003006
mov ebx, 0x80070057
jmp 0x140002fee
mov ebx, 0x8007000e
test rdi, rdi
je 0x140003006
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
and qword [rdi], 0
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14000301c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140012988]
test r15, r15
je 0x140003031
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x10]
call qword [0x140012988]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000304c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
js 0x140003057
and dword [rsi + 0x90], 0
lea rcx, [rbp - 0x10]
call fcn.1400071c0
cmp dword [rsi], 0
je 0x140003075
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000f1e0
mov rbx, qword [rsp + 0x368]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret