Function at 0x140001d4c
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
mov rbx, rcx
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.1400c5bb0
mov word [rbp - 0x58], 0xbbef
mov byte [rbp - 0x56], 0xbf
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea edx, [rax + 3]
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rdx
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rax
movups xmm0, xmmword [0x14012f860]
movups xmmword [rbp - 0x38], xmm0
movsd xmm1, qword [str.__xml_version_1.0__encoding_UTF_8__standalone_yes____r_n]
movsd qword [rbp - 0x28], xmm1
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [rbx + 0x10]
movsd qword [rbp - 0x10], xmm1
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x50]
xor ecx, ecx
call fcn.1400c75f0
mov ebx, eax
mov rdi, qword [rsp + 0x78]
test eax, eax
js 0x140001fdf
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001fa9
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x68]
cmp rsi, rax
jbe 0x140001e67
int3
and dword [rbp - 0x54], 0
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x54]
mov r8d, dword [rsp + 0x68]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140001ede
xor r14d, r14d
test rsi, rsi
je 0x140001ede
mov r13d, 0x4000
mov r15d, r13d
sub r15, rdi
lea rdx, [rdi + r14]
lea rax, [r15 + rdx]
mov r8, rsi
sub r8, r14
cmp rax, rsi
cmovb r8, r13
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x54]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140001f46
add r14, r13
cmp r14, rsi
jb 0x140001ea4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop dword [rax + rax]
test eax, eax
jne 0x140001f6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400cc8ac
mov ebx, eax
shr eax, 0x1f
xor al, 1
je 0x140001f0e
int3
mov dword [rsp + 0x58], 0x33c
lea rax, str.onecore_basewcp_toolsmtcommonmt_microdomutil.h
mov qword [rsp + 0x48], rax
lea rax, str.utiludom_WriteXmlToFile
mov qword [rsp + 0x50], rax
and qword [rsp + 0x60], 0
mov r8d, ebx
lea rcx, [rsp + 0x48]
call fcn.1400c81b4
jmp 0x140001fdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400cc8ac
mov ebx, eax
shr eax, 0x1f
xor al, 1
je 0x140001f63
int3
mov dword [rsp + 0x58], 0x338
jmp 0x140001f16
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
test rdi, rdi
je 0x140001fa5
mov rcx, rdi
call fcn.140012410
xorps xmm0, xmm0
xor ecx, ecx
mov qword [rsp + 0x58], rcx
movups xmmword [rsp + 0x68], xmm0
movsd xmm0, qword [rsp + 0x58]
movsd qword [rsp + 0x78], xmm0
xor eax, eax
jmp 0x140002009
lea rax, str.onecore_basewcp_toolsmtcommonmt_microdomutil.h
mov qword [rbp - 0x80], rax
lea rax, str.utiludom_WriteXmlToFile
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x342
and qword [rbp - 0x68], 0
mov r8d, 0xc0000001
lea rcx, [rbp - 0x80]
call fcn.1400c81b4
mov ebx, 0xc0000001
test rdi, rdi
je 0x140002007
mov rcx, rdi
call fcn.140012410
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x68], xmm0
movsd xmm0, qword [rsp + 0x58]
movsd qword [rsp + 0x78], xmm0
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140109af0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret