Function at 0x140022ca0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400f9b40]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov r14, rdx
mov qword [rbp + 0x70], rdx
xor r15d, r15d
mov dword [rsp + 0x68], r15d
mov dword [rcx + 0xec], 7
mov rdx, qword [0x1400fb180]
nop
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140022d00
add rcx, 0x40
call fcn.140010b20
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], r15
mov qword [rbp + 0xb0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x98], 0
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x90], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x78], 0
mov rcx, qword [r14 + 0x10]
movabs r12, 0x7fffffffffffffff
mov rax, r12
sub rax, rcx
mov rdx, qword [reloc.WS2_32.dll_ioctlsocket]
cmp rax, rdx
jb 0x140023374
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140022d82
mov r9, qword [r14]
lea rax, [0x1400f9318]
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rax, qword [0x1400f9318]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, r14
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000dc70
lea rdx, [rbp + 0x98]
lea rcx, [rsp + 0x48]
call fcn.140009530
test al, al
jne 0x140022ef5
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x140022e11
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022e0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400232f3
call fcn.140099f7c
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x90], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x78], 0
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x140022e68
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022e63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023360
call fcn.140099f7c
mov qword [rbp + 0xa8], r15
mov qword [rbp + 0xb0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x98], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140022ebb
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140022eb6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140023367
mov rcx, r8
call fcn.140099f7c
mov byte [r14], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], r15
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.14009a250
mov rbx, qword [rsp + 0x210]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [0x1400bbce0]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x68], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rsp + rcx + 0x7c], edx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x70], rax
mov rdi, qword [rbp + 0xa8]
lea rsi, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0xf
cmova rsi, qword [rbp + 0x98]
mov eax, 2
cmp rdi, 0x7fffffff
ja 0x14002337a
test rdi, rdi
je 0x14002300f
cmp rdi, 0x1000
jb 0x140022fd7
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140023380
call fcn.140099f40
test rax, rax
je 0x140022fd0
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140022fe2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140099f40
mov rbx, rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rbx + rdi]
mov qword [rbp - 8], r9
mov r8, rbx
mov rdx, rbx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov eax, 3
jmp 0x140023013
mov qword [rbp - 8], r15
mov dword [rbp], eax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.14000a6d0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x14002327a
movabs r13, 0x8000000000000000
mov ecx, socket
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov rdi, qword [rbp + 0x88]
lea rsi, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rsi, qword [rbp + 0x78]
cmp rdi, r12
ja 0x14002336e
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
cmp rdi, 0xf
ja 0x1400230b9
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x48], xmm0
jmp 0x14002313f
mov rbx, rdi
or rbx, 0xf
cmp rbx, r12
jbe 0x1400230ce
mov rbx, r12
lea rax, [r13 + 0x27]
jmp 0x1400230f0
cmp rbx, 0x16
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140023112
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140023386
mov rcx, rax
call fcn.140099f40
mov rcx, rax
test rax, rax
je 0x1400232fa
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140023121
test rcx, rcx
je 0x14002311e
call fcn.140099f40
jmp 0x140023121
mov rax, r15
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001e140
test al, al
je 0x14002323a
lea rdi, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
seta cl
mov r9, qword [rbp + 0x78]
cmova rdi, r9
mov rax, qword [rbp + 0x88]
add rdi, rax
lea rdx, [rbp + 0x78]
test cl, cl
je 0x140023185
lea rbx, [rax + r9]
jmp 0x14002318d
lea rbx, [rax + rdx]
lea r9, [rbp + 0x78]
mov r8b, reloc.WS2_32.dll_listen
mov rdx, rbx
mov rcx, r9
call fcn.140099c90
mov r10, rax
cmp rax, rbx
je 0x1400231c6
inc rax
cmp rax, rbx
je 0x1400231c6
nop dword [rax + rax]
movzx ecx, byte [rax]
cmp cl, 0xd
je 0x1400231be
mov byte [r10], cl
inc r10
inc rax
cmp rax, rbx
jne 0x1400231b0
lea rcx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
seta r8b
cmova rcx, qword [rbp + 0x78]
mov r9, r10
sub r9, rcx
sub rdi, r10
mov rbx, qword [rbp + 0x88]
mov rax, rbx
sub rax, r9
cmp rax, rdi
cmovb rdi, rax
lea rcx, [rbp + 0x78]
test r8b, r8b
cmovne rcx, qword [rbp + 0x78]
add rcx, r9
sub rbx, rdi
mov r8, rbx
sub r8, r9
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x88], rbx
lea rcx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rcx, qword [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.14000a6d0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140023060
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call fcn.14000b250
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x140023306
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023301
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140023301
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 fcn.140099f7c
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x90], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x78], 0
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x140022e68
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022e63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022e63
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 fcn.1400025a0
nop
call fcn.1400025a0
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
int3
call fcn.140002510
nop
call fcn.140002510
int3