Function at 0x14004fd50
Capabilities:
Delete file
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400ef080]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov qword [rbp + 0x20], r13
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x14004fda7
mov rbx, qword [rcx]
call fcn.1400c0318
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14004bc50
mov edi, 0x300
mov dword [rsp + 0x40], edi
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x10]
call fcn.14004d1e0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14004fe20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fe1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004fe1b
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 [rbp], xmm0
mov rbx, qword [rbp - 8]
test rbx, rbx
je 0x14004fe3c
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 8]
mov edi, dword [rsp + 0x40]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp], xmm0
test rbx, rbx
je 0x14004fe56
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 8]
mov edi, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
mov esi, 0xffffffff
test rbx, rbx
je 0x14004fe99
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004fe91
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14004fe91
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x40]
mov rbx, qword [rbp - 8]
mov rax, qword [rbp]
test rax, rax
je 0x14004ff5c
nop word [rax + rax]
lea rcx, [rax + 0x20]
lea rdx, [rbp - 0x40]
call fcn.14004c0e0
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, qword [rbp + 0x20]
je 0x14004fefa
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
add qword [rbp + 0x18], 0x20
jmp 0x14004ff07
mov r8, rax
lea rcx, [rbp + 0x10]
call fcn.14005a860
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14004ff42
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ff3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005012a
call fcn.1400c1110
lea rcx, [rbp]
call fcn.14004d340
mov rax, qword [rbp]
test rax, rax
jne 0x14004feb0
mov rbx, qword [rbp - 8]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14004ff9b
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004ff93
mov rbx, qword [rbp + 8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14004ff93
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x40]
mov rbx, qword [rbp - 8]
test rbx, rbx
je 0x14004ffcb
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004ffc7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14004ffc7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x40]
mov rbx, qword [rbp + 0x10]
mov r12, qword [rbp + 0x18]
cmp rbx, r12
je 0x14005025a
nop dword [rax]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14004ffed
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14005024d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x140050131
mov r14, qword [rbx + 0x10]
mov rsi, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140050045
mov rsi, qword [rbx]
call fcn.1400c0318
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.14004bc50
or edi, 0xc0
or edi, 1
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x50]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.14004bda0
cmp rax, r11
je 0x1400500db
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400500a6
cmp cx, 0x2f
jne 0x1400500af
add rax, 2
cmp rax, r11
jne 0x140050097
cmp rax, r11
je 0x1400500db
nop dword [rax]
nop dword [rax + rax]
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400500db
cmp cx, 0x2f
je 0x1400500db
mov r10, rdx
cmp rax, rdx
jne 0x1400500c0
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov r8, r11
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140058fc0
or edi, 0x38
or edi, 2
mov dword [rsp + 0x40], edi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14004c0e0
or edi, 4
cmp qword [rax + 0x10], 0xa
jne 0x140050131
mov sil, 1
jmp 0x140050134
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor sil, sil
test dil, 4
je 0x140050188
and edi, 0xfffffffb
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140050178
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050173
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050290
call fcn.1400c1110
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
test dil, 2
je 0x1400501e7
and edi, 0xfffffffd
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400501d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400501ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050297
call fcn.1400c1110
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
test dil, 1
je 0x14005022c
and edi, 0xfffffffe
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14005022c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050227
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005029e
call fcn.1400c1110
test sil, sil
je 0x140050244
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14005023e
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x20
cmp rbx, r12
jne 0x14004ffe0
lea rcx, [rbp + 0x10]
call fcn.140057fe0
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400c0cc0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
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]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3