Function at 0x1400bc6b0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x60], 7
xor r14d, r14d
mov qword [rbp - 0x68], r14
mov word [rbp - 0x78], r14w
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
lea r8d, [r14 + 0xb]
lea rdx, str.Options.xml
lea rcx, [rsp + 0x40]
call fcn.140003290
nop
mov rcx, rdi
call fcn.14013c930
or rbx, 0xffffffffffffffff
test al, al
jne 0x1400bc7f9
lea r8, [rbp - 0x78]
mov rdx, rdi
call fcn.140067020
test eax, eax
jne 0x1400bc7f9
lea rcx, [rbp - 0x78]
call fcn.140138220
test al, al
jne 0x1400bc769
lea rcx, [rbp - 0x78]
call fcn.140137300
mov rdx, qword [rsp + 0x50]
add rdx, qword [rbp - 0x68]
cmp rdx, 0x104
ja 0x1400bc7f9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.14018f1e0
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r9, qword [rbp - 0x78]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14019ab20
cmp word [rbp - 0x50], 0
jne 0x1400bc7d2
mov r8, r14
jmp 0x1400bc7eb
lea rax, [rbp - 0x50]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400bc7e0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.140003290
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1400bc816
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003900
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
mov edi, 2
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1401548e0
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.1400c0480
mov r8d, edi
lea rdx, [0x140212a00]
lea rcx, [rsp + 0x68]
call fcn.140004d70
lea r8d, [rdi + 2]
lea rdx, str.Root
lea rcx, [rsp + 0x68]
call fcn.140004d70
lea r8d, [rdi - 1]
lea rdx, [0x1402129fc]
lea rcx, [rsp + 0x68]
call fcn.140004d70
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1400bc986
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
cmp word [rdx], 0
jne 0x1400bc8f0
mov rbx, r14
jmp 0x1400bc8fa
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400bc8f0
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140003290
mov dword [rbp - 0x58], r14d
mov eax, dword [rsp + 0x50]
lea r8d, [rax + rax]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test al, al
sete bl
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1400bc95d
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003900
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
test bl, bl
sete bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1400bc986
mov edi, r14d
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400bc9a2
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140003900
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x1400bc9cf
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.140003900
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140185a60
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret