Function at 0x14004f170
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1400ef080]
xor rax, rsp
mov qword [rsp + 0x168], rax
xor esi, esi
xorps xmm0, xmm0
movups xmmword [r11 - 0x68], xmm0
mov qword [r11 - 0x58], rsi
mov qword [r11 - 0x50], rsi
lea r8d, [rsi + 0x13]
lea rdx, str.C:WindowsSystem32
lea rcx, [r11 - 0x68]
call fcn.14004ac10
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x140]
call fcn.1400555f0
nop
mov rdi, qword [rsp + 0x120]
lea rbx, [rsp + 0x110]
cmp qword [rsp + 0x128], 0xf
cmova rbx, qword [rsp + 0x110]
call fcn.1400c0318
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14004bc50
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xe0]
call fcn.14004d1e0
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x14004f285
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f280
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f280
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1110
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
mov rbx, qword [rsp + 0xe8]
test rbx, rbx
je 0x14004f2a1
lock inc dword [rbx + 8]
movaps xmm0, xmmword [rsp + 0xe0]
movdqa xmmword [rsp + 0xd0], xmm0
mov rbx, qword [rsp + 0xe8]
test rbx, rbx
je 0x14004f2c3
lock inc dword [rbx + 8]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x130], xmm1
mov rbx, qword [rsp + 0xe8]
mov edi, 0xffffffff
test rbx, rbx
je 0x14004f30b
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004f30b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14004f30b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
nop dword [rax + rax]
mov rax, qword [rsp + 0xd0]
cmp rax, qword [rsp + 0x130]
je 0x14004f577
lea rbx, [rax + 0x20]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14004f337
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.14004bda0
cmp rax, r11
je 0x14004f38b
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14004f35f
cmp cx, 0x2f
jne 0x14004f368
add rax, 2
cmp rax, r11
jne 0x14004f350
cmp rax, r11
je 0x14004f38b
nop dword [rax]
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14004f38b
cmp cx, 0x2f
je 0x14004f38b
mov r10, rdx
cmp rax, rdx
jne 0x14004f370
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov r8, r11
mov rdx, r10
lea rcx, [rsp + 0x38]
call fcn.140058fc0
nop
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x38]
call fcn.14004c0e0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x14004f40c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f407
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f407
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1110
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
lea rcx, [rsp + 0xf0]
cmp qword [rsp + 0x108], 0xf
cmova rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x100]
add rdx, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rsp + 0x140]
call fcn.140059d40
test al, al
je 0x14004f51f
lea rdx, str.Excluindo_arquivo:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400584f0
lea rdx, [rsp + 0xf0]
cmp qword [rsp + 0x108], 0xf
cmova rdx, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x100]
mov rcx, rax
call fcn.140059f30
lea rdx, [0x1400586c0]
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]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.14004c0e0
cmp qword [rax + 0x18], 0xf
jbe 0x14004f4c8
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0xf
jbe 0x14004f518
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f512
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f512
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1110
nop
jmp 0x14004f51f
mov rdx, qword [rsp + 0x108]
cmp rdx, 0xf
jbe 0x14004f565
inc rdx
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f560
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1110
lea rcx, [rsp + 0xd0]
call fcn.14004d340
jmp 0x14004f310
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x14004f5bb
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004f5bb
mov rbx, qword [rsp + 0xd8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14004f5bb
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0xe8]
test rbx, rbx
je 0x14004f5f0
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004f5f0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004f5f0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x140]
call fcn.1400579c0
mov rcx, qword [rsp + 0x160]
test rcx, rcx
je 0x14004f627
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14004f627
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
nop
mov rdx, qword [rsp + 0x128]
cmp rdx, 0xf
jbe 0x14004f66d
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f668
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f668
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1110
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400c0cc0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret