Function at 0x180040e30
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x88], rax
call sym.BLRevive.dll_public:_static_int___cdecl_std::_Narrow_char_traits_char__int_::eof_void_
mov ecx, eax
mov edx, esi
call sym.BLRevive.dll_public:_static_bool___cdecl_std::_Narrow_char_traits_char__int_::eq_int_type_int__int_
test al, al
je 0x180040e8c
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18008fc60
mov ecx, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sym.BLRevive.dll_public:_static_int___cdecl_std::_Narrow_char_traits_char__int_::not_eof_int_
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x180040ecd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
cmp rbx, rax
jae 0x180040ecd
mov ecx, esi
call sym.BLRevive.dll____to_char_type_DD_0A____binary_writer_V__basic_json_Vmap_std__Vvector_2_V__basic_string_DU__char_traits_D_std__V
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], bl
jmp 0x180040fd9
cmp qword [rdi + 0x80], 0
je 0x180040f94
mov rcx, rdi
call sym.BLRevive.dll_private:_void___cdecl_std::basic_filebuf_char__struct_std::char_traits_char__::_Reset_back_void____ptr64
cmp qword [rdi + 0x68], 0
je 0x180040f78
mov ecx, esi
call sym.BLRevive.dll____to_char_type_DD_0A____binary_writer_V__basic_json_Vmap_std__Vvector_2_V__basic_string_DU__char_traits_D_std__V
mov byte [rsp + 0x5f], al
mov rcx, qword [rdi + 0x68]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x5f]
mov r8, rbx
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]
cmp eax, 2
jae 0x180040fb8
mov r15, qword [rsp + 0x48]
sub r15, r14
je 0x180040f6b
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x180040fd2
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rbx
jne 0x180040fd9
jmp 0x180040fd2
mov rdi, qword [rdi + 0x80]
mov ecx, esi
call sym.BLRevive.dll____to_char_type_DD_0A____binary_writer_V__basic_json_Vmap_std__Vvector_2_V__basic_string_DU__char_traits_D_std__V
mov ecx, eax
mov rdx, rdi
call sym.BLRevive.dll_bool___cdecl_std::_Fputc_char__char__struct__iobuf____ptr64_
test al, al
jne 0x180040fd9
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18008fc60
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sym.BLRevive.dll_public:_static_int___cdecl_std::_Narrow_char_traits_char__int_::eof_void_
cmp eax, 3
jne 0x180040fd2
mov rdx, qword [rdi + 0x80]
movzx ecx, byte [rsp + 0x5f]
call sym.BLRevive.dll_bool___cdecl_std::_Fputc_char__char__struct__iobuf____ptr64_
test al, al
jne 0x180040fd9
call sym.BLRevive.dll_public:_static_int___cdecl_std::_Narrow_char_traits_char__int_::eof_void_
mov esi, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18008fc60
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret