Function at 0x180164010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x410
xor r15d, r15d
mov dword [rsp + 0x80], r15d
lea r13, [0x18033df50]
mov rbx, r13
cmp qword [0x18033df68], 0x10
cmovae rbx, qword [0x18033df50]
lea r14, [0x180000000]
lea rax, [r14 + 0x2d8400]
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x80], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_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 + 0xb0]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xb0], rdi
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0xac], edx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x458], rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xc0], rax
mov byte [rsp + 0x13c], r15b
mov byte [rsp + 0x131], r15b
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x140], r15
mov rax, qword [0x18033c860]
mov qword [rsp + 0x134], rax
mov qword [rsp + 0x128], r15
lea r8d, [r15 + 1]
mov rdx, rbx
lea rcx, [rsp + 0xc0]
call fcn.18006e1a0
test rax, rax
jne 0x180164176
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xb0]
add rcx, rax
xor r8d, r8d
lea edx, [r15 + 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 + 0xb0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0xb0], rdi
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0xac], edx
xor al, al
mov byte [rsp + 0x450], al
cmp qword [rsp + 0x140], 0
je 0x180164435
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x458], rax
lea rax, [rsp + 0x248]
mov qword [rsp + 0x460], rax
mov qword [rsp + 0x280], r15
lea r8, [rsp + 0x248]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x1d0]
call fcn.1801685b0
mov r8, rax
mov qword [rsp + 0x460], rax
movzx edx, byte [0x18033df70]
movzx ecx, byte [rax]
mov byte [0x18033df70], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [0x18033df78]
mov rax, qword [rcx]
mov qword [0x18033df78], rax
mov qword [rcx], rdx
movzx edx, byte [r8]
call fcn.180167d40
cmp qword [rsp + 0x140], 0
je 0x1801643a8
mov rax, qword [rsp + 0xd8]
lea rcx, [rsp + 0x130]
cmp qword [rax], rcx
jne 0x18016428c
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x148]
mov qword [rax], rcx
mov rax, qword [rsp + 0xf8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0x110]
mov dword [rax], edx
cmp qword [rsp + 0x128], 0
je 0x18016432e
cmp byte [rsp + 0x131], 0
je 0x18016432e
mov rax, qword [rsp + 0xc0]
mov r8, qword [rax + 0x18]
lea rax, [fcn.18006d850]
mov edx, 0xffffffff
lea rcx, [rsp + 0xc0]
cmp r8, rax
jne 0x1801642d5
call fcn.18006d850
jmp 0x1801642d8
call r8
cmp eax, 0xffffffff
jne 0x1801642e1
xor bl, bl
jmp 0x180164330
lea rax, [rsp + 0x458]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x228]
lea r8, [rsp + 0x208]
lea rdx, [rsp + 0x134]
mov rcx, qword [rsp + 0x128]
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 0x180164357
sub eax, 1
je 0x18016435f
cmp eax, 2
je 0x180164326
xor bl, bl
jmp 0x180164330
mov byte [rsp + 0x131], 0
mov bl, 1
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0xc0]
test bl, bl
cmove rcx, r15
mov rbx, r15
test eax, eax
cmove rbx, rcx
jmp 0x1801643ab
mov byte [rsp + 0x131], 0
lea rax, [rsp + 0x208]
mov rbx, qword [rsp + 0x458]
sub rbx, rax
je 0x18016439b
mov r9, qword [rsp + 0x140]
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x208]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x18016439b
xor bl, bl
jmp 0x180164330
cmp byte [rsp + 0x131], 0
sete bl
jmp 0x180164330
mov rbx, r15
mov byte [rsp + 0x13c], 0
mov byte [rsp + 0x131], 0
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x140], r15
mov rax, qword [0x18033c860]
mov qword [rsp + 0x134], rax
mov qword [rsp + 0x128], r15
test rbx, rbx
jne 0x180164411
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xb0]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
jmp 0x180164442
call fcn.180165060
mov byte [rsp + 0x450], 1
lea rsi, str.dockConsole
mov qword [rsp + 0x468], rsi
movabs rbx, 0x8000000000000000
nop dword [rax + rax]
mov rdx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180164480
lea rcx, [rsp + 0x60]
call fcn.180041360
nop
lea r11, [r13 + 0x20]
mov qword [rsp + 0x30], r11
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov rsi, rbx
mov qword [rsp + 0x460], rbx
movzx r10d, byte [r11]
mov dword [rsp + 0x458], r10d
cmp r10d, 9
ja case.0x1801644db.32
movsxd rax, r10d
mov ecx, dword [r14 + rax*4 + 0x164bd8]
add rcx, r14
jmp rcx
mov rsi, rbx
mov qword [rsp + 0x460], rbx
cmp r10d, 9
ja case.0x1801644f9.0
mov ecx, dword [r14 + r10*4 + 0x164c00]
add rcx, r14
jmp rcx
mov rbx, qword [r11 + 8]
mov rbx, qword [rbx]
jmp 0x180164525
mov rdi, qword [r11 + 8]
mov rdi, qword [rdi + 8]
mov rbx, qword [rsp + 0x48]
jmp 0x18016452a
mov esi, 1
mov qword [rsp + 0x460], rsi
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
cmp byte [0x18033df70], 1
jne 0x180164622
mov rax, qword [0x18033df78]
mov r15, qword [rax]
mov qword [rsp + 0x1c0], r15
mov r14, qword [r15 + 8]
mov rbx, r15
cmp byte [r14 + 0x19], 0
jne 0x1801645c1
mov rsi, qword [rsp + 0x78]
nop word [rax + rax]
lea rcx, [r14 + 0x20]
lea rdx, [rsp + 0x60]
cmp rsi, 0x10
cmovae rdx, r12
mov r15, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x18016458f
mov rcx, qword [rcx]
mov r8, r15
cmp r13, r15
cmovb r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1801645ff
js 0x180164604
mov rbx, r14
mov r14, qword [r14]
cmp byte [r14 + 0x19], 0
je 0x180164570
mov rsi, qword [rsp + 0x460]
mov r15, qword [rsp + 0x1c0]
cmp byte [rbx + 0x19], 0
jne 0x18016460f
lea rdx, [rbx + 0x20]
mov r14, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1801645d9
mov rdx, qword [rdx]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, r12
mov r8, r13
cmp r14, r13
cmovb r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18016460a
jns 0x180164612
jmp 0x18016460f
cmp r15, r13
jae 0x1801645a4
mov r14, qword [r14 + 0x10]
jmp 0x1801645aa
cmp r13, r14
jae 0x180164612
mov rbx, r15
mov r10d, dword [rsp + 0x458]
mov r11, qword [rsp + 0x30]
xor r15d, r15d
lea r9, [0x18033df50]
add r9, 0x20
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x98], xmm1
movabs rax, 0x8000000000000000
mov rdx, rax
movzx r8d, byte [r9]
cmp r8d, 9
ja case.default.0x180164671
movsxd rax, r8d
lea r14, [0x180000000]
mov ecx, dword [r14 + rax*4 + 0x164c28]
add rcx, r14
jmp rcx
lea r14, [0x180000000]
jmp 0x180164686
movabs rax, 0x8000000000000000
mov rdx, rax
cmp r8d, 9
ja case.0x18016469a.0
mov ecx, dword [r14 + r8*4 + 0x164c50]
add rcx, r14
jmp rcx
mov rax, qword [r9 + 8]
mov rax, qword [rax]
jmp 0x1801646c4
mov rcx, qword [r9 + 8]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0x90]
jmp 0x1801646cc
mov edx, 1
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
cmp r11, r9
jne 0x180164b3a
cmp r10d, 9
ja case.0x1801646e9.0
movsxd r8, r10d
mov r9d, dword [r14 + r8*4 + 0x164c78]
add r9, r14
jmp r9
cmp rbx, rax
jmp 0x1801646f9
cmp rdi, rcx
jmp 0x1801646f9
cmp rsi, rdx
sete al
test al, al
je 0x18016489e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x1e8], rax
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x468]
movzx ebx, byte [rsi + 8]
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180167d40
mov byte [rsp + 0x30], 4
mov byte [rsp + 0x1c8], bl
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x1f0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
lea rdi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdi, r12
movabs rax, 0x7fffffffffffffff
cmp r13, rax
ja 0x180164bd2
mov qword [rsp + 0x58], 0xf
cmp r13, 0x10
jae 0x1801647b0
mov qword [rsp + 0x50], r13
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
jmp 0x1801647f5
mov rbx, r13
or rbx, 0xf
cmp rbx, rax
jbe 0x1801647c1
mov rbx, rax
jmp 0x1801647ce
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.180055430
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rbx
lea r8, [r13 + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x40]
mov qword [rsp + 0x1d0], rax
movzx eax, byte [0x18033df70]
test al, al
jne 0x18016482c
mov byte [0x18033df70], 1
call fcn.180168d00
mov rcx, rax
mov qword [0x18033df78], rax
movzx eax, byte [0x18033df70]
jmp 0x180164833
mov rcx, qword [0x18033df78]
cmp al, 1
jne 0x180164b7e
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x1f8]
call fcn.18016d490
mov rbx, qword [rsp + 0x1f8]
lea rcx, [rsp + 0x40]
call fcn.180055930
nop
movzx ecx, byte [rbx + 0x40]
movzx eax, byte [rsp + 0x30]
mov byte [rbx + 0x40], al
mov byte [rsp + 0x30], cl
mov rax, qword [rbx + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rbx + 0x48], rcx
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180167d40
mov dil, 1
mov byte [rsp + 0x450], dil
jmp 0x1801648ae
mov rsi, qword [rsp + 0x468]
movzx edi, byte [rsp + 0x450]
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x1801648ee
lea rdx, [rax + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x1801648e6
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801648e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.180277944
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
add rsi, 0x10
mov qword [rsp + 0x468], rsi
lea rax, str.caught__...__unknown_error_during_protected_function_call
cmp rsi, rax
lea r13, [0x18033df50]
movabs rbx, 0x8000000000000000
jne 0x180164460
test dil, dil
je 0x180164ab1
lea rcx, [rsp + 0x290]
call fcn.1801659b0
nop
cmp qword [rsp + 0x318], 0
je 0x180164a1f
lea rdx, [rsp + 0x88]
lea rcx, [0x18033df70]
call fcn.180165e90
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x180164977
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x290]
call fcn.180057760
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x1801649ce
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801649c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801649c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180277944
movdqa xmm0, xmmword [0x1802f80c0]
movdqu xmmword [rsp + 0x98], xmm0
mov byte [rsp + 0x88], 0
lea rcx, [rsp + 0x298]
call fcn.18006e010
test rax, rax
jne 0x180164a43
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x290]
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]
jmp 0x180164a43
lea rdx, str.Failed_to_update_settings_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180055e00
lea rdx, [0x180055fe0]
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]
nop
lea rax, [rsp + 0x338]
mov qword [rsp + 0x450], rax
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x290], rax
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x28c], edx
lea rcx, [rsp + 0x298]
call fcn.18006da40
nop
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x338]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
call fcn.180164ca0
nop
lea rax, [rsp + 0x160]
mov qword [rsp + 0x450], rax
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xb0], rax
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0xac], edx
lea rcx, [rsp + 0xc0]
call fcn.18006da40
nop
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov al, 1
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.cannot_compare_iterators_of_different_containers
lea rcx, [rsp + 0x248]
call fcn.180041300
nop
lea r8, [rsp + 0x248]
mov edx, 0xd4
lea rcx, [rsp + 0x3d8]
call fcn.180169260
lea rdx, [0x180330300]
lea rcx, [rsp + 0x3d8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x18033df70]
call fcn.180167480
mov qword [rsp + 0x450], rax
lea r8, [rsp + 0x450]
lea rcx, [rsp + 0x248]
call fcn.180168d70
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rsp + 0x3a0]
call fcn.180168e30
lea rdx, [0x1803302c0]
lea rcx, [rsp + 0x3a0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1800409c0
int3