Function at 0x18000e700
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp + 0x210], r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], r12b
lea rsi, [0x180000000]
lea rax, [rsi + 0xc1bd0]
mov qword [rsp + 0x50], rax
lea rcx, [rbp]
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 + 0x210], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
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 + 0x50]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x60], rbx
mov byte [rbp - 0x24], r12b
mov byte [rbp - 0x2f], r12b
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x20], r12
mov rax, qword [0x18043fa78]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], r12
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18000e801
mov rdx, qword [r14]
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rsp + 0x60]
call fcn.18000f9a0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
je 0x18000e838
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x18000e846
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rax, [rsi + 0xc1be8]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x108]
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 + 0x210], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x68]
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 r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], r13
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x68], rbx
mov byte [rbp + 0xe4], 0
mov byte [rbp + 0xd9], 0
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xe8], r12
mov rax, qword [0x18043fa78]
mov qword [rbp + 0xdc], rax
mov qword [rbp + 0xd0], r12
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, str.temp.ini
lea rcx, [rbp + 0x68]
call fcn.18000f9a0
xor r8d, r8d
test rax, rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
je 0x18000e921
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x18000e92f
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180003730
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
je 0x18000ea22
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18000e980
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
seta r15b
mov rsi, qword [rsp + 0x30]
cmova rcx, rsi
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rdi + 0x10]
jne 0x18000e9af
mov r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18000e9d7
lea rdx, [rsp + 0x30]
test r15b, r15b
cmovne rdx, rsi
mov r8, rbx
lea rcx, [rbp + 0x60]
call fcn.180002b90
lea rdx, [0x180003500]
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]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180003730
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 0x18000e973
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea rsi, [fcn.18000fae0]
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0xe8], 0
je 0x18000eba0
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 + 0xd8]
cmp rax, rcx
jne 0x18000ea68
mov r9, qword [rbp + 0xf8]
mov rdx, qword [rbp + 0xf0]
mov r8, rdx
lea rcx, [rbp + 0x68]
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 + 0xd0], 0
je 0x18000eaeb
cmp byte [rbp + 0xd9], 0
je 0x18000eaeb
mov rax, qword [rbp + 0x68]
mov r8, qword [rax + 0x18]
mov edx, 0xffffffff
lea rcx, [rbp + 0x68]
cmp r8, rsi
jne 0x18000ea98
call fcn.18000fae0
jmp 0x18000ea9b
call r8
cmp eax, 0xffffffff
jne 0x18000eaa4
xor bl, bl
jmp 0x18000eaed
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0xdc]
mov rcx, qword [rbp + 0xd0]
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 0x18000eb4f
sub eax, 1
je 0x18000eb56
cmp eax, 2
je 0x18000eae4
xor bl, bl
jmp 0x18000eaed
mov byte [rbp + 0xd9], 0
mov bl, 1
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp + 0x68]
test bl, bl
cmove rcx, r12
mov rbx, r12
test eax, eax
cmove rbx, rcx
mov byte [rbp + 0xe4], 0
mov byte [rbp + 0xd9], 0
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xe8], r12
mov rax, qword [0x18043fa78]
mov qword [rbp + 0xdc], rax
mov qword [rbp + 0xd0], r12
test rbx, rbx
jne 0x18000ebec
jmp 0x18000ebd0
mov byte [rbp + 0xd9], 0
lea rax, [rbp + 0x170]
mov rbx, qword [rbp + 0x210]
sub rbx, rax
je 0x18000eb91
mov r9, qword [rbp + 0xe8]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x18000eb91
xor bl, bl
jmp 0x18000eaed
cmp byte [rbp + 0xd9], 0
sete bl
jmp 0x18000eaed
mov byte [rbp + 0xe4], 0
mov byte [rbp + 0xd9], 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 + 0xe8], r12
mov rax, qword [0x18043fa78]
mov qword [rbp + 0xdc], rax
mov qword [rbp + 0xd0], r12
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]
lea rcx, [rsp + 0x60]
cmp qword [rbp - 0x20], 0
je 0x18000ed30
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 - 0x30]
cmp rax, rcx
jne 0x18000ec21
mov r9, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
mov r8, rdx
lea rcx, [rsp + 0x60]
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 - 0x38], 0
je 0x18000ec97
cmp byte [rbp - 0x2f], 0
je 0x18000ec97
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x18]
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
cmp r8, rsi
jne 0x18000ec4d
call fcn.18000fae0
jmp 0x18000ec50
call r8
cmp eax, 0xffffffff
jne 0x18000ec59
xor bl, bl
jmp 0x18000ec99
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1b0]
lea r8, [rbp + 0x190]
lea rdx, [rbp - 0x2c]
mov rcx, qword [rbp - 0x38]
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 0x18000ece8
sub eax, 1
je 0x18000ecec
cmp eax, 2
je 0x18000ec93
xor bl, bl
jmp 0x18000ec99
mov byte [rbp - 0x2f], 0
mov bl, 1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x60]
test bl, bl
cmove rcx, r12
mov rbx, r12
test eax, eax
cmove rbx, rcx
mov byte [rbp - 0x24], 0
mov byte [rbp - 0x2f], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x20], r12
mov rax, qword [0x18043fa78]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], r12
test rbx, rbx
jne 0x18000ed6f
jmp 0x18000ed51
mov byte [rbp - 0x2f], 0
lea rax, [rbp + 0x190]
mov rbx, qword [rbp + 0x210]
sub rbx, rax
je 0x18000ed24
mov r9, qword [rbp - 0x20]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x18000ed24
xor bl, bl
jmp 0x18000ec99
cmp byte [rbp - 0x2f], 0
sete bl
jmp 0x18000ec99
mov byte [rbp - 0x24], 0
mov byte [rbp - 0x2f], 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 - 0x20], r12
mov rax, qword [0x18043fa78]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], r12
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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 rbx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18000ed7c
mov rbx, qword [r14]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, rbx
lea rcx, str.temp.ini
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], r13
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x68]
call fcn.180004690
lea rcx, [rbp + 0x70]
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 + 0x108]
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 [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x60]
call fcn.180004690
lea rcx, [rsp + 0x68]
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]
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 [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18000ee57
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ee52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000ee52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005e998
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x18000eea0
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x18000ee9b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ef09
mov rcx, r8
call fcn.18005e998
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x18000eee6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18000eee1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ef10
mov rcx, r8
call fcn.18005e998
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
add rsp, 0x2b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
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]
int3