Function at 0x1800be830
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x18016ffc0]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [reloc.d2d1.dll_Ordinal_1], sil
je 0x1800bedb3
lea rcx, [0x1801746e0]
cmp byte [0x1801746d8], sil
jne 0x1800be948
mov byte [0x1801746d8], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1801746e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x178]
call fcn.180023d30
lea r9, [rsp + 0x178]
cmp qword [rsp + 0x190], 7
cmova r9, qword [rsp + 0x178]
lea r8, [0x1800e77a0]
mov edx, 0xc8
lea rcx, [0x180174610]
call fcn.18002ed10
nop
lea rcx, [0x180174610]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
jmp 0x1800be8fb
mov rdx, qword [rsp + 0x190]
cmp rdx, 7
jbe 0x1800be94e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800be941
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800be941
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c22ac
jmp 0x1800be94e
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8d, 0x20
lea rdx, [0x1800e77ac]
lea rcx, [0x180174610]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fsopen]
mov rbx, rax
test rax, rax
je 0x1800beda6
lea rax, [0x1800cd180]
mov qword [rsp + 0x60], rax
lea rax, [0x1800cd188]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xf8]
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 + 0x30], 1
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.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 + 0x60]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], r13
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x78], rax
mov qword [rsp + 0xe0], rsi
mov dword [rsp + 0xe8], esi
lea rcx, [rsp + 0x60]
call fcn.180002870
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x60]
call fcn.18002e250
cmp qword [rax + 0x18], 0xf
jbe 0x1800bea2b
mov rax, qword [rax]
mov r9, rax
lea r8, [0x1800d0f70]
mov edx, 0x14
lea rcx, [rsp + 0x240]
call fcn.18002ed10
mov rdx, qword [rsp + 0x1b0]
cmp rdx, 0xf
jbe 0x1800bea8d
inc rdx
mov rcx, qword [rsp + 0x198]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800bea88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800bea88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c22ac
lea rdi, [rsp + 0x4b8]
mov qword [rsp + 0x50], rdi
call fcn.18002eca0
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x4b0]
mov r8d, 0x12c
lea rdx, [rsp + 0x260]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
mov edi, eax
mov r14d, 0xffffffff
test eax, eax
cmovs edi, r14d
lea r9, [rsp + 0x260]
lea r8, [rsp + 0x240]
lea rdx, str._s_s
mov rcx, rbx
call fcn.1800bee60
lea rdx, [0x1800e466c]
mov rcx, rbx
call fcn.1800bee60
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp edi, 0x64
jge 0x1800bec10
lea r8, [rsp + 0x260]
lea edx, [r14 + 0x65]
lea rcx, [rsp + 0x1d4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x240]
lea edx, [r14 + 0x15]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rbx, [0x180174780]
mov qword [rsp + 0x58], rbx
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1800bedd6
cmp dword [0x1801747cc], 0x7fffffff
je 0x1800bede0
mov rdx, qword [0x180174768]
cmp rdx, qword [0x180174770]
je 0x1800bebf1
movaps xmm0, xmmword [rsp + 0x1c0]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rsp + 0x1d0]
movups xmmword [rdx + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0x1e0]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x1f0]
movups xmmword [rdx + 0x30], xmm1
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rdx + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x210]
movups xmmword [rdx + 0x50], xmm1
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [rdx + 0x60], xmm0
movsd xmm1, qword [rsp + 0x230]
movsd qword [rdx + 0x70], xmm1
add qword [0x180174768], 0x78
jmp 0x1800bec06
lea r8, [rsp + 0x1c0]
lea rcx, [0x180174760]
call fcn.1800be200
nop
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
jmp 0x1800bec1c
cmp edi, 0xb54
jge 0x1800bed5d
mov ecx, 0xb78
call fcn.1800c2270
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1800bec64
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_TextForPrintBig_.0
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
xor edx, edx
mov r8d, 0xb68
call sub.VCRUNTIME140.dll_memset
jmp 0x1800bec67
mov rbx, rsi
lea r15, [rbx + 0x10]
mov qword [rsp + 0x38], r15
mov rdi, rbx
mov qword [rsp + 0x40], rbx
lea rcx, [r15 + 0x14]
lea r8, [rsp + 0x260]
mov edx, 0xb54
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x240]
mov edx, 0x14
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r12, [0x180174710]
mov qword [rsp + 0x48], r12
mov rcx, r12
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1800bedf5
cmp dword [0x18017475c], 0x7fffffff
je 0x1800bee00
mov rdx, qword [0x1801747d8]
cmp rdx, qword [0x1801747e0]
je 0x1800bed07
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
test rbx, rbx
je 0x1800becf6
lock inc dword [rbx + 8]
mov rdi, qword [rsp + 0x40]
mov qword [rdx], r15
mov qword [rdx + 8], rbx
add qword [0x1801747d8], 0x10
jmp 0x1800bed1d
lea r8, [rsp + 0x38]
lea rcx, [0x1801747d0]
call fcn.180035190
mov rdi, qword [rsp + 0x40]
mov rcx, r12
call sub.MSVCP140.dll__Mtx_unlock
nop
test rdi, rdi
je 0x1800bed5d
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1800bed5d
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x1800bed5d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x60]
movsxd rdx, dword [rax + 4]
mov qword [rsp + rdx + 0x60], r13
mov rax, qword [rsp + 0x60]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x5c], r8d
lea rcx, [rsp + 0x78]
call fcn.180005440
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [0x1801746e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1800c2730
add rsp, 0x470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea ecx, [r14 + 6]
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov dword [0x1801747cc], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov dword [0x18017475c], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3