Function at 0x1400aa370
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov rbx, qword [rcx + 0x4f0]
xor ebp, ebp
test rbx, rbx
je 0x1400aa3f1
lock inc dword [rbx + 0x10]
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.1400b0640
mov rdx, rax
mov rcx, rdi
call fcn.1400b0780
mov qword [rsp + 0x58], rax
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400aa407
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400aa3d0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400aa3e2
call fcn.1400b56bc
mov qword [rbx + 8], rbp
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400b56bc
jmp 0x1400aa407
xor ecx, ecx
call fcn.1400b0640
mov rdx, rax
xor ecx, ecx
call fcn.1400b0780
mov qword [rsp + 0x58], rax
mov rcx, qword [rsi + 0x630]
test rcx, rcx
je 0x1400aa427
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi + 0x630], rbp
mov qword [rsi + 0x638], rbp
lea rcx, [rsi + 0x3b0]
call fcn.14006b8a0
mov rax, qword [rsi + 0x650]
cmp rax, qword [rsi + 0x658]
je 0x1400aa44a
mov qword [rsi + 0x658], rax
cmp byte [rsi + 0x670], bpl
je 0x1400aa474
lea rcx, [rsp + 0x58]
call fcn.1400b0850
test eax, eax
je 0x1400aa474
lea rcx, [rsp + 0x58]
call fcn.1400b0200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsi + 0x678]
call fcn.1400adfc0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400aa491
call fcn.1400b0810
nop
mov rcx, qword [rsi + 0x678]
mov rax, qword [rcx + 8]
mov qword [rax], rbp
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400aa4c5
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x28
call fcn.1400b56bc
mov rcx, rbx
test rbx, rbx
jne 0x1400aa4b0
mov edx, 0x28
mov rcx, qword [rsi + 0x678]
call fcn.1400b56bc
mov r8, qword [rsi + 0x650]
test r8, r8
je 0x1400aa54c
mov rcx, qword [rsi + 0x660]
sub rcx, r8
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
cmp rdx, 0x1000
jb 0x1400aa52f
add rdx, 0x27
mov rcx, qword [r8 - 8]
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x1400aa672
mov r8, rcx
mov rcx, r8
call fcn.1400b56bc
mov qword [rsi + 0x650], rbp
mov qword [rsi + 0x658], rbp
mov qword [rsi + 0x660], rbp
lea rdi, [rsi + 0x5d0]
mov rcx, rdi
call fcn.140059f40
mov r8, qword [rdi + 0x40]
mov r8, qword [r8 + 8]
lea rdx, [rdi + 0x40]
lea rcx, [rdi + 0x40]
call fcn.14002ebc0
mov edx, reloc.WS2_32.dll_getservbyport
mov rcx, qword [rdi + 0x40]
call fcn.1400b56bc
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1400aa5c8
mov rdx, qword [rdi + 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x1400aa5b7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400aa678
mov rcx, r8
call fcn.1400b56bc
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
mov rax, qword [rsi + 0x598]
mov rbx, qword [rax + 8]
cmp byte [rbx + 0x19], 0
jne 0x1400aa610
mov r8, qword [rbx + 0x10]
lea rdx, [rsi + 0x598]
lea rcx, [rsi + 0x598]
call fcn.14002ead0
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, gethostbyaddr
call fcn.1400b56bc
cmp byte [rbx + 0x19], 0
je 0x1400aa5e3
mov edx, gethostbyaddr
mov rcx, qword [rsi + 0x598]
call fcn.1400b56bc
lea rcx, [rsi + 0x570]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsi + 0x508]
call fcn.1400253c0
nop
lea rcx, [rsi + 0x3b0]
call fcn.14006b8a0
lea rcx, [rsi + 0x4f0]
call fcn.140003370
lea rcx, [rsi + 0x4c8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400becc0
nop
call fcn.1400becc0
int3