Function at 0x18003c5b0
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x5a8]
sub rsp, 0x6a8
mov rax, qword [0x180093030]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor edi, edi
mov r10d, r9d
mov dword [rsp + 0x3c], r9d
mov r13, r8
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x30], rdi
mov r14d, edi
mov qword [rsp + 0x40], rcx
cmp rcx, 0xffffffffffffffff
jne 0x18003c617
cmp rdx, rcx
jne 0x18003c617
cmp r8, rcx
jne 0x18003c617
mov ecx, r9d
call fcn.18003c580
jmp 0x18003c8f9
mov qword [rsp + 0x6a0], rbx
mov qword [rsp + 0x698], r15
test r9d, r9d
jle 0x18003c63c
mov r14d, r9d
call fcn.180046820
mov r10d, r14d
mov rbx, rax
jmp 0x18003c641
mov rbx, qword [rsp + 0x30]
or r8, 0xffffffffffffffff
mov ecx, edi
mov r9d, edi
lea eax, [r8 + 2]
mov dword [rbp + 0x370], ecx
mov dword [rsp + 0x50], edi
cmp r12, r8
je 0x18003c67b
mov qword [rsp + 0x58], r12
mov r9d, eax
mov dword [rsp + 0x50], eax
mov qword [rbp + 0x378], r12
mov ecx, eax
mov dword [rbp + 0x370], eax
mov r8, r12
cmp rsi, 0xffffffffffffffff
je 0x18003c70a
mov eax, edi
test r9d, r9d
je 0x18003c6a1
lea rdx, [rsp + 0x58]
cmp qword [rdx], rsi
je 0x18003c6a1
inc eax
add rdx, 8
cmp eax, r9d
jb 0x18003c691
cmp eax, r9d
jne 0x18003c6be
cmp r9d, 0x40
jae 0x18003c6be
mov qword [rsp + rax*8 + 0x58], rsi
mov r9d, dword [rsp + 0x50]
inc r9d
mov dword [rsp + 0x50], r9d
mov eax, edi
test ecx, ecx
je 0x18003c6df
lea rdx, [rbp + 0x378]
nop dword [rax + rax]
cmp qword [rdx], rsi
je 0x18003c6df
inc eax
add rdx, 8
cmp eax, ecx
jb 0x18003c6d0
cmp eax, ecx
jne 0x18003c6fe
cmp ecx, 0x40
jae 0x18003c6fe
mov qword [rbp + rax*8 + 0x378], rsi
mov ecx, dword [rbp + 0x370]
inc ecx
mov dword [rbp + 0x370], ecx
cmp rsi, r8
mov eax, 1
cmova r8, rsi
mov dword [rbp + 0x160], edi
cmp r13, 0xffffffffffffffff
je 0x18003c75d
mov dword [rbp + 0x160], eax
mov qword [rbp + 0x168], r13
mov eax, edi
test ecx, ecx
je 0x18003c73f
lea rdx, [rbp + 0x378]
cmp qword [rdx], r13
je 0x18003c73f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x18003c730
cmp eax, ecx
jne 0x18003c756
cmp ecx, 0x40
jae 0x18003c756
mov qword [rbp + rax*8 + 0x378], r13
inc dword [rbp + 0x370]
cmp r13, r8
cmova r8, r13
lea r15, [rsp + 0x30]
lea ecx, [r8 + 1]
test r10d, r10d
cmovs r15, rdi
mov dword [rsp + 0x38], ecx
movsxd r12, r10d
test r12, r12
jle 0x18003c7a6
mov eax, 0x10624dd3
imul r14d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r14d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x18003c7ad
jne 0x18003c7ad
mov qword [rsp + 0x30], rdi
cmp dword [rbp + 0x160], edi
lea r8, [rbp + 0x160]
lea rdx, [rsp + 0x50]
cmove r8, rdi
test r9d, r9d
lea r9, [rbp + 0x370]
cmove rdx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x18003c838
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x18003c7fa
cmp dword [0x180096108], edi
jne 0x18003c83c
cmp eax, 0x2714
jne 0x18003c83c
test r12, r12
jg 0x18003c80d
mov r9d, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
jmp 0x18003c774
call fcn.180046820
mov rdx, rbx
mov rcx, rax
call fcn.180046860
mov r14d, dword [rsp + 0x3c]
sub r14d, eax
test r14d, r14d
jle 0x18003c846
mov r9d, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
jmp 0x18003c774
test eax, eax
jns 0x18003c844
or eax, 0xffffffff
jmp 0x18003c8e9
jne 0x18003c84d
xor eax, eax
jmp 0x18003c8e9
mov rbx, qword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x18003c885
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18002cf2c
lea rdx, [rbp + 0x370]
mov rcx, rbx
test eax, eax
mov eax, 1
cmovne edi, eax
call fcn.18002cf2c
test eax, eax
je 0x18003c885
or edi, 4
cmp rsi, 0xffffffffffffffff
je 0x18003c8b5
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.18002cf2c
test eax, eax
je 0x18003c89f
or edi, 8
lea rdx, [rbp + 0x370]
mov rcx, rsi
call fcn.18002cf2c
test eax, eax
je 0x18003c8b5
or edi, 4
cmp r13, 0xffffffffffffffff
je 0x18003c8e7
lea rdx, [rbp + 0x160]
mov rcx, r13
call fcn.18002cf2c
test eax, eax
je 0x18003c8d1
or edi, 2
lea rdx, [rbp + 0x370]
mov rcx, r13
call fcn.18002cf2c
test eax, eax
je 0x18003c8e7
or edi, 4
mov eax, edi
mov rbx, qword [rsp + 0x6a0]
mov r15, qword [rsp + 0x698]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.18002cf50
add rsp, 0x6a8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret