Function at 0x140053d90
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x268]
sub rsp, 0x360
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rbp + 0x258], rax
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rbp + 0x70], shutdown
mov qword [rbp + 0x68], rsi
mov byte [rbp + 0x58], sil
lea r8d, [rsi + 0x14]
lea rdx, str.SystemProperties.ini
lea rcx, [rbp + 0x58]
call fcn.140008ba0
nop
call fcn.14006c390
lea rdx, [rax + 0x10]
lea r8, str..Config_
lea rcx, [rbp + 0x30]
call fcn.14000d180
nop
lea r8, [rbp + 0x58]
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.14000d2a0
nop
cmp qword [rbp + 0x48], 0x10
jb 0x140053e35
mov rcx, qword [rbp + 0x30]
call fcn.140290ed8
mov qword [rbp + 0x48], shutdown
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], 0
cmp qword [rbp + 0x70], 0x10
jb 0x140053e55
mov rcx, qword [rbp + 0x58]
call fcn.140290ed8
mov qword [rbp + 0x70], shutdown
mov qword [rbp + 0x68], rsi
mov byte [rbp + 0x58], 0
lea r8, str..bak
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xa8]
call fcn.14000d180
nop
lea r8, str..def
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xd0]
call fcn.14000d180
nop
mov qword [rbp + 0x1c0], shutdown
mov qword [rbp + 0x1b8], rsi
mov byte [rbp + 0x1a8], 0
mov word [rbp + 0x1d0], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x1a8]
call fcn.1400082f0
lea rcx, [rbp + 0x1a8]
cmp qword [rbp + 0x1c0], 0x10
cmovae rcx, qword [rbp + 0x1a8]
lea rdx, [rbp + 0x170]
call qword [sym.imp.MSVCR100.dll__stat64]
test eax, eax
sete al
mov byte [rbp + 0x1d0], al
test al, al
je 0x140053f1f
movzx eax, word [rbp + 0x176]
shr ax, 0xe
and al, 1
mov byte [rbp + 0x1d1], al
jmp 0x140053f26
mov byte [rbp + 0x1d1], 0
mov qword [rbp + 0x150], shutdown
mov qword [rbp + 0x148], rsi
mov byte [rbp + 0x138], 0
mov word [rbp + 0x160], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x138]
call fcn.1400082f0
lea rcx, [rbp + 0x138]
cmp qword [rbp + 0x150], 0x10
cmovae rcx, qword [rbp + 0x138]
lea rdx, [rbp + 0x100]
call qword [sym.imp.MSVCR100.dll__stat64]
test eax, eax
sete al
mov byte [rbp + 0x160], al
test al, al
je 0x140053faa
movzx eax, word [rbp + reloc.mfc100.dll_Ordinal_262]
shr ax, 0xe
and al, 1
mov byte [rbp + 0x161], al
jmp 0x140053fb1
mov byte [rbp + 0x161], 0
mov qword [rbp + 0x230], shutdown
mov qword [rbp + 0x228], rsi
mov byte [rbp + 0x218], 0
mov word [rbp + 0x240], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x218]
call fcn.1400082f0
lea rcx, [rbp + 0x218]
cmp qword [rbp + 0x230], 0x10
cmovae rcx, qword [rbp + 0x218]
lea rdx, [rbp + 0x1e0]
call qword [sym.imp.MSVCR100.dll__stat64]
test eax, eax
sete al
mov byte [rbp + 0x240], al
test al, al
je 0x140054035
movzx eax, word [rbp + 0x1e6]
shr ax, 0xe
and al, 1
mov byte [rbp + 0x241], al
jmp 0x14005403c
mov byte [rbp + 0x241], 0
lea rax, [0x1402cb5f0]
mov qword [rsp + 0x30], rax
lea rax, [0x1403283f8]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP100.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov edi, 1
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], r12
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP100.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x48], rsi
mov dword [rbp - 0x40], esi
cmp byte [rbp + 0x1d0], 0
jne 0x140054191
lea rcx, str.SystemProperties::backup___:_ini_file_is_missing.
call fcn.1400ba060
cmp byte [rbp + 0x160], 0
je 0x14005414e
call fcn.140053d30
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.140047e40
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400540f0
mov rbx, qword [rax]
lea rdx, str.The
lea rcx, [rsp + 0x40]
call fcn.1400090e0
mov rcx, rax
mov rdx, rbx
call fcn.1400090e0
mov rcx, rax
lea rdx, str._ini_file_is_missing_or_corrupted._n_n
call fcn.1400090e0
mov rcx, rax
lea rdx, str.A_Recent_backup_copy_of_this_file_is_available.
call fcn.1400090e0
mov rcx, rax
lea rdx, [0x1402cf4c0]
call fcn.1400090e0
mov rcx, rax
lea rdx, str.Would_you_like_to_recover_this_backup_ini_file_
call fcn.1400090e0
nop
jmp 0x14005425f
cmp byte [rbp + 0x240], 0
je 0x140054360
lea rcx, str.SystemProperties::backup___:_no_ini_backup_file_are_present__using_default
call fcn.1400ba060
lea rdx, str.Neither_original_or_backup_system_properties_file_is_found_____n_n
lea rcx, [rsp + 0x40]
call fcn.1400090e0
mov rcx, rax
lea rdx, [0x1402cf3c0]
call fcn.1400090e0
mov edi, 2
jmp 0x14005426f
cmp byte [rbp + 0x160], 0
je 0x140054360
lea rcx, [rbp + 0x170]
call fcn.140048810
mov ebx, dword [rbp + 0x188]
lea rcx, [rbp + 0x100]
call fcn.140048810
movd xmm5, dword [rbp + 0x118]
cvtdq2pd xmm5, xmm5
mulsd xmm5, qword [0x1402cf3b8]
cvttsd2si eax, xmm5
cmp ebx, eax
jge 0x140054360
lea rcx, str.SystemProperties::backup:_backup_exist__ini_size___backup_size__0.98
call fcn.1400ba060
call fcn.140053d30
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.140047e40
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140054206
mov rbx, qword [rax]
lea rdx, str.The
lea rcx, [rsp + 0x40]
call fcn.1400090e0
mov rcx, rax
mov rdx, rbx
call fcn.1400090e0
mov rcx, rax
lea rdx, str._ini_file_size_is_smaller_than_its_backup_and_could_be_corrupted._n_n
call fcn.1400090e0
mov rcx, rax
lea rdx, str.A_recent_backup_is_available.
call fcn.1400090e0
mov rcx, rax
lea rdx, [0x1402cf4c0]
call fcn.1400090e0
mov rcx, rax
lea rdx, str.Would_you_like_to_use_this_ini_file_
call fcn.1400090e0
nop
cmp qword [rbp + 0x48], 0x10
jb 0x14005426f
mov rcx, qword [rbp + 0x30]
call fcn.140290ed8
call fcn.140053d30
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.140047e40
mov rbx, rax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140048bc0
cmp qword [rbx + 0x18], 0x10
jb 0x14005429b
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 0x10
jb 0x1400542a5
mov rax, qword [rax]
mov r9d, 0x1024
mov r8, rbx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, eax
cmp qword [rbp + 0x48], 0x10
jb 0x1400542cb
mov rcx, qword [rbp + 0x30]
call fcn.140290ed8
mov qword [rbp + 0x48], shutdown
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], 0
cmp qword [rbp + 0x70], 0x10
jb 0x1400542eb
mov rcx, qword [rbp + 0x58]
call fcn.140290ed8
cmp ebx, 6
jne 0x140054360
dec edi
je 0x140054328
dec edi
jne 0x140054360
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
lea rcx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rcx, qword [rbp + 0xd0]
jmp 0x140054356
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
lea rcx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae rcx, qword [rbp + 0xa8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
nop
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r12
lea rcx, [rsp + 0x48]
call fcn.14000f578
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP100.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x38]
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 + 0x230], 0x10
jb 0x1400543ae
mov rcx, qword [rbp + 0x218]
call fcn.140290ed8
mov qword [rbp + 0x230], shutdown
mov qword [rbp + 0x228], rsi
mov byte [rbp + 0x218], 0
cmp qword [rbp + 0x150], 0x10
jb 0x1400543dd
mov rcx, qword [rbp + 0x138]
call fcn.140290ed8
mov qword [rbp + 0x150], shutdown
mov qword [rbp + 0x148], rsi
mov byte [rbp + 0x138], 0
cmp qword [rbp + 0x1c0], 0x10
jb 0x14005440c
mov rcx, qword [rbp + 0x1a8]
call fcn.140290ed8
mov qword [rbp + 0x1c0], shutdown
mov qword [rbp + 0x1b8], rsi
mov byte [rbp + 0x1a8], 0
cmp qword [rbp + 0xe8], 0x10
jb 0x14005443b
mov rcx, qword [rbp + 0xd0]
call fcn.140290ed8
mov qword [rbp + 0xe8], shutdown
mov qword [rbp + 0xe0], rsi
mov byte [rbp + 0xd0], 0
cmp qword [rbp + 0xc0], 0x10
jb 0x14005446a
mov rcx, qword [rbp + 0xa8]
call fcn.140290ed8
mov qword [rbp + 0xc0], shutdown
mov qword [rbp + 0xb8], rsi
mov byte [rbp + 0xa8], 0
cmp qword [rbp + 0x98], 0x10
jb 0x140054499
mov rcx, qword [rbp + 0x80]
call fcn.140290ed8
mov rcx, qword [rbp + 0x258]
xor rcx, rsp
call fcn.1402912a0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret