Function at 0x140001c70
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdi, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140001cce
mov rdi, qword [rbx]
lea rax, [0x140006660]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x50]
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], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
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 [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r14, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x50], r14
mov byte [rbp + 0x2c], 0
mov byte [rbp + 0x21], 0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x30], rsi
mov rax, qword [0x1400099f8]
mov qword [rbp + 0x24], rax
mov qword [rbp + 0x18], rsi
mov r8d, 1
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140003970
test rax, rax
jne 0x140001d96
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
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]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
cmp qword [rbp + 0x30], 0
je 0x140002201
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x48], 1
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x18]
mov qword [rsp + 0x60], rcx
test rcx, rcx
sete byte [rsp + 0x68]
mov byte [rsp + 0x69], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm6, xmmword [rsp + 0x40]
test rcx, rcx
je 0x140001e42
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001e2e
mov byte [rsp + 0x69], al
mov rax, qword [rsp + 0x60]
mov byte [rsp + 0x68], 1
movaps xmm0, xmmword [rsp + 0x60]
jmp 0x140001e47
mov rax, rsi
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x68], 1
movaps xmm0, xmmword [rsp + 0x60]
jmp 0x140001e47
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x140001f36
test rax, rax
je 0x140001f3f
movdqa xmmword [rsp + 0x40], xmm6
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140004570
nop
lea rcx, [rbp - 0x50]
call fcn.140003800
test rax, rax
jne 0x140001ea9
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
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 r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r8, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
cmova rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x70]
add rdx, rcx
cmp r8, rdx
je 0x140001edb
nop dword [rax]
sar byte [r8], 1
inc r8
cmp r8, rdx
jne 0x140001ed0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 0xf
jbe 0x140001f03
mov rcx, qword [rbx]
test rdx, rdx
je 0x140001f55
lea rax, [rdx - 1]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
add r8, rcx
cmp byte [r8], 0x2e
je 0x140001f31
cmp r8, rcx
je 0x140001f55
dec r8
cmp byte [r8], 0x2e
jne 0x140001f23
sub r8, rcx
jmp 0x140001f5c
test rax, rax
je 0x140001e5e
movdqa xmm0, xmmword [0x140006680]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
jmp 0x140001e7e
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
cmp rdx, r8
cmovb r8, rdx
mov rdx, rbx
cmp r9, 0xf
jbe 0x140001f80
mov rdx, qword [rbx]
lea rcx, [rsp + 0x60]
call fcn.140003f60
nop
mov r8d, 0x15
lea rdx, str..PIDEZ_HAHAQHAHAHW_EF
lea rcx, [rsp + 0x60]
call fcn.1400038c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0x20
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xb0]
call fcn.140003310
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000202b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002026
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002026
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004924
movdqa xmm0, xmmword [0x140006680]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140002086
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002079
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002079
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004924
movdqa xmm0, xmmword [0x140006680]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rbp + 0xb0]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0xb8]
call fcn.140003800
test rax, rax
jne 0x1400020e4
mov rax, qword [rbp + 0xb0]
movsxd r8, dword [rax + 4]
lea rcx, [rbp + 0xb0]
add rcx, r8
xor r8d, r8d
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]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400020ee
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xac], edx
mov qword [rbp + 0xb8], r14
cmp qword [rbp + 0x138], 0
je 0x140002174
lea rcx, [rbp + 0x128]
mov rax, qword [rbp + 0xd0]
cmp qword [rax], rcx
jne 0x140002174
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x140]
mov qword [rax], rcx
mov rax, qword [rbp + 0xf0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x108]
mov dword [rax], edx
cmp byte [rbp + 0x134], 0
je 0x140002189
lea rcx, [rbp + 0xb8]
call fcn.140003800
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xc0]
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 + 0x158]
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 [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400021f0
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004924
movdqa xmm0, xmmword [0x140006680]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
mov qword [rbp - 0x50], r14
cmp qword [rbp + 0x30], 0
je 0x140002252
lea rcx, [rbp + 0x20]
mov rax, qword [rbp - 0x38]
cmp qword [rax], rcx
jne 0x140002252
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
mov qword [rax], rcx
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp]
mov dword [rax], edx
cmp byte [rbp + 0x2c], 0
je 0x140002261
lea rcx, [rbp - 0x50]
call fcn.140003800
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
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 + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400048c0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret