Function at 0x100037900
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov rax, rsp
sub rsp, 0x68
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [r8]
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
mov ebp, 0xffffffff
xor r13d, r13d
cmp dword [rdx + 8], r13d
je 0x1000379a0
cmp dword [rdx + 0x10], r13d
jge 0x10003797a
cmp dword [rax - 0xc], r13d
jge 0x10003796d
mov ecx, 0x80070057
call fcn.100013860
int3
mov dword [rax - 0x10], r13d
mov rax, qword [r8]
mov word [rax], r13w
jmp 0x1000379a0
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100037990
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
lea rdx, [0x100006910]
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wfopen]
mov r15, rax
test rax, rax
jne 0x100037a04
mov edx, 0x80
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [0x100006910]
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wfopen]
mov r15, rax
test rax, rax
jne 0x100037a04
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000379fd
lock dec dword [rcx + 8]
jne 0x1000379fa
test rcx, rcx
je 0x1000379fa
mov rax, qword [rcx]
lea edx, [r15 + 1]
call qword [rax]
mov qword [rsi], r13
xor eax, eax
jmp 0x100037b98
mov rax, qword [rsi]
mov r12, qword [rax + 0x10]
test r12, r12
je 0x100037b69
nop
nop
nop
mov rbx, qword [r12 + 0x10]
mov r12, qword [r12]
test rbx, rbx
je 0x100037a32
lock inc dword [rbx + 8]
mov qword [rsp + 0x80], rbx
mov rax, qword [rbx + 0x18]
cmp dword [rax - 0x10], 0
jne 0x100037a5d
mov r8, qword [rbx + 0x20]
lea rdx, [0x100006b80]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_fwprintf]
jmp 0x100037b38
mov r8, qword [rbx + 0x20]
lea rdx, [0x100006b80]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_fwprintf]
mov r8, qword [rbx + 0x18]
lea rdx, [0x100006900]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_fwprintf]
mov rsi, qword [r14]
cmp dword [rsi - 0x10], 0
jne 0x100037b38
mov rdx, qword [rbx + 0x18]
lea rdi, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rdi, rsi
je 0x100037b38
cmp dword [rsi + 0x10], 0
jl 0x100037b2b
mov rcx, qword [rdi]
cmp rcx, qword [rsi]
jne 0x100037b2b
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x100037ad2
cmp rax, qword [rdi]
jne 0x100037ad2
mov r13, rdi
lock inc dword [rdi + 0x10]
jmp 0x100037b06
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov r13, rax
test rax, rax
je 0x100037b63
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
inc ecx
movsxd r8, ecx
add r8, r8
lea rdx, [rdi + 0x18]
lea rcx, [rax + 0x18]
call sub.msvcrt.dll_memcpy
mov eax, ebp
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x100037b1f
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r13 + 0x18]
mov qword [r14], rax
xor r13d, r13d
jmp 0x100037b38
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.100014b20
nop
lock dec dword [rbx + 8]
jne 0x100037b4b
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x80], r13
test r12, r12
jne 0x100037a20
mov rsi, qword [rsp + 0x78]
jmp 0x100037b69
call fcn.100013cb0
nop
mov rcx, r15
call qword [sym.imp.msvcrt.dll_fclose]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x100037b93
lock dec dword [rcx + 8]
jne 0x100037b90
test rcx, rcx
je 0x100037b90
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsi], r13
mov eax, 1
mov rbx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
add rsp, 0x68
ret