Function at 0x140129bd0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r8
mov rdi, rdx
mov qword [rbp - 0x59], rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov rdx, r8
lea rcx, [rbp - 0x69]
call fcn.1401292e0
nop
cmp qword [rbp - 0x69], r12
je 0x140129cd3
lea r8d, [r12 + 1]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x69]
call fcn.140128ec0
nop
lea rcx, str.StripWritePreventingAttributesIfExists_failed:__s
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], 0x31
mov r8, rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.14012d4b0
nop
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140129c6a
mov rax, qword [rax]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rcx
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x79], xmm0
lea r8, [rbp - 0x79]
mov edx, 2
mov rcx, rdi
call fcn.140136090
mov eax, reloc.WS2_32.dll_recv
mov dword [rsp + 0x30], eax
and eax, 0xffffffef
mov dword [rsp + 0x30], eax
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x39]
call fcn.14007cfc0
nop
lea rcx, [rbp + 7]
call fcn.14007cfc0
nop
mov rcx, qword [rbp - 0x69]
movzx edx, cl
not dl
test dl, 1
jne 0x140129f5e
call fcn.140136020
jmp 0x140129f5e
mov rcx, qword [rbp - 0x69]
movzx eax, cl
not al
test al, 1
jne 0x140129ce6
call fcn.140136020
nop
mov qword [rbp - 0x19], r12
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
lea rcx, [rbp - 0x19]
call fcn.140078ca0
nop
mov r14, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140129d0a
mov rbx, qword [rbx]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, r14d
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x140129f10
movsxd r15, eax
inc r15
mov eax, 2
mul r15
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.1403987c8
mov rsi, rax
mov qword [rbp - 0x69], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
js 0x140129d90
mov r8, rbx
cmp rbx, r15
jae 0x140129d90
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140078ce0
nop
mov rcx, rsi
call fcn.140398020
test ebx, ebx
jle 0x140129f10
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140129ee9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteFileW_failed:__d
mov qword [rbp + 7], rcx
mov qword [rbp + 0xf], socket
mov dword [rbp - 0x69], eax
mov rax, qword [rbp - 0x69]
mov qword [rbp - 0x49], rax
lea rax, [0x140138b70]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 1
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
lea rcx, [rbp - 0x39]
call fcn.14007d020
nop
mov ebx, 0x80
mov dword [rsp + 0x30], ebx
lea rax, [rbp - 0x39]
mov qword [rbp - 0x79], rax
lea rax, [0x140139550]
mov qword [rbp - 0x71], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
movaps xmm1, xmmword [rbp + 7]
movdqa xmmword [rbp + 7], xmm1
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea r8, [rbp - 0x69]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x79]
call fcn.140139300
test al, al
jne 0x140129e72
lea rax, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rax, qword [rbp - 0x39]
mov qword [rbp - 0x29], r12
mov byte [rax], 0
btr ebx, 7
mov dword [rsp + 0x30], ebx
or ebx, 0x40
mov dword [rsp + 0x30], ebx
lea rax, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rax, qword [rbp - 0x39]
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x71], rax
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea r8, [rbp - 0x79]
mov edx, 2
mov rcx, rdi
call fcn.140136090
bts ebx, 8
mov dword [rsp + 0x30], ebx
btr ebx, 8
mov dword [rsp + 0x30], ebx
or ebx, 1
mov dword [rsp + 0x30], ebx
and ebx, 0xffffffbf
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x39]
call fcn.14007cfc0
nop
lea rcx, [rbp - 0x19]
call fcn.14007cec0
nop
jmp 0x140129f5e
mov qword [rdi], r12
mov eax, 0x200
mov dword [rsp + 0x30], eax
btr eax, 9
mov dword [rsp + 0x30], eax
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x19]
call fcn.14007cec0
nop
jmp 0x140129f5e
lea rax, str.Utf8ToWide_failed
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], reloc.COMCTL32.dll_InitCommonControls
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea r8, [rbp - 0x79]
mov edx, 3
mov rcx, rdi
call fcn.140136090
mov eax, 0x20
mov dword [rsp + 0x30], eax
and eax, 0xffffffdf
mov dword [rsp + 0x30], eax
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x19]
call fcn.14007cec0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140398000
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret