Function at 0x140002410
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x58], rcx
mov rsi, qword [rsp + 0x58]
mov edi, dword [rsp + 0x48]
call fcn.1400022f0
mov ecx, eax
mov edx, edi
call fcn.140002300
test al, 1
jne 0x140002452
jmp 0x140002464
mov ecx, dword [rsp + 0x48]
call fcn.140004cd0
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
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]
cmp rax, 0
je 0x1400024b0
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]
mov rdi, rax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
cmp rdi, rax
jae 0x1400024b0
mov ecx, dword [rsp + 0x48]
call fcn.140004d10
mov bl, al
mov rcx, rsi
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
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
cmp qword [rsi + 0x80], 0
jne 0x1400024c8
call fcn.1400022f0
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
mov rcx, rsi
call fcn.140001fd0
cmp qword [rsi + 0x68], 0
jne 0x14000250b
mov rsi, qword [rsi + 0x80]
mov ecx, dword [rsp + 0x48]
call fcn.140004d10
mov cl, al
mov rdx, rsi
call fcn.140004dd0
test al, 1
jne 0x1400024f7
jmp 0x1400024fd
mov eax, dword [rsp + 0x48]
jmp 0x140002502
call fcn.1400022f0
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
mov qword [rsp + 0x60], 0x20
mov ecx, dword [rsp + 0x48]
call fcn.140004d10
mov byte [rsp + 0x7f], al
mov rcx, qword [rsi + 0x68]
lea rax, [rsp + 0xa0]
lea r9, [rsp + 0x80]
mov rdx, rsi
add rdx, 0x74
lea r8, [rsp + 0x68]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, 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]
lea r8, [rsp + 0x7f]
call rax
mov ecx, eax
sub ecx, 2
jb 0x140002583
jmp 0x140002579
sub eax, 3
je 0x1400025fa
jmp 0x140002621
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x80]
sub rax, rcx
mov qword [rsp + 0x50], rax
xor eax, eax
cmp rax, qword [rsp + 0x50]
jae 0x1400025d5
mov rdi, qword [rsp + 0x50]
mov r9, qword [rsi + 0x80]
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x80]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
je 0x1400025d5
call fcn.1400022f0
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
mov byte [rsi + 0x71], 1
lea rax, [rsp + 0x7f]
cmp qword [rsp + 0x70], rax
je 0x1400025ef
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
call fcn.1400022f0
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
mov rdx, qword [rsi + 0x80]
mov cl, byte [rsp + 0x7f]
call fcn.140004dd0
test al, 1
jne 0x140002610
jmp 0x140002616
mov eax, dword [rsp + 0x48]
jmp 0x14000261b
call fcn.1400022f0
mov dword [rsp + 0x4c], eax
jmp 0x14000262a
call fcn.1400022f0
mov dword [rsp + 0x4c], eax
mov esi, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140006710
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret