Function at 0x140008b20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rdi, r8
mov rsi, rdx
xor r15d, r15d
mov dword [rbp + 0xf8], r15d
lea rax, [0x14009e060]
mov qword [rsp + 0x40], 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 + 0xf8], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
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 + 0x40]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], r12
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x48], rax
mov byte [rbp - 0x3c], r15b
mov byte [rbp - 0x47], r15b
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x38], r15
mov rax, qword [0x1400c90d0]
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x50], r15
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rdi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, rdx
jb 0x140008f85
mov r9, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140008c1b
mov r9, qword [rsi]
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140008c28
mov rax, qword [rdi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, rsi
movzx edx, byte [rbp + 0xf0]
lea rcx, [rbp + 0x50]
call fcn.140006cd0
nop
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rdx, qword [rbp + 0x50]
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rcx, [rsp + 0x48]
call fcn.140007d80
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
je 0x140008c90
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140008c9f
add rcx, rax
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 rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140008cdd
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008cd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008cd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140097c9c
mov r14, qword [0x1400c9008]
mov rbx, qword [0x1400c9000]
cmp rbx, r14
je 0x140008d18
movss xmm1, dword [rbx]
lea rcx, [rsp + 0x40]
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___float____ptr64]
lea rdx, [0x140006bb0]
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]
add rbx, 4
cmp rbx, r14
jne 0x140008cf0
lea rcx, [rsp + 0x48]
cmp qword [rbp - 0x38], 0
je 0x140008e5a
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp - 0x48]
cmp rax, rcx
jne 0x140008d4d
mov r9, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x30]
mov r8, rdx
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
cmp qword [rbp - 0x50], 0
je 0x140008dc7
cmp byte [rbp - 0x47], 0
je 0x140008dc7
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x18]
lea rax, [fcn.140007ec0]
mov edx, 0xffffffff
lea rcx, [rsp + 0x48]
cmp r8, rax
jne 0x140008d80
call fcn.140007ec0
jmp 0x140008d83
call r8
cmp eax, 0xffffffff
jne 0x140008d8c
xor bl, bl
jmp 0x140008dc9
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x98]
lea r8, [rbp + 0x78]
lea rdx, [rbp - 0x44]
mov rcx, qword [rbp - 0x50]
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 0x140008e18
sub eax, 1
je 0x140008e1c
cmp eax, 2
je 0x140008dc3
xor bl, bl
jmp 0x140008dc9
mov byte [rbp - 0x47], 0
mov bl, 1
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x48]
test bl, bl
cmove rcx, r15
mov rbx, r15
test eax, eax
cmove rbx, rcx
mov byte [rbp - 0x3c], 0
mov byte [rbp - 0x47], 0
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x38], r15
mov rax, qword [0x1400c90d0]
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x50], r15
test rbx, rbx
jne 0x140008e9a
jmp 0x140008e7b
mov byte [rbp - 0x47], 0
lea rax, [rbp + 0x78]
mov rbx, qword [rbp + 0xf8]
sub rbx, rax
je 0x140008e4e
mov r9, qword [rbp - 0x38]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x140008e4e
xor bl, bl
jmp 0x140008dc9
cmp byte [rbp - 0x47], 0
sete bl
jmp 0x140008dc9
mov byte [rbp - 0x3c], 0
mov byte [rbp - 0x47], 0
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x38], r15
mov rax, qword [0x1400c90d0]
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x50], r15
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 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 + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], r12
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.140006e70
lea rcx, [rsp + 0x50]
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 [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140008f11
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140008f0c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008f77
mov rcx, r8
call fcn.140097c9c
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140008f56
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140008f51
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008f7e
mov rcx, r8
call fcn.140097c9c
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
add rsp, 0x1a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140004d80
int3