Function at 0x1400bca00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], 7
xor edi, edi
mov qword [rbp + 0xf], rdi
mov word [rbp - 1], di
lea edx, [rdi + 2]
lea rcx, [rbp - 1]
call fcn.1401548e0
or rbx, 0xffffffffffffffff
cmp qword [r14 + 0xa0], rdi
je 0x1400bcbcd
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
lea r8d, [rdi + 4]
lea rdx, str.Info
lea rcx, [rbp - 0x49]
call fcn.140003290
nop
lea r8d, [rdi + 1]
lea rdx, [0x1402129f8]
lea rcx, [rbp - 1]
call fcn.140004d70
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.140004ee0
nop
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x1400bcace
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.140003900
lea rcx, [r14 + 0x70]
lea rdx, [rbp - 1]
call fcn.140155340
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
mov r8d, 4
lea rdx, str.Name
lea rcx, [rbp - 0x49]
call fcn.140003290
nop
mov r8d, 1
lea rdx, [0x140201200]
lea rcx, [rbp - 1]
call fcn.140004d70
lea r8, [0x140212a10]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.1400082d0
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140004ee0
nop
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x1400bcb5a
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.140003900
mov r9, rbx
xor r8d, r8d
lea rdx, [r14 + 0x90]
lea rcx, [rbp - 1]
call fcn.140004ee0
mov r8d, 1
lea rdx, [0x140212a18]
lea rcx, [rbp - 1]
call fcn.140004d70
nop
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x1400bcba1
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.140003900
mov r8d, 1
lea rdx, [0x140212134]
lea rcx, [rbp - 1]
call fcn.140004d70
mov r8d, 3
lea rdx, [0x140212a08]
lea rcx, [rbp - 1]
call fcn.140004d70
lea rdx, [rbp - 1]
mov rcx, r14
call fcn.1400c0480
mov r8d, 2
lea rdx, [0x140212a00]
lea rcx, [rbp - 1]
call fcn.140004d70
mov r8d, 4
lea rdx, str.Root
lea rcx, [rbp - 1]
call fcn.140004d70
mov r8d, 1
lea rdx, [0x1402129fc]
lea rcx, [rbp - 1]
call fcn.140004d70
cmp qword [rsi + 0x18], 8
jb 0x1400bcc25
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1400bcd06
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
cmp word [rdx], 0
jne 0x1400bcc80
mov rbx, rdi
jmp 0x1400bcc8a
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400bcc80
mov r8, rbx
lea rcx, [rbp - 0x49]
call fcn.140003290
mov dword [rbp + 0x1f], edi
mov eax, dword [rbp - 0x39]
lea r8d, [rax + rax]
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rdx, qword [rbp - 0x49]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x1f]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test al, al
sete bl
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x1400bcce4
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.140003900
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
test bl, bl
sete bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1400bcd0b
mov edi, 2
mov r8, qword [rbp + 0x17]
cmp r8, 8
jb 0x1400bcd25
inc r8
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 1]
call fcn.140003900
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140185a60
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret