Function at 0x180001b10
Capabilities:
Get socket status

Disassembly:
push rsi
push rdi
sub rsp, 0x298
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x60], rax
mov r8d, 0x2000
mov edx, 8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x180006010], rax
lea rax, [0x180006360]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x180001b57
mov rax, qword [rsp + 0x48]
mov r8d, eax
lea rdx, [0x180006360]
mov rcx, qword [0x180006020]
call sub.libssl_3_x64.dll_SSL_write
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x2000
mov qword [rsp + 0x50], 0
xor eax, eax
cmp eax, 1
je 0x180001da0
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x30], 0
jmp 0x180001bd6
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x30], eax
jae 0x180001bfc
mov eax, dword [rsp + 0x30]
mov rcx, qword [0x180006030]
cmp qword [rsp + rax*8 + 0x88], rcx
jne 0x180001bfa
jmp 0x180001bfc
jmp 0x180001bcc
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x30], eax
jne 0x180001c36
cmp dword [rsp + 0x80], 0x40
jae 0x180001c36
mov eax, dword [rsp + 0x30]
mov rcx, qword [0x180006030]
mov qword [rsp + rax*8 + 0x88], rcx
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
xor eax, eax
test eax, eax
jne 0x180001bc2
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0xc8
mov rax, qword [0x180006030]
inc rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [0x180006010]
add rcx, rax
mov rax, rcx
mov r8d, 0x400
mov rdx, rax
mov rcx, qword [0x180006020]
call sub.libssl_3_x64.dll_SSL_read
mov dword [rsp + 0x44], eax
lea rdx, section..data
mov rcx, qword [0x180006010]
call fcn.180007270
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180001d32
cmp dword [rsp + 0x40], 0
jne 0x180001d32
mov rax, qword [0x180006010]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
cdqe
movsxd rcx, dword [rsp + 0x3c]
mov rdx, qword [0x180006010]
add rdx, rcx
mov rcx, rdx
mov rdi, qword [0x180006010]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x40], 1
jmp 0x180001bac
cmp dword [rsp + 0x40], 0
je 0x180001d49
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
cmp eax, 0x400
jg 0x180001d92
mov eax, dword [rsp + 0x38]
add eax, 0x1000
cdqe
mov r9, rax
mov r8, qword [0x180006010]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [0x180006010], rax
mov eax, dword [rsp + 0x38]
add eax, 0x1000
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x44], 1
jge 0x180001d9b
jmp 0x180001da0
jmp 0x180001bac
add rsp, 0x298
pop rdi
pop rsi
ret