Function at 0x14001b7e0
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.140015b80
nop
lea rax, [rsp + 0x30]
test bl, bl
jne 0x14001b88a
mov qword [rsp + 0x60], rax
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14000c040
mov rbx, rax
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140015ce0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140018860
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.14001db90
nop
jmp 0x14001b9cd
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.14001db90
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14008aeb8
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.140015ce0
nop
mov qword [rsp + 0x38], rbx
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140015ce0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140018860
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.14001db90
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.14001db90
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14008aeb8
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.140015ce0
nop
mov qword [rsp + 0x38], rbx
mov rdx, qword [rbp + 0x130]
lea rcx, [rbp - 0x80]
call fcn.140015ce0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140018860
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.14001db90
nop
mov rbx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14001b9da
mov rbx, qword [rsi]
lea rax, [0x1400932b0]
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 [0x1400f2270]
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.140021450
test rax, rax
jne 0x14001baa7
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.140018560
lea rcx, [rbp - 0x58]
cmp qword [rbp + 0x28], 0
je 0x14001bc1c
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 0x14001bb0e
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 0x14001bb87
cmp byte [rbp + 0x19], 0
je 0x14001bb87
mov rax, qword [rbp - 0x58]
mov r8, qword [rax + 0x18]
lea rax, [fcn.140021590]
mov edx, 0xffffffff
lea rcx, [rbp - 0x58]
cmp r8, rax
jne 0x14001bb3f
call fcn.140021590
jmp 0x14001bb42
call r8
cmp eax, 0xffffffff
jne 0x14001bb4b
xor bl, bl
jmp 0x14001bb89
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 0x14001bbd6
sub eax, 1
je 0x14001bbda
cmp eax, 2
je 0x14001bb83
xor bl, bl
jmp 0x14001bb89
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 [0x1400f2270]
mov qword [rbp + 0x1c], rax
mov qword [rbp + 0x10], rdi
test rbx, rbx
jne 0x14001bc59
jmp 0x14001bc3d
mov byte [rbp + 0x19], 0
lea rax, [rbp + 0xb0]
mov rbx, qword [rsp + 0x60]
sub rbx, rax
je 0x14001bc10
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 0x14001bc10
xor bl, bl
jmp 0x14001bb89
cmp byte [rbp + 0x19], 0
sete bl
jmp 0x14001bb89
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 [0x1400f2270]
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 0x14001bc6a
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.14000ce80
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.14008c290
mov edx, eax
test eax, eax
jne 0x14001bce9
mov eax, dword [rbp - 0x70]
bt eax, 0xa
jae 0x14001bcdb
mov ecx, dword [rbp - 0x6c]
cmp ecx, 0xa000000c
jne 0x14001bccc
lea edi, [rdx + 4]
jmp 0x14001bd0a
cmp ecx, 0xa0000003
jne 0x14001bcdb
mov edi, 0xa
jmp 0x14001bd0a
movzx edi, al
and edi, 0x10
or edi, 0x20
shr edi, 4
jmp 0x14001bd0a
mov dword [rsp + 0x44], 0xffff
sub eax, 2
je 0x14001bd05
sub eax, 1
je 0x14001bd05
sub eax, 0x32
je 0x14001bd05
cmp eax, 0x46
jne 0x14001bd0a
mov edi, 1
mov dword [rsp + 0x30], edx
lea rax, [0x1400b9d48]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edi, edi
je 0x14001bddc
cmp edi, 1
sete bl
lea rcx, [rsp + 0x60]
call fcn.14001d490
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.1400171f0
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 0x14001bde7
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001db90
nop
mov rcx, rsi
call fcn.140017280
nop
mov rcx, r15
call fcn.140017280
nop
mov rcx, r14
call fcn.140017280
nop
mov rcx, qword [rbp + 0x130]
call fcn.140017280
nop
mov rcx, qword [rbp + 0x138]
call fcn.140017280
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 0x14001be3d
jmp 0x14001bd33
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001db90
nop
mov rcx, rsi
call fcn.140017280
nop
mov rcx, r15
call fcn.140017280
nop
mov rcx, r14
call fcn.140017280
nop
mov rcx, qword [rbp + 0x130]
call fcn.140017280
nop
mov rcx, qword [rbp + 0x138]
call fcn.140017280
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.14001d0b0
int3