Function at 0x140024d4c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, r9
mov qword [rsp + 0x30], r8
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], r9
mov r12, qword [rbp + 0x240]
mov qword [rsp + 0x58], r12
mov r13, qword [rbp + 0x248]
mov qword [rsp + 0x60], r13
mov rdx, qword [rbp + 0x250]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x68], rdx
mov rdi, qword [rbp + 0x260]
mov rax, qword [rbp + 0x268]
mov qword [rsp + 0x28], rax
lea rax, vtable.StandaloneUpdaterController.0
mov qword [rcx], rax
xor r15d, r15d
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov rax, qword [r14 + 8]
test rax, rax
je 0x140024df9
lock inc dword [rax + 8]
mov rax, qword [r14]
mov qword [rcx + 8], rax
mov rax, qword [r14 + 8]
mov qword [rcx + 0x10], rax
mov rcx, qword [r8]
mov qword [rbx + 0x18], rcx
test rcx, rcx
je 0x140024e26
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.0B__]
mov rdx, qword [rsp + 0x20]
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
mov rax, qword [rsi + 8]
test rax, rax
je 0x140024e3b
lock inc dword [rax + 8]
mov rax, qword [rsi]
mov qword [rbx + 0x20], rax
mov rax, qword [rsi + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], r15
mov qword [rbx + 0x38], r15
mov rax, qword [r12 + 8]
test rax, rax
je 0x140024e60
lock inc dword [rax + 8]
mov rax, qword [r12]
mov qword [rbx + 0x30], rax
mov rax, qword [r12 + 8]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], r15
mov rax, qword [r13 + 8]
test rax, rax
je 0x140024e86
lock inc dword [rax + 8]
mov rax, qword [r13]
mov qword [rbx + 0x40], rax
mov rax, qword [r13 + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], r15
mov qword [rbx + 0x58], r15
mov rax, qword [rdx + 8]
test rax, rax
je 0x140024eab
lock inc dword [rax + 8]
mov rax, qword [rdx]
mov qword [rbx + 0x50], rax
mov rax, qword [rdx + 8]
mov qword [rbx + 0x58], rax
mov eax, dword [rbp + 0x258]
mov dword [rbx + 0x60], eax
lea rcx, [rbx + 0x68]
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov rdx, rdi
call fcn.140019c78
nop
lea r15, [rbx + 0x88]
xor edi, edi
mov qword [r15], rdi
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 7
mov word [r15], di
lea rcx, [rbx + 0xa8]
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov rdx, qword [rsp + 0x28]
call fcn.140019c78
nop
mov byte [rbx + 0xc8], dil
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.14003a220
xor r9d, r9d
lea r8d, [rdi + 0x29]
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140024fe7
mov qword [rbp - 0x70], rdi
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], di
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140024f64
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14001b664
mov r8d, setsockopt
lea rdx, str.OneDriveSetup.exe
lea rcx, [rbp - 0x70]
call fcn.140019e88
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14011161c
mov rdi, rax
cmp r15, rax
je 0x140024fd2
mov rcx, r15
call fcn.14001b814
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [r15 + 0x10], xmm1
xor r15d, r15d
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
lea rcx, [rsp + 0x70]
call fcn.14001b814
nop
lea rcx, [rbp - 0x70]
call fcn.14001b814
nop
mov rdi, qword [r14 + 8]
or r14, 0xffffffffffffffff
test rdi, rdi
je 0x14002502e
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x14002502e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.0B__]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x14002502e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.0B__]
nop
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
test rcx, rcx
je 0x140025049
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.0B__]
nop
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x14002508c
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x14002508c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.0B__]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x14002508c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.0B__]
nop
mov rdi, qword [r12 + 8]
test rdi, rdi
je 0x1400250d0
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x1400250d0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.0B__]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x1400250d0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.0B__]
nop
mov rdi, qword [r13 + 8]
test rdi, rdi
je 0x140025113
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x140025113
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.0B__]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x140025113
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.0B__]
nop
mov rdi, qword [rsp + 0x20]
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14002515a
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x14002515a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.0B__]
mov edx, r14d
lock xadd dword [rdi + 0xc], edx
add edx, r14d
jne 0x14002515a
mov rdx, qword [rdi]
mov rcx, rdi
mov rax, qword [rdx + 8]
call qword [str.0B__]
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140038910
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret