Function at 0x140082010
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, rcx
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor r15d, r15d
mov qword [rsp + 0x78], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm6, qword [rsp + 0x48]
test eax, eax
je 0x1400820c5
movzx eax, word [rbp - 0x42]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140132ba8]
addsd xmm6, xmm0
movsd qword [rsp + 0x48], xmm6
lea rdx, [rbp - 0x80]
movapd xmm0, xmm6
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400820e7
mov r8d, eax
lea rdx, [rbp - 0x80]
movapd xmm0, xmm6
call fcn.140016470
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov r8d, 0xa
lea rdx, [rbp - 0x40]
mov ecx, dword [rsp + 0x38]
call fcn.1400da6c8
xor eax, eax
or r13, 0xffffffffffffffff
mov rcx, r13
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140082183
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140082200
cmp dword [rdx + 0x10], eax
jge 0x140082158
cmp dword [rbx - 0xc], eax
jge 0x14008214b
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140082200
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008216f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
jmp 0x140082200
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp - 0x40]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x1400821a0
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400821c2
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400020c0
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400821e6
lea r8, [rbx + rsi*2]
call fcn.1400d4ebc
jmp 0x1400821ef
lea r8, [rbp - 0x40]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x1400825b8
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r15w
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov r8d, 0xa
lea rdx, [rbp - 0x40]
mov ecx, dword [rsp + 0x3c]
call fcn.1400da6c8
xor eax, eax
mov rcx, r13
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov r8d, 1
lea rdx, reloc.msi.dll_MsiGetActiveDatabase
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov eax, 0x3b
mov dword [rsp + 0x78], 0x3b0017
mov word [rsp + 0x7c], ax
mov eax, 0x3e7
mov word [rsp + 0x7e], ax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm6, qword [rsp + 0x40]
test eax, eax
je 0x1400822bf
movzx eax, word [rbp - 0x62]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140132ba8]
addsd xmm6, xmm0
movsd qword [rsp + 0x40], xmm6
lea rdx, [rbp - 0x60]
movapd xmm0, xmm6
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400822e1
mov r8d, eax
lea rdx, [rbp - 0x60]
movapd xmm0, xmm6
call fcn.140016470
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov r8d, 0xa
lea rdx, [rbp - 0x40]
call fcn.1400da6c8
xor eax, eax
mov rcx, r13
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov r8d, 0xa
lea rdx, [rbp - 0x40]
mov ecx, dword [rsp + 0x3c]
call fcn.1400da6c8
xor eax, eax
mov rcx, r13
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov r8d, 8
lea rdx, [0x14012b230]
lea rcx, [rsp + 0x20]
call fcn.14003bd50
mov rdi, qword [rsp + 0x20]
cmp dword [rdi - 0x10], r15d
jle 0x140082599
lea rcx, [rsp + 0x28]
call fcn.1400853d0
nop
mov rax, qword [0x140183708]
test rax, rax
je 0x1400823e4
cmp dword [rax + 0x2a0], 0
je 0x1400823e4
mov rdx, qword [r14 + 0x78]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x28]
call fcn.14003bd50
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, 2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, [0x14012b218]
lea rdx, [0x14012f530]
lea rcx, [rsp + 0x28]
call fcn.140045040
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, 2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov r9, rdi
mov r8, qword [rsp + 0x28]
lea rdx, [0x14012f290]
lea rcx, [rsp + 0x50]
call fcn.140016060
lea rdx, [0x140131ba8]
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1400d9d24
mov r12, rax
mov ebx, dword [r14 + 0x140]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov ebx, dword [r14 + 0x140]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov ecx, dword [r14 + 0x140]
mov dword [rsp + 0x30], ecx
mov r8d, ecx
mov rdx, qword [r14 + 0x138]
mov rcx, rsi
call fcn.1400d5d30
mov r9d, dword [r14 + 0x140]
mov r8, rsi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400cf240
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r9, r12
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x30]
call fcn.1400d6c94
mov edx, dword [rsp + 0x30]
mov r9, r12
mov r8d, 1
mov rcx, rbx
call fcn.1400d6c94
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call fcn.1400d79b4
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140082574
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140082594
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rdi, qword [rsp + 0x20]
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x1400825b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor eax, eax
jmp 0x1400825c3
mov ecx, 0x80070057
call fcn.1400022b0
nop
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret