Function at 0x1400149a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
movzx ebx, r9b
mov r14, r8
mov r15, rdx
mov rsi, rcx
xor edi, edi
mov dword [rbp + 0x138], edi
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14000fdf0
nop
lea rax, [rsp + 0x30]
test bl, bl
jne 0x140014a4d
mov qword [rsp + 0x70], rax
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140006310
mov rbx, rax
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.14000ff50
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140012750
nop
movzx edx, byte [rax]
movzx ecx, byte [rbx]
mov byte [rax], cl
mov byte [rbx], dl
lea rcx, [rbx + 8]
mov rdx, qword [rax + 8]
mov r8, qword [rcx]
mov qword [rax + 8], r8
mov qword [rcx], rdx
movzx edx, byte [rbx]
call fcn.140016e20
nop
jmp 0x140014b96
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140016e20
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400881dc
mov rbx, rax
lea rax, [rbp + 0x138]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov rdx, r14
mov rcx, rbx
call fcn.14000ff50
nop
mov qword [rsp + 0x38], rbx
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.14000ff50
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140012750
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140016e20
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140016e20
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400881dc
mov rbx, rax
lea rax, [rbp + 0x138]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov rdx, qword [rbp + 0x148]
mov rcx, rbx
call fcn.14000ff50
nop
mov qword [rsp + 0x38], rbx
mov rdx, qword [rbp + 0x140]
lea rcx, [rbp + 0xa0]
call fcn.14000ff50
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140012750
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140016e20
nop
mov rbx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140014ba3
mov rbx, qword [rsi]
lea rax, [0x14008e0f0]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x38]
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], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 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 [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
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 [rbp - 0x68], rax
mov byte [rbp + 0x14], 0
mov byte [rbp + 9], 0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x18], rdi
mov rax, qword [0x1400b5bc0]
mov qword [rbp + 0xc], rax
mov qword [rbp], rdi
mov r9d, 0x40
mov r8d, 2
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14001aaf0
test rax, rax
jne 0x140014c73
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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 [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.140012450
lea rcx, [rbp - 0x68]
cmp qword [rbp + 0x18], 0
je 0x140014de8
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 + 8]
cmp rax, rcx
jne 0x140014cda
mov r9, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r8, rdx
lea rcx, [rbp - 0x68]
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], 0
je 0x140014d53
cmp byte [rbp + 9], 0
je 0x140014d53
mov rax, qword [rbp - 0x68]
mov r8, qword [rax + 0x18]
lea rax, [fcn.14001ac30]
mov edx, 0xffffffff
lea rcx, [rbp - 0x68]
cmp r8, rax
jne 0x140014d0b
call fcn.14001ac30
jmp 0x140014d0e
call r8
cmp eax, 0xffffffff
jne 0x140014d17
xor bl, bl
jmp 0x140014d55
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xe0]
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0xc]
mov rcx, qword [rbp]
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 0x140014da2
sub eax, 1
je 0x140014da6
cmp eax, 2
je 0x140014d4f
xor bl, bl
jmp 0x140014d55
mov byte [rbp + 9], 0
mov bl, 1
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp - 0x68]
test bl, bl
cmove rcx, rdi
mov rbx, rdi
test eax, eax
cmove rbx, rcx
mov byte [rbp + 0x14], 0
mov byte [rbp + 9], 0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x18], rdi
mov rax, qword [0x1400b5bc0]
mov qword [rbp + 0xc], rax
mov qword [rbp], rdi
test rbx, rbx
jne 0x140014e26
jmp 0x140014e09
mov byte [rbp + 9], 0
lea rax, [rbp + 0xc0]
mov rbx, qword [rsp + 0x70]
sub rbx, rax
je 0x140014ddc
mov r9, qword [rbp + 0x18]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x140014ddc
xor bl, bl
jmp 0x140014d55
cmp byte [rbp + 9], 0
sete bl
jmp 0x140014d55
mov byte [rbp + 0x14], 0
mov byte [rbp + 9], 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 + 0x18], rdi
mov rax, qword [0x1400b5bc0]
mov qword [rbp + 0xc], rax
mov qword [rbp], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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]
mov rcx, qword [rsi + 0x10]
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140014e37
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140007050
nop
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rcx, qword [rsp + 0x70]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x30]
call fcn.140087df4
mov r8d, eax
test eax, eax
jne 0x140014ec5
mov edx, dword [rsp + 0x40]
mov ecx, edx
shr ecx, 0xa
test cl, 1
je 0x140014eba
mov eax, dword [rsp + 0x44]
cmp eax, 0xa000000c
jne 0x140014eac
mov edx, 4
jmp 0x140014ee8
cmp eax, 0xa0000003
jne 0x140014eba
mov edx, 0xa
jmp 0x140014ee8
shr edx, 4
and edx, 1
or edx, 2
jmp 0x140014ee8
mov dword [rsp + 0x54], 0xffff
sub eax, 2
je 0x140014ee1
sub eax, 1
je 0x140014ee1
sub eax, 0x32
je 0x140014ee1
cmp eax, 0x46
jne 0x140014ee6
mov edi, 1
mov edx, edi
mov dword [rsp + 0x30], r8d
lea rax, [0x1400b28e8]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edx, edx
je 0x140014fbb
cmp edx, 1
sete bl
lea rcx, [rsp + 0x70]
call fcn.1400165b0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140011190
lea rcx, [rbp - 0x60]
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 + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test bl, bl
je 0x140014fc7
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140016e20
nop
mov rcx, rsi
call fcn.1400040b0
nop
mov rcx, r15
call fcn.1400040b0
nop
mov rcx, r14
call fcn.1400040b0
nop
mov rcx, qword [rbp + 0x140]
call fcn.1400040b0
nop
mov rcx, qword [rbp + 0x148]
call fcn.1400040b0
xor al, al
add rsp, 0x1e8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov bl, 1
test r8d, r8d
jne 0x14001501d
jmp 0x140014f12
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140016e20
nop
mov rcx, rsi
call fcn.1400040b0
nop
mov rcx, r15
call fcn.1400040b0
nop
mov rcx, r14
call fcn.1400040b0
nop
mov rcx, qword [rbp + 0x140]
call fcn.1400040b0
nop
mov rcx, qword [rbp + 0x148]
call fcn.1400040b0
mov al, 1
add rsp, 0x1e8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.1400161d0
int3