Function at 0x140005dd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x80
mov rax, qword [0x14000e080]
xor rax, rsp
mov qword [rsp + 0x78], rax
call qword [0x14000e118]
inc qword [r12 + 0x2f8]
mov edi, edx
mov rsi, rcx
mov ecx, 0xffffffff
movabs r11, 0x29c
movabs r10, 5
call fcn.140001590
test al, al
je 0x140005e44
mov ecx, edi
movabs r11, 0x29c
movabs r10, 4
call fcn.1400026c0
jmp 0x14000607c
mov rcx, rsi
inc qword [r12 + 0x300]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
inc qword [r12 + 0x308]
test rax, rax
je 0x140005eb7
mov rcx, rsi
inc qword [r12 + 0x310]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
inc qword [r12 + 0x318]
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
inc qword [r12 + 0x320]
cmp rax, rbx
jae 0x140005eb7
mov rcx, rsi
inc qword [r12 + 0x328]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
inc qword [r12 + 0x330]
mov byte [rax], dil
mov eax, edi
jmp 0x14000607c
cmp qword [rsi + 0x80], 0
jne 0x140005ecb
mov eax, 0xffffffff
jmp 0x14000607c
mov rcx, rsi
inc qword [r12 + 0x338]
movabs r11, 0x29c
movabs r10, 3
call fcn.140001970
inc qword [r12 + 0x340]
cmp qword [rsi + 0x68], 0
jne 0x140005f4a
mov rdx, qword [rsi + 0x80]
movzx ecx, dil
inc qword [r12 + 0x348]
movabs r11, 0x29c
movabs r10, 2
call fcn.140001de0
inc qword [r12 + 0x350]
test al, al
jne 0x140005f43
inc qword [r12 + 0x358]
mov edi, 0xffffffff
mov eax, edi
jmp 0x14000607c
mov byte [rsp + 0x50], dil
lea rdx, [rsi + 0x74]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rcx, qword [rsi + 0x68]
inc qword [r12 + 0x360]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
inc qword [r12 + 0x368]
movsxd r10, eax
lea r11, [0x1400097a8]
call fcn.140007d90
test eax, eax
je 0x140006010
sub eax, 1
je 0x140006010
cmp eax, 2
je 0x140005fc6
mov eax, 0xffffffff
jmp 0x14000607c
mov rdx, qword [rsi + 0x80]
movzx ecx, byte [rsp + 0x50]
inc qword [r12 + 0x370]
movabs r11, 0x29c
movabs r10, 1
call fcn.140001de0
inc qword [r12 + 0x378]
test al, al
jne 0x14000600c
inc qword [r12 + 0x380]
mov edi, 0xffffffff
mov eax, edi
jmp 0x14000607c
lea rax, [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
sub rbx, rax
je 0x14000605d
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x58]
inc qword [r12 + 0x388]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
inc qword [r12 + 0x390]
cmp rbx, rax
je 0x14000605d
inc qword [r12 + 0x398]
mov eax, 0xffffffff
jmp 0x14000607c
mov byte [rsi + 0x71], 1
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000607c
inc qword [r12 + 0x3a0]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003d60
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r12
pop rdi
pop rsi
ret