Function at 0x1400bc040
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
movzx r12d, dl
mov rsi, rcx
mov qword [rbp - 0x58], 7
xor r13d, r13d
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
lea rdx, [rbp - 0x70]
call fcn.1400c2610
test al, al
jne 0x1400bc0b1
lea edi, [r13 + 0xd]
jmp 0x1400bc33b
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
lea r8, [rsp + 0x68]
lea rdx, [rsi + 8]
call fcn.140067020
mov edi, eax
test eax, eax
jne 0x1400bc30c
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
lea r8d, [rax + 4]
lea rdx, [0x140200fd8]
lea rcx, [rsp + 0x40]
call fcn.140003290
nop
mov rdx, qword [rsp + 0x50]
add rdx, qword [rsp + 0x78]
or rbx, 0xffffffffffffffff
cmp rdx, 0x104
ja 0x1400bc19d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.14018f1e0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14019ab20
cmp word [rbp - 0x50], di
jne 0x1400bc17c
mov r8, r13
jmp 0x1400bc18e
lea rax, [rbp - 0x50]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1400bc183
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140003290
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1400bc1ba
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003900
mov edi, r13d
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
test rax, rax
je 0x1400bc307
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
cmp word [rdx], di
jne 0x1400bc230
mov rbx, r13
jmp 0x1400bc239
inc rbx
cmp word [rdx + rbx*2], di
jne 0x1400bc230
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140003290
mov dword [rbp - 0x78], r13d
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], r13
lea r9, [rbp - 0x78]
mov rcx, r15
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 0x1400bc29c
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003900
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
test bl, bl
sete bl
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1400bc307
test r12b, r12b
je 0x1400bc30c
cmp dword [rsi + 0x6c], 0xffffffff
mov edx, r13d
je 0x1400bc2d3
mov edx, dword [rsi + 0x68]
lea r8, [rsi + 0xb0]
lea rcx, [rsi + 8]
call fcn.1400bc390
lea rdx, [rsi + 0xd8]
lea rcx, [rsi + 8]
call fcn.1400bc6b0
lea rdx, [rsi + 0x148]
lea rcx, [rsi + 8]
call fcn.1400bcd50
mov edi, eax
jmp 0x1400bc30c
mov edi, 2
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400bc328
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140003900
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x1400bc355
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
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret