Function at 0x14001afa0
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 - 0xd8]
sub rsp, 0x1d8
movzx ebx, r9b
mov r14, r8
mov r15, rdx
mov rsi, rcx
xor edi, edi
mov dword [rbp + 0x128], edi
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140017110
nop
lea rax, [rsp + 0x30]
test bl, bl
jne 0x14001b04a
mov qword [rsp + 0x60], rax
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14000d440
mov rbx, rax
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140017270
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140019cd0
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.14001d310
nop
jmp 0x14001b18d
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001d310
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14008c6e8
mov rbx, rax
lea rax, [rbp + 0x128]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rdx, r14
mov rcx, rbx
call fcn.140017270
nop
mov qword [rsp + 0x38], rbx
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140017270
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140019cd0
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.14001d310
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001d310
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14008c6e8
mov rbx, rax
lea rax, [rbp + 0x128]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rdx, qword [rbp + 0x138]
mov rcx, rbx
call fcn.140017270
nop
mov qword [rsp + 0x38], rbx
mov rdx, qword [rbp + 0x130]
lea rcx, [rbp - 0x80]
call fcn.140017270
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140019cd0
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.14001d310
nop
mov rbx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14001b19a
mov rbx, qword [rsi]
lea rax, [0x1400942c0]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x48]
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 + 0x128], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x60]
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 - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
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 - 0x58], rax
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x19], 0
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x28], rdi
mov rax, qword [0x1400f38e0]
mov qword [rbp + 0x1c], rax
mov qword [rbp + 0x10], rdi
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.140020a70
test rax, rax
jne 0x14001b267
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
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 [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400199e0
lea rcx, [rbp - 0x58]
cmp qword [rbp + 0x28], 0
je 0x14001b3dc
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 + 0x18]
cmp rax, rcx
jne 0x14001b2ce
mov r9, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
mov r8, rdx
lea rcx, [rbp - 0x58]
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 + 0x10], 0
je 0x14001b347
cmp byte [rbp + 0x19], 0
je 0x14001b347
mov rax, qword [rbp - 0x58]
mov r8, qword [rax + 0x18]
lea rax, [fcn.140020bb0]
mov edx, 0xffffffff
lea rcx, [rbp - 0x58]
cmp r8, rax
jne 0x14001b2ff
call fcn.140020bb0
jmp 0x14001b302
call r8
cmp eax, 0xffffffff
jne 0x14001b30b
xor bl, bl
jmp 0x14001b349
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xd0]
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x1c]
mov rcx, qword [rbp + 0x10]
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 0x14001b396
sub eax, 1
je 0x14001b39a
cmp eax, 2
je 0x14001b343
xor bl, bl
jmp 0x14001b349
mov byte [rbp + 0x19], 0
mov bl, 1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp - 0x58]
test bl, bl
cmove rcx, rdi
mov rbx, rdi
test eax, eax
cmove rbx, rcx
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x19], 0
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x28], rdi
mov rax, qword [0x1400f38e0]
mov qword [rbp + 0x1c], rax
mov qword [rbp + 0x10], rdi
test rbx, rbx
jne 0x14001b419
jmp 0x14001b3fd
mov byte [rbp + 0x19], 0
lea rax, [rbp + 0xb0]
mov rbx, qword [rsp + 0x60]
sub rbx, rax
je 0x14001b3d0
mov r9, qword [rbp + 0x28]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x14001b3d0
xor bl, bl
jmp 0x14001b349
cmp byte [rbp + 0x19], 0
sete bl
jmp 0x14001b349
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x19], 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 + 0x28], rdi
mov rax, qword [0x1400f38e0]
mov qword [rbp + 0x1c], rax
mov qword [rbp + 0x10], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
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]
mov rcx, qword [rsi + 0x10]
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14001b42a
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14000e230
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp - 0x80]
call fcn.14008dacc
mov edx, eax
test eax, eax
jne 0x14001b4a9
mov eax, dword [rbp - 0x70]
bt eax, 0xa
jae 0x14001b49b
mov ecx, dword [rbp - 0x6c]
cmp ecx, 0xa000000c
jne 0x14001b48c
lea edi, [rdx + 4]
jmp 0x14001b4ca
cmp ecx, 0xa0000003
jne 0x14001b49b
mov edi, 0xa
jmp 0x14001b4ca
movzx edi, al
and edi, 0x10
or edi, 0x20
shr edi, 4
jmp 0x14001b4ca
mov dword [rsp + 0x44], 0xffff
sub eax, 2
je 0x14001b4c5
sub eax, 1
je 0x14001b4c5
sub eax, 0x32
je 0x14001b4c5
cmp eax, 0x46
jne 0x14001b4ca
mov edi, 1
mov dword [rsp + 0x30], edx
lea rax, [0x1400bad28]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edi, edi
je 0x14001b59c
cmp edi, 1
sete bl
lea rcx, [rsp + 0x60]
call fcn.14001cc30
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
call fcn.140018690
lea rcx, [rbp - 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 + 0x48]
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 0x14001b5a7
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001d310
nop
mov rcx, rsi
call fcn.14000b1f0
nop
mov rcx, r15
call fcn.14000b1f0
nop
mov rcx, r14
call fcn.14000b1f0
nop
mov rcx, qword [rbp + 0x130]
call fcn.14000b1f0
nop
mov rcx, qword [rbp + 0x138]
call fcn.14000b1f0
xor al, al
add rsp, 0x1d8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov bl, 1
test edx, edx
jne 0x14001b5fd
jmp 0x14001b4f3
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001d310
nop
mov rcx, rsi
call fcn.14000b1f0
nop
mov rcx, r15
call fcn.14000b1f0
nop
mov rcx, r14
call fcn.14000b1f0
nop
mov rcx, qword [rbp + 0x130]
call fcn.14000b1f0
nop
mov rcx, qword [rbp + 0x138]
call fcn.14000b1f0
mov al, 1
add rsp, 0x1d8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.14001c850
int3