Function at 0x1400a9890
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r13, rdx
xor r14d, r14d
mov word [rsp + 0x50], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call sub.MSVCR100.dll_memset
xor r9d, r9d
lea r8d, [r14 + 0x23]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400a9b56
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x1400a995e
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x1400a9a58
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001f70
mov rbx, qword [rsp + 0x20]
jmp 0x1400a9a58
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400a99d7
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400a9a58
cmp dword [rdx + 0x10], eax
jge 0x1400a99aa
cmp dword [rbx - 0xc], eax
jge 0x1400a999d
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x1400a9a58
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a99c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x1400a9a58
mov r12d, dword [rbx - 0x10]
lea rbp, [rsp + 0x50]
sub rbp, rbx
sar rbp, 1
test ecx, ecx
jns 0x1400a99f5
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400a9a17
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rbp, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400a9a3c
lea r8, [rbx + rbp*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x1400a9a47
lea r8, [rsp + 0x50]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x1400a9bda
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r14w
lea r8, str.Sony_CorporationVAIO_Update
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002ce0
nop
lea r8, str.LocalUpdateInfo_V2.0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400a9add
cmp dword [rbx + 0x10], 0
jl 0x1400a9ace
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400a9ace
call fcn.140001b90
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400a9ac3
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x1400a9add
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a9afd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a9b1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14003ffa0
test al, al
jne 0x1400a9b5d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400a9b56
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x1400a9be5
lea rbp, [rdi - 0x18]
mov rbx, qword [r13]
sub rbx, 0x18
cmp rbp, rbx
je 0x1400a9bbb
cmp dword [rbx + 0x10], 0
jl 0x1400a9bab
mov rax, qword [rbx]
cmp qword [rbp], rax
jne 0x1400a9bab
mov rcx, rbp
call fcn.140001b90
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400a9ba1
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [r13], rax
jmp 0x1400a9bbb
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
mov rcx, r13
call fcn.140001e80
nop
lock xadd dword [rbp + 0x10], esi
dec esi
test esi, esi
jg 0x1400a9bd3
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 8]
mov eax, 1
jmp 0x1400a9be5
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret