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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe98]
sub rsp, 0xf70
mov qword [rbp - 0x68], 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 + 0xe50], rax
mov r12, rcx
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor r15d, r15d
mov qword [rbp - 0x58], r15
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm6, qword [rsp + 0x68]
test eax, eax
je 0x1400841f1
movzx eax, word [rbp - 0x42]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140132ba8]
addsd xmm6, xmm0
movsd qword [rsp + 0x68], xmm6
lea rdx, [rbp - 0x30]
movapd xmm0, xmm6
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140084213
mov r8d, eax
lea rdx, [rbp - 0x30]
movapd xmm0, xmm6
call fcn.140016470
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov r8d, 0xa
lea rdx, [rbp + 0xc40]
mov ecx, dword [rsp + 0x60]
call fcn.1400da6c8
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, [rbp + 0xc40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400842b7
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14008433a
cmp dword [rdx + 0x10], eax
jge 0x14008428a
cmp dword [rbx - 0xc], eax
jge 0x14008427d
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14008433a
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400842a0
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 + 0x40], rax
jmp 0x14008433a
mov r14d, dword [rbx - 0x10]
lea r13, [rbp + 0xc40]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x1400842d7
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 0x1400842f9
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400020c0
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14008431d
lea r8, [rbx + r13*2]
call fcn.1400d4ebc
jmp 0x140084329
lea r8, [rbp + 0xc40]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x1400848c7
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r15w
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov r8d, 0xa
lea rdx, [rbp + 0xc40]
mov ecx, dword [rsp + 0x64]
call fcn.1400da6c8
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0xc40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0xc40]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov r8d, 1
lea rdx, reloc.msi.dll_MsiGetActiveDatabase
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov eax, 0x3b
mov dword [rbp - 0x58], 0x3b0017
mov word [rbp - 0x54], ax
mov eax, 0x3e7
mov word [rbp - 0x52], ax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x20], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm6, qword [rsp + 0x70]
test eax, eax
je 0x1400843fe
movzx eax, word [rbp - 0x12]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140132ba8]
addsd xmm6, xmm0
movsd qword [rsp + 0x70], xmm6
lea rdx, [rbp - 0x40]
movapd xmm0, xmm6
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140084420
mov r8d, eax
lea rdx, [rbp - 0x40]
movapd xmm0, xmm6
call fcn.140016470
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x60], rcx
mov r8d, 0xa
lea rdx, [rbp + 0xc40]
call fcn.1400da6c8
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0xc40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0xc40]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov r8d, 0xa
lea rdx, [rbp + 0xc40]
mov ecx, dword [rsp + 0x64]
call fcn.1400da6c8
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0xc40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0xc40]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov r8d, 6
lea rdx, [0x14012ad78]
lea rcx, [rsp + 0x40]
call fcn.14003bd50
mov rdi, qword [rsp + 0x40]
cmp dword [rdi - 0x10], r15d
jle 0x1400848ab
lea rcx, [rsp + 0x50]
call fcn.1400853d0
nop
mov rax, qword [0x140183728]
test rax, rax
je 0x14008453c
cmp dword [rax + 0x2a0], 0
je 0x14008453c
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
mov rdx, qword [rcx + r12 + 0x78]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14003bd50
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, [0x14012ad68]
lea rdx, [0x14012f6a8]
lea rcx, [rsp + 0x50]
call fcn.140045040
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov r9, rdi
mov r8, qword [rsp + 0x50]
lea rdx, [0x14012f290]
lea rcx, [rsp + 0x78]
call fcn.140016060
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
inc dword [rsp + 0x4c]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, 8
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov word [rbp - 0x10], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0xe]
call fcn.1400dd9f0
xor edx, edx
mov r8d, 0xa48
lea rcx, [rbp + 0x1f8]
call fcn.1400dd9f0
mov r8, qword [r12 + 0x70]
mov edx, 0x104
lea rcx, [rbp - 0x10]
call fcn.1400d7f70
mov r8, qword [r12 + 0x78]
mov edx, 0x104
lea rcx, [rbp + 0x608]
call fcn.1400d7f70
mov rdx, qword [r12]
movsxd rax, dword [rdx + 4]
mov r8, qword [rax + r12 + 0x78]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.1400d7f70
cmp qword [r12 + 0x10], 0
jbe 0x1400847cf
lea rcx, [rsp + 0x58]
call fcn.1400853d0
nop
cmp qword [r12 + 0x10], 0
ja 0x140084726
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov rcx, qword [r12 + 8]
add rcx, 8
lea rdx, [rbp - 0x78]
call fcn.1400376c0
nop
lea rcx, [0x14012ad88]
mov qword [rsp + 0x20], rcx
mov r9, qword [rax]
lea r8, [0x14012ad70]
lea rdx, str._s_s._s
lea rcx, [rsp + 0x58]
call fcn.140045040
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008477f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov r8, qword [rsp + 0x58]
cmp dword [r8 - 8], 1
jle 0x14008479e
mov edx, dword [r8 - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140001fb0
mov r8, qword [rsp + 0x58]
mov edx, 0x104
lea rcx, [rbp + 0xa30]
call fcn.1400d7f70
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400847cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
mov r8, qword [rcx + r12 + 0x70]
mov edx, 0x104
lea rcx, [rbp + 0x1f8]
call fcn.1400d7f70
mov edx, dword [r12 + 0x80]
mov dword [rbp + 0x820], edx
lea rcx, [r12 + 0x84]
lea rdx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov rdx, rsi
lea rcx, [rbp - 0x10]
mov edi, 0xc50
lea r8, [0x14017e9a4]
cmp rdx, 4
jl 0x14008482e
mov rdx, r15
jmp 0x140084831
inc rdx
movzx eax, byte [rdx + r8]
xor byte [rcx], al
inc rcx
dec rdi
jne 0x140084823
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, 0xc50
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140084887
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400848a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rdi, qword [rsp + 0x40]
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400848c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor eax, eax
jmp 0x1400848d2
mov ecx, 0x80070057
call fcn.1400022b0
nop
mov rcx, qword [rbp + 0xe50]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0xf70]
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