Function at 0x18001a040
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov qword [rbp - 1], 0xfffffffffffffffe
mov rsi, rcx
lea rdx, str.0KS9LVJj3i4JjkoH0WjPcQ
lea rcx, [rbp + 0xf]
call fcn.180001580
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.18002b2c0
nop
xor r12d, r12d
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r12
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rbp - 9], rax
lea r8, [0x18004e32c]
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 9]
call fcn.1800211b0
mov dword [rbp + 0x77], r12d
mov rdi, qword [rbp - 0x39]
mov rax, rdi
mov rbx, qword [rbp - 0x41]
sub rax, rbx
sar rax, 3
or r13d, 0xffffffff
test rax, rax
je 0x18001a4a2
mov r15d, r12d
nop word [rax + rax]
mov rbx, qword [r15 + rbx]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x18001a117
cmp rax, qword [rbx - 0x18]
jne 0x18001a117
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x18001a14e
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x18001a49c
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbx - 0x10]
inc ecx
movsxd rdx, ecx
mov r8, rbx
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.18002feb4
lea rbx, [rdi + 0x18]
mov qword [rbp - 0x59], rbx
lea rdi, [rbx - 0x18]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x18001a17e
cmp rax, qword [rdi]
jne 0x18001a17e
mov rsi, rdi
lock inc dword [rdi + 0x10]
mov rbx, qword [rbp - 0x59]
jmp 0x18001a1b6
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi + 8]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x18001a496
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
inc ecx
movsxd rdx, ecx
lea r8, [rdi + 0x18]
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.18002feb4
lea rax, [rsi + 0x18]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0x7f]
call fcn.180021dc0
nop
xor ecx, ecx
call fcn.180030ab8
mov r12, rax
mov rcx, qword [rdi]
mov rdx, qword [rcx]
call qword [rdx + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x18001a1fa
cmp rax, qword [rdi]
jne 0x18001a1fa
mov rsi, rdi
lock inc dword [rdi + 0x10]
mov rbx, qword [rbp - 0x59]
jmp 0x18001a232
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi + 8]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x18001a490
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
inc ecx
movsxd rdx, ecx
lea r8, [rdi + 0x18]
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.18002feb4
lea rax, [rsi + 0x18]
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x21]
call fcn.180022c90
mov r14d, eax
sub r12d, eax
xor ecx, ecx
mov rdx, qword [rbp - 0x49]
test rdx, rdx
setne cl
test ecx, ecx
je 0x18001a485
mov rcx, qword [rbp + 0x7f]
call fcn.180030ab0
test eax, eax
sete al
test al, al
je 0x18001a2cc
cmp r12d, 0x708
ja 0x18001a29d
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001a298
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x18001a433
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001a2c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x18001a433
mov rcx, rbx
call fcn.180021ff0
test rax, rax
jne 0x18001a308
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001a303
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x18001a433
lea rax, [rbp - 0x51]
mov qword [rbp + 7], rax
lea r12, [0x18004e26c]
mov rsi, r12
shr rsi, 0x10
nop
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x51], rax
test rsi, rsi
jne 0x18001a35f
movzx ebx, r12w
mov ecx, ebx
call fcn.180001110
test rax, rax
je 0x18001a372
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.180001a00
jmp 0x18001a372
mov r8d, 1
mov rdx, r12
lea rcx, [rbp - 0x51]
call fcn.180001b40
nop
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x18001a392
cmp rax, qword [rdi]
jne 0x18001a392
mov rbx, rdi
lock inc dword [rdi + 0x10]
jmp 0x18001a3ca
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x18001a47f
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
inc ecx
movsxd rdx, ecx
lea r8, [rdi + 0x18]
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.18002feb4
lea rax, [rbx + 0x18]
mov qword [rbp - 0x19], rax
mov r8d, dword [rbp + 0x6f]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x19]
call fcn.18000ece0
test eax, eax
jne 0x18001a408
xor ecx, ecx
call fcn.180030ab8
sub eax, r14d
cmp eax, 0x127500
jae 0x18001a408
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001a320
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001a433
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x18001a44d
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov esi, dword [rbp + 0x77]
inc esi
mov dword [rbp + 0x77], esi
add r15, 8
mov rdi, qword [rbp - 0x39]
mov rcx, rdi
mov rbx, qword [rbp - 0x41]
sub rcx, rbx
sar rcx, 3
mov eax, esi
cmp rax, rcx
jb 0x18001a0f0
mov rsi, qword [rbp + 0x67]
xor r12d, r12d
jmp 0x18001a4a2
call fcn.180001c20
nop
mov ecx, 0x80004005
call fcn.180001050
int3
call fcn.180001c20
nop
call fcn.180001c20
nop
call fcn.180001c20
nop
test rbx, rbx
je 0x18001a4e3
cmp rbx, rdi
je 0x18001a4db
nop dword [rax]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001a4ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
add rbx, 8
cmp rbx, rdi
jne 0x18001a4b0
mov rbx, qword [rbp - 0x41]
mov rcx, rbx
call fcn.18002f934
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r12
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001a50f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x18001a52d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret