Function at 0x140130770
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x140b29680]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov eax, dword [rbp + 0xd0]
xorps xmm0, xmm0
mov rsi, qword [rbp + 0xd8]
test eax, eax
mov r15, rcx
mov qword [rbp - 8], r9
mov rcx, qword [rbp + 0xc0]
mov r14d, 6
cmovns r14d, eax
mov qword [rbp], r8
mov qword [rbp - 0x10], rcx
mov r12, rdx
mov dword [rsp + 0x70], 0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
test r15, r15
je 0x140130b1f
test rdx, rdx
je 0x140130b1f
test r9, r9
je 0x140130810
test r8, r8
je 0x140130b1f
cmp word [rbp + 0xc8], 0
je 0x140130823
test rcx, rcx
je 0x140130b1f
mov eax, r14d
and eax, 0xf
cmp al, 0xa
ja 0x140130b1f
cmp byte [rdx], 0x2f
jne 0x14013084a
test rsi, rsi
je 0x140130b2a
mov dword [rsi], Ordinal_27
jmp 0x140130b2a
mov rcx, r15
call fcn.140130640
lea rdx, [rbp + 8]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x80]
mov r13d, 1
mov rdx, r15
test ebx, ebx
je 0x140130a01
mov r9d, r14d
xor r8d, r8d
call fcn.140139cf0
test eax, eax
je 0x140130a1c
mov dword [rsp + 0x70], r13d
xor edi, edi
movzx eax, word [rbp + 0xc8]
lea rcx, [rbp - 0x80]
mov r9, qword [rbp - 8]
mov rdx, r12
mov r8, qword [rbp]
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], r14d
mov word [rsp + 0x28], ax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.140137820
mov ebx, dword [rbp - 0x64]
lea rcx, [rbp - 0x80]
mov r14d, eax
call fcn.140139760
mov ecx, dword [rbp - 0x64]
test eax, eax
jne 0x140130908
test ebx, ebx
mov r14d, edi
cmove ebx, ecx
mov rdi, qword [rbp - 0x18]
test rdi, rdi
je 0x140130aeb
cmp qword [rbp - 0x58], 0
je 0x140130aeb
mov r8, qword [rbp - 0x50]
test r8, r8
je 0x140130aeb
mov eax, dword [rbp - 0x6c]
add eax, 0xfffffffe
cmp eax, r13d
ja 0x140130aeb
mov rcx, qword [rbp - 0x40]
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov rdx, qword [rdi]
call r8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rbp - 0x40]
call qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov rdx, qword [rdi + 0x40]
mov rcx, qword [rbp - 0x40]
call qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x1401309b5
cmp dword [rbp - 0x68], 4
jne 0x1401309b1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp eax, 0xffffffff
jne 0x1401309b1
mov eax, dword [rbp - 0x64]
test r14d, r14d
mov ecx, reloc.WS2_32.dll_setsockopt
mov r13d, r12d
cmovne eax, ecx
mov dword [rbp - 0x64], eax
mov qword [rdi + 0x70], r12
lea rax, [0x140131c60]
cmp qword [rbp - 0x30], rax
jne 0x1401309dc
mov rdx, qword [rdi + 0x80]
test rdx, rdx
je 0x1401309dc
mov rcx, qword [rbp - 0x40]
call qword [rbp - 0x50]
mov qword [rdi + 0x80], r12
mov rcx, qword [rbp - 0x40]
mov rdx, rdi
call qword [rbp - 0x50]
mov dword [rbp - 0x6c], r12d
test r13d, r13d
je 0x140130ae6
test r14d, r14d
jne 0x140130b13
jmp 0x140130b03
mov r8d, r14d
xor edi, edi
bts r8d, 0xb
mov qword [rsp + 0x20], rdi
xor r9d, r9d
call fcn.140133db0
test eax, eax
jne 0x140130a2f
test rsi, rsi
je 0x140130b2a
mov eax, dword [rbp - 0x64]
mov dword [rsi], eax
jmp 0x140130b2a
mov r8d, r14d
lea rcx, [rbp - 0x80]
mov rdx, r15
call fcn.140139f40
test eax, eax
jne 0x14013089c
test rsi, rsi
je 0x140130a50
mov eax, dword [rbp - 0x64]
mov dword [rsi], eax
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x140130b2a
cmp qword [rbp - 0x58], rdi
je 0x140130b2a
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x140130b2a
cmp dword [rbp - 0x6c], r13d
jne 0x140130b2a
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x18], rdi
mov rdx, qword [rbx]
call rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbp - 0x40]
call qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbp - 0x40]
call qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140130ada
cmp dword [rbp - 0x68], 4
jne 0x140130ad6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x70], rdi
mov rcx, qword [rbp - 0x40]
mov rdx, rbx
call qword [rbp - 0x50]
jmp 0x140130b2a
mov ecx, dword [rbp - 0x64]
jmp 0x140130afb
xor r12d, r12d
test r14d, r14d
je 0x140130afb
mov ecx, Ordinal_27
mov dword [rbp - 0x64], ecx
test ebx, ebx
mov r14d, r12d
cmove ebx, ecx
cmp dword [rsp + 0x70], 0
je 0x140130b13
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test rsi, rsi
je 0x140130b1a
mov dword [rsi], ebx
mov eax, r14d
jmp 0x140130b2c
test rsi, rsi
je 0x140130b2a
mov dword [rsi], Ordinal_27
xor eax, eax
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140148c30
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret