Function at 0x14001b030
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
xor r15d, r15d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp]
call fcn.14001d8ea
lea rcx, [rbp]
call fcn.14001bba0
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x110]
call fcn.14001d8ea
lea rdx, str.config_temp.cfg
lea rcx, [rbp + 0x110]
call fcn.140002e60
nop
cmp qword [rbp + 0x90], r15
jne 0x14001b241
lea rdx, str.Error_opening_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001aa0
lea rdx, [0x140001c90]
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
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x110], rax
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x118]
call fcn.140002df0
lea rcx, [rbp + 0x120]
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 + 0x1b8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.140002df0
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001b1bf
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14001b1ba
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b731
mov rcx, r8
call fcn.14001ca84
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], select
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14001b208
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001b203
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b738
mov rcx, r8
call fcn.14001ca84
mov byte [rdi], 0
mov qword [rdi + 0x18], select
mov qword [rdi + 0x10], r15
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14001ca20
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], select
mov byte [rbp - 0x20], 0
mov byte [rsp + 0x40], 0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.14001be00
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
movabs r14, 0x7fffffffffffffff
lea rcx, [0x140020c50]
test al, al
je 0x14001b509
nop
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
seta r13b
mov r15, qword [rbp - 0x20]
cmova rcx, r15
mov qword [rsp + 0x20], 2
lea r9, [0x140020c4c]
mov r12, qword [rbp - 0x10]
mov rdx, r12
call fcn.14001bd40
test rax, rax
je 0x14001b4a7
mov rsi, qword [rbx + 0x10]
mov r9, rbx
mov r14, qword [rbx + 0x18]
cmp r14, 0xf
jbe 0x14001b2fe
mov r9, qword [rbx]
lea rcx, [rbp - 0x20]
test r13b, r13b
cmovne rcx, r15
mov qword [rsp + 0x20], rsi
mov rdx, r12
call fcn.14001bd40
test rax, rax
jne 0x14001b47d
movabs rax, 0x7fffffffffffffff
sub rax, rsi
cmp rax, 1
jb 0x14001b73f
mov r9, rbx
cmp r14, 0xf
jbe 0x14001b342
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x140020c50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea rcx, [rbp - 0x70]
call fcn.1400193f0
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14001b373
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x70]
call fcn.140005220
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], select
mov byte [rax], r15b
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
lea rcx, [rbp + 0x110]
call fcn.140001d40
lea rdx, [0x140001c90]
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
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14001b425
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b420
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b5fb
call fcn.14001ca84
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], select
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14001b473
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b46e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b602
call fcn.14001ca84
mov sil, 1
mov byte [rsp + 0x40], sil
jmp 0x14001b4af
lea rdx, [rbp - 0x20]
test r13b, r13b
cmovne rdx, r15
mov r8, r12
lea rcx, [rbp + 0x110]
call fcn.140001d40
lea rdx, [0x140001c90]
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]
xor r15d, r15d
movzx esi, byte [rsp + 0x40]
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.14001be00
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x14001b2b0
test sil, sil
jne 0x14001b65f
movabs r14, 0x7fffffffffffffff
lea rcx, [0x140020c50]
mov rax, qword [rbx + 0x10]
sub r14, rax
cmp r14, 1
jb 0x14001b745
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001b527
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x50]
call fcn.1400193f0
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14001b551
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x50]
call fcn.140005220
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], select
mov byte [rax], 0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rbp + 0x110]
call fcn.140001d40
lea rdx, [0x140001c90]
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
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x14001b60e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b609
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b609
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14001ca84
movdqa xmm0, xmmword [0x140020c90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14001b65f
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b65a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b65a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ca84
lea rcx, [rbp + 0x10]
call fcn.140003210
test rax, rax
jne 0x14001b689
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
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]
lea rcx, [rbp + 0x118]
call fcn.140003210
test rax, rax
jne 0x14001b6bc
mov rax, qword [rbp + 0x110]
movsxd r8, dword [rax + 4]
lea rcx, [rbp + 0x110]
add rcx, r8
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]
lea rcx, str.config.cfg
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rdx, str.config.cfg
lea rcx, str.config_temp.cfg
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14001b71c
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b717
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b717
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ca84
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], select
mov byte [rbp - 0x20], 0
jmp 0x14001b0e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400020a0
int3
call fcn.1400020a0
int3