Function at 0x1400bb9a0
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x320], rbx
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, rdx
xor bl, bl
mov byte [rsp + 0x30], bl
cmp qword [rdx + 0x10], 0
jne 0x1400bb9f4
xor al, al
jmp 0x1400bbda7
lea r15, [rcx + 8]
lea r8, str._tmp.ini
mov rdx, r15
lea rcx, [rbp + 0x198]
call fcn.14000d180
nop
cmp qword [r15 + 0x18], 0x10
jb 0x1400bba1b
mov rdx, qword [r15]
jmp 0x1400bba1e
mov rdx, r15
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rsp + 0x50]
call fcn.14000cca0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
jne 0x1400bbcc9
cmp qword [rbp - 8], 0
je 0x1400bbcc9
lea rdx, [rbp + 0x198]
cmp qword [rbp + 0x1b0], 0x10
cmovae rdx, qword [rbp + 0x198]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rcx, [rbp + 0x60]
call fcn.14000cdc0
nop
cmp qword [rbp - 8], 0
je 0x1400bbc2c
xor edi, edi
nop word [rax + rax]
mov rcx, qword [rsp + 0x50]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 1
jne 0x1400bbc2c
mov qword [rbp + 0x188], shutdown
mov qword [rbp + 0x180], rdi
mov byte [rbp + 0x170], 0
movsxd rax, dword [rcx + 4]
lea rcx, [rsp + rax + 0x50]
mov dl, 0xa
call qword [sym.imp.MSVCP100.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x50]
call fcn.140062e40
mov r11, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r11
test byte [rcx + 0x10], 6
cmovne rcx, rdi
test rcx, rcx
je 0x1400bbc0b
mov r13, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x1400bbb21
mov r12, qword [r14]
jmp 0x1400bbb24
mov r12, r14
test r13, r13
je 0x1400bbc05
mov rsi, qword [rbp + 0x180]
test rsi, rsi
je 0x1400bbbe3
cmp r13, rsi
ja 0x1400bbbe3
sub rsi, r13
inc rsi
lea rdi, [rbp + 0x170]
cmp qword [rbp + 0x188], 0x10
cmovae rdi, qword [rbp + 0x170]
movsx edx, byte [r12]
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_memchr]
mov rbx, rax
test rax, rax
je 0x1400bbbdc
nop dword [rax]
mov r8, r13
mov rdx, r12
mov rcx, rbx
call sub.MSVCR100.dll_memcmp
test eax, eax
je 0x1400bbbb9
sub rdi, rbx
lea rsi, [rsi + rdi - 1]
lea rdi, [rbx + 1]
movsx edx, byte [r12]
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_memchr]
mov rbx, rax
test rax, rax
jne 0x1400bbb80
jmp 0x1400bbbdc
lea rax, [rbp + 0x170]
cmp qword [rbp + 0x188], 0x10
cmovae rax, qword [rbp + 0x170]
sub rbx, rax
xor edi, edi
cmp ebx, 0xffffffff
jne 0x1400bbc05
jmp 0x1400bbbde
xor edi, edi
movzx ebx, byte [rsp + 0x30]
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x60]
call fcn.1400092b0
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_]
call qword [sym.imp.MSVCP100.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]
jmp 0x1400bbc0b
mov bl, 1
mov byte [rsp + 0x30], bl
cmp qword [rbp + 0x188], 0x10
jb 0x1400bbc21
mov rcx, qword [rbp + 0x170]
call fcn.140290ed8
cmp qword [rbp - 8], 0
jne 0x1400bbaa0
lea rcx, [rsp + 0x60]
call fcn.1400086c0
test rax, rax
jne 0x1400bbc56
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rbp + 0x68]
call fcn.1400086c0
test rax, rax
jne 0x1400bbc7e
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x60]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
cmp qword [r15 + 0x18], 0x10
jb 0x1400bbc8a
mov rcx, qword [r15]
jmp 0x1400bbc8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp qword [r15 + 0x18], 0x10
jb 0x1400bbc9d
mov r15, qword [r15]
lea rcx, [rbp + 0x198]
cmp qword [rbp + 0x1b0], 0x10
cmovae rcx, qword [rbp + 0x198]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileA]
nop
lea rcx, [rbp + 0x60]
call fcn.140003f20
jmp 0x1400bbd45
lea rdx, [0x1402d0228]
mov rcx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400090e0
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_]
call qword [sym.imp.MSVCP100.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]
mov rcx, rax
lea rdx, str.Cannot_open_the_configuration_file
call fcn.1400090e0
mov rcx, rax
mov rdx, r15
call fcn.1400092b0
mov rcx, rax
lea rdx, str.___using_defaults
call fcn.1400090e0
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_]
call qword [sym.imp.MSVCP100.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]
mov rcx, rax
lea rdx, [0x1402d0228]
call fcn.1400090e0
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_]
call qword [sym.imp.MSVCP100.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, [rbp]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
lea rcx, [rsp + 0x60]
call fcn.140007090
nop
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
mov rcx, qword [sym.imp.MSVCP100.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov qword [rsp + rdx + 0x50], rcx
lea rcx, [rbp]
call qword [sym.imp.MSVCP100.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
cmp qword [rbp + 0x1b0], 0x10
jb 0x1400bbda4
mov rcx, qword [rbp + 0x198]
call fcn.140290ed8
movzx eax, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402912a0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret