Function at 0x140082600
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 - 0x248]
sub rsp, 0x320
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 + 0x200], rax
mov r14, rcx
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], 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 - 0x40], xmm0
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm6, qword [rsp + 0x78]
test eax, eax
je 0x1400826b1
movzx eax, word [rbp - 0x32]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140132ba8]
addsd xmm6, xmm0
movsd qword [rsp + 0x78], xmm6
lea rdx, [rbp - 0x20]
movapd xmm0, xmm6
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400826d3
mov r8d, eax
lea rdx, [rbp - 0x20]
movapd xmm0, xmm6
call fcn.140016470
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov r8d, 0xa
lea rdx, [rbp - 0x10]
mov ecx, dword [rsp + 0x68]
call fcn.1400da6c8
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, [rbp - 0x10]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14008276e
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400827eb
cmp dword [rdx + 0x10], eax
jge 0x140082744
cmp dword [rbx - 0xc], eax
jge 0x140082737
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x1400827eb
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008275a
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 + 0x48], rax
jmp 0x1400827eb
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x10]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x14008278b
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 0x1400827ad
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1400020c0
mov rbx, qword [rsp + 0x48]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x1400827d1
lea r8, [rbx + r12*2]
call fcn.1400d4ebc
jmp 0x1400827da
lea r8, [rbp - 0x10]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x140082d6c
mov dword [rbx - 0x10], edi
mov word [rbx + r13], r15w
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x48]
call fcn.14003bd50
mov r8d, 0xa
lea rdx, [rbp - 0x10]
mov ecx, dword [rsp + 0x6c]
call fcn.1400da6c8
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x10]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x48]
call fcn.14003bd50
mov r8d, 1
lea rdx, reloc.msi.dll_MsiGetActiveDatabase
lea rcx, [rsp + 0x48]
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 - 0x50], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm6, qword [rsp + 0x70]
test eax, eax
je 0x1400828a6
movzx eax, word [rbp - 0x42]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140132ba8]
addsd xmm6, xmm0
movsd qword [rsp + 0x70], xmm6
lea rdx, [rbp - 0x30]
movapd xmm0, xmm6
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400828c8
mov r8d, eax
lea rdx, [rbp - 0x30]
movapd xmm0, xmm6
call fcn.140016470
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov rcx, qword [rbp - 0x70]
mov qword [rsp + 0x68], rcx
mov r8d, 0xa
lea rdx, [rbp - 0x10]
call fcn.1400da6c8
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x10]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x48]
call fcn.14003bd50
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x48]
call fcn.14003bd50
mov r8d, 0xa
lea rdx, [rbp - 0x10]
mov ecx, dword [rsp + 0x6c]
call fcn.1400da6c8
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x10]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x48]
call fcn.14003bd50
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x48]
call fcn.14003bd50
mov r8d, 6
lea rdx, [0x14012b220]
lea rcx, [rsp + 0x48]
call fcn.14003bd50
mov rdi, qword [rsp + 0x48]
cmp dword [rdi - 0x10], r15d
jle 0x140082d50
lea rcx, [rsp + 0x58]
call fcn.1400853d0
nop
mov rax, qword [0x140183708]
test rax, rax
je 0x1400829c9
cmp dword [rax + 0x2a0], 0
je 0x1400829c9
mov rdx, qword [r14 + 0x78]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.14003bd50
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, [0x14012b210]
lea rdx, [0x14012f530]
lea rcx, [rsp + 0x58]
call fcn.140045040
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov r9, rdi
mov r8, qword [rsp + 0x58]
lea rdx, [0x14012f290]
lea rcx, [rbp - 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 rdi, qword [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 8
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x40], 0
jne 0x140082b64
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 8
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x50], r15d
mov ecx, r15d
mov dword [rsp + 0x44], ecx
jmp 0x140082b68
mov ecx, dword [rsp + 0x44]
mov ebx, dword [r14 + 0x148]
add ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
mov ebx, dword [r14 + 0x148]
add ebx, dword [rsp + 0x44]
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 edx, dword [r14 + 0x148]
mov r8d, dword [rsp + 0x44]
lea ecx, [rdx + r8]
mov dword [rsp + 0x64], ecx
lea ecx, [rdx + r8]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x40]
test r11d, r11d
je 0x140082c19
mov r9d, r11d
mov r8, r13
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400cf260
mov r8d, dword [rsp + 0x60]
mov rdx, rbx
mov rcx, r13
call fcn.1400d5d30
mov r11d, dword [rsp + 0x60]
mov dword [rsp + 0x40], r11d
mov eax, dword [r14 + 0x148]
add dword [rsp + 0x44], eax
mov r8d, eax
mov ecx, r11d
add rcx, r13
mov rdx, qword [r14 + 0x140]
call fcn.1400d5d30
mov r11d, dword [r14 + 0x138]
add dword [rsp + 0x50], r11d
mov r9d, dword [rsp + 0x44]
mov r8, r13
lea rdx, [rsp + 0x64]
mov rcx, rbx
call fcn.1400cf240
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 8
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x64]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
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 qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140082d2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140082d4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rdi, qword [rsp + 0x48]
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140082d68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor eax, eax
jmp 0x140082d77
mov ecx, 0x80070057
call fcn.1400022b0
nop
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x320]
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