Function at 0x1400bc390
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r9, r8
mov eax, edx
mov rdi, rcx
mov qword [rbp - 0x58], 7
xor r14d, r14d
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
lea r8, [rbp - 0x70]
mov rdx, r9
mov ecx, eax
call fcn.1400c2910
test al, al
jne 0x1400bc3f7
lea edi, [r14 + 0xd]
jmp 0x1400bc668
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r8d, 8
lea rdx, str.Text.xml
lea rcx, [rsp + 0x40]
call fcn.140003290
nop
mov rcx, rdi
call fcn.14013c930
or rbx, 0xffffffffffffffff
test al, al
je 0x1400bc44e
lea edi, [rbx + 0xe]
jmp 0x1400bc510
lea r8, [rsp + 0x68]
mov rdx, rdi
call fcn.140067020
mov edi, eax
test eax, eax
jne 0x1400bc510
lea rcx, [rsp + 0x68]
call fcn.140138220
test al, al
jne 0x1400bc47d
lea rcx, [rsp + 0x68]
call fcn.140137300
mov rdx, qword [rsp + 0x50]
add rdx, qword [rsp + 0x78]
cmp rdx, 0x104
ja 0x1400bc50d
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, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r9, qword [rsp + 0x68]
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 0x1400bc4ed
mov r8, r14
jmp 0x1400bc4ff
lea rax, [rbp - 0x50]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1400bc4f4
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140003290
mov edi, r14d
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1400bc52d
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003900
test edi, edi
jne 0x1400bc639
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov edi, 2
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 0x1400bc639
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
cmp word [rdx], 0
jne 0x1400bc5a3
mov rbx, r14
jmp 0x1400bc5ad
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400bc5a3
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140003290
mov dword [rbp - 0x78], 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 - 0x78]
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 0x1400bc610
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 0x1400bc639
mov edi, r14d
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400bc655
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 - 0x58]
cmp r8, 8
jb 0x1400bc682
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140003900
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140185a60
add rsp, 0x2d0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret