Function at 0x1800911e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rdi, rcx
xor esi, esi
mov dword [rbp + 0x138], esi
lea rcx, [rsp + 0x30]
call fcn.18008f820
nop
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.18001d6d0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.18001ead0
cmp byte [rax], sil
jne 0x1800912a5
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18001d050
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x18009127f
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18009127a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800917ed
mov rcx, r8
call fcn.180111228
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov rbx, qword [rsp + 0x248]
add rsp, 0x200
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp byte [rsp + 0x30], 1
jne 0x1800917f4
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.180094a40
mov r8, qword [rax + 8]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x38]
call fcn.1800948a0
lea rax, str.._globals.json
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0xe
call fcn.1801102d0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp + 0xa0]
call fcn.180044f70
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.18006d330
nop
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.180025610
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x180091373
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009136e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009136e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
movdqa xmm0, xmmword [0x180196210]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rbp + 0xb8]
cmp rdx, 7
jbe 0x1800913d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800913ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800913ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
movdqa xmm0, xmmword [0x180196210]
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], si
lea rbx, [rbp + 0x80]
cmp qword [rbp + 0x98], 7
cmova rbx, qword [rbp + 0x80]
lea rax, [0x180150790]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp + 0x138], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r15, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x78], r15
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], rsi
mov rax, qword [0x1801ec9e0]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], rsi
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180032040
test rax, rax
jne 0x1800914d2
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
mov r8d, 4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.18006ab50
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x180091517
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180030a00
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x180091565
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180091560
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180091560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
cmp qword [rbp - 8], 0
je 0x1800916ad
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x70]
cmp qword [rax], rcx
jne 0x180091597
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rax], rcx
mov rax, qword [rbp - 0x50]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x38]
mov dword [rax], edx
cmp qword [rbp - 0x20], 0
je 0x180091614
cmp byte [rbp - 0x17], 0
je 0x180091614
mov rax, qword [rsp + 0x78]
mov r8, qword [rax + 0x18]
lea rax, [fcn.180033310]
mov edx, 0xffffffff
lea rcx, [rsp + 0x78]
cmp r8, rax
jne 0x1800915ca
call fcn.180033310
jmp 0x1800915cd
call r8
cmp eax, 0xffffffff
jne 0x1800915d6
xor bl, bl
jmp 0x180091616
lea rax, [rbp + 0x138]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf8]
lea r8, [rbp + 0xd8]
lea rdx, [rbp - 0x14]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180091665
sub eax, 1
je 0x180091669
cmp eax, 2
je 0x180091610
xor bl, bl
jmp 0x180091616
mov byte [rbp - 0x17], 0
mov bl, 1
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x78]
test bl, bl
cmove rcx, rsi
mov rbx, rsi
test eax, eax
cmove rbx, rcx
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], rsi
mov rax, qword [0x1801ec9e0]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], rsi
test rbx, rbx
jne 0x1800916f3
jmp 0x1800916d3
mov byte [rbp - 0x17], 0
lea rax, [rbp + 0xd8]
mov rbx, qword [rbp + 0x138]
sub rbx, rax
je 0x1800916a1
mov r9, qword [rbp - 8]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0xd8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x1800916a1
xor bl, bl
jmp 0x180091616
cmp byte [rbp - 0x17], 0
sete bl
jmp 0x180091616
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], rsi
mov rax, qword [0x1801ec9e0]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
mov qword [rsp + 0x78], r15
cmp qword [rbp - 8], 0
je 0x180091747
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x70]
cmp qword [rax], rcx
jne 0x180091747
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rax], rcx
mov rax, qword [rbp - 0x50]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x38]
mov dword [rax], edx
cmp byte [rbp - 0xc], 0
je 0x180091757
lea rcx, [rsp + 0x78]
call fcn.1800335b0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 7
jbe 0x1800917c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800917bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800917bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
movdqa xmm0, xmmword [0x180196210]
movdqu xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], si
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18001d050
nop
jmp 0x180091245
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x30]
call fcn.18001c870
mov qword [rbp + 0x138], rax
lea r8, [rbp + 0x138]
lea rdx, str.cannot_use_erase___with
lea rcx, [rsp + 0x50]
call fcn.180023b00
nop
mov r8, rax
mov edx, 0x133
lea rcx, [rbp + 0xa0]
call fcn.18001b430
lea rdx, [0x1801bf4b8]
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3