Function at 0x140008420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r12, rdx
mov qword [rbp + 8], rcx
xor r14d, r14d
lea rdx, [rbp + 0x40]
mov qword [rbp + 0x40], r14
mov rsi, rcx
call fcn.14000988c
mov r13, rax
test rax, rax
jne 0x140008563
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
movabs rax, 0x706a70455bf15514
mov qword [rbp], rax
movabs r8, 0x39607bf5c964feba
mov rax, qword [rbp]
movabs rdx, 0xdc19e0c39babcc30
mov qword [rbp + 0x60], rax
movabs rax, 0xb06081b3bbcfad55
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
movabs rax, 0x900757842380c78e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x70], rax
mov qword [rbp], r8
mov rax, qword [rbp]
mov qword [rbp + 0x78], rax
movabs rax, 0x24a042a359f3457
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa0], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x60]
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
movabs rax, 0x9007578402e4a6e1
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xb0], rax
mov qword [rbp], r8
mov rax, qword [rbp]
mov qword [rbp + 0xb8], rax
vmovdqu ymm0, ymmword [rbp + 0xa0]
vpxor ymm1, ymm0, ymmword [rbp + 0x60]
vmovdqa ymmword [rbp + 0x60], ymm1
vzeroupper
call fcn.140003120
lea rdx, [0x1400032f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400087ac
movabs rcx, 0xdc19e0c39babcc30
movabs rax, 0x3b78604347f8551f
mov qword [rbp], rax
mov rbx, 0xffffffffffffffff
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x24a042a359f3457
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov r15d, dword [rbp + 0x40]
movdqa xmm0, xmmword [rbp + 0x20]
mov qword [rbp + 0x88], rax
mov eax, r15d
xorps xmm0, xmmword [rbp + 0x80]
and al, 0xf
neg al
movdqa xmmword [rbp + 0x20], xmm0
mov eax, r15d
sbb ecx, ecx
and eax, 0xfffffff0
and ecx, 0x10
add ecx, eax
mov dword [rbp + 0x10], ecx
add ecx, 1
cmovb rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rbp + 0x10]
xor edx, edx
inc r8d
mov qword [rbp], rax
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rax, [rbp + 0x20]
movups xmmword [rbp + 0xd0], xmm0
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140008620
mov eax, 0x10
lea rdx, [rbp + 0x20]
cmp rbx, rax
lea rcx, [rbp + 0xd0]
cmova rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
test r15d, r15d
je 0x1400086d3
lea rax, [rbp + 0xd0]
mov edx, r14d
mov qword [0x140010888], rax
mov rsi, rdi
nop word [rax + rax]
movsxd rbx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x10
mov eax, r15d
sub eax, edx
xorps xmm0, xmm0
cmp eax, r8d
lea rdi, [rbx + r13]
cmovb r8d, eax
mov rdx, rdi
movups xmmword [rbp + 0xe0], xmm0
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [rdi]
lea rax, [rbx + rsi]
mov qword [0x140010890], rax
movups xmmword [rax], xmm0
call fcn.140001010
call fcn.140001820
inc r14d
mov edx, r14d
shl edx, 4
cmp edx, r15d
jb 0x140008670
mov rsi, qword [rbp + 8]
mov rdi, qword [rbp]
test r12, r12
jne 0x140008787
movabs rax, 0x24a042a56f15179
lea rcx, [rbp + 0xc0]
mov qword [rbp + 8], rax
movabs rdx, 0xdc19e0c39babcc30
mov rax, qword [rbp + 8]
sub rcx, rsi
mov qword [rbp + 0x30], rax
mov qword [rbp + 8], rdx
mov rax, qword [rbp + 8]
mov qword [rbp + 0x38], rax
movabs rax, 0x24a042a359f3457
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x60], rax
mov qword [rbp + 8], rdx
mov rax, qword [rbp + 8]
movdqa xmm0, xmmword [rbp + 0x30]
mov qword [rbp + 0x68], rax
xorps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rbp + 0x30], xmm0
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x140008742
lea rax, [rbp + 0xc0]
dec rax
nop word [rax + rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140008760
lea r8, [rbp + 0x30]
xor edx, edx
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140008770
lea r12, [rbp + 0xc0]
lea rdx, [0x14000cd2c]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r8d, dword [rbp + 0x10]
mov edx, 1
mov r9, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14000a1a0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret