Function at 0x1004c050
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
sub rsp, 0x6d8
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
xor ebx, ebx
mov qword [rax - 0x10], r13
mov qword [rax - 0x20], r15
mov eax, 0x7fffffff
mov rdi, r9
cmp r9, rax
mov rbp, r8
mov rsi, rdx
cmovge rdi, rax
cmp rcx, 0xffffffffffffffff
mov r13, rcx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov r15d, ebx
jne 0x1004c0b4
cmp rdx, rcx
jne 0x1004c0b4
cmp r8, rcx
jne 0x1004c0b4
mov ecx, edi
call fcn.1004c020
jmp 0x1004c3e8
test rdi, rdi
jle 0x1004c0d9
lea rcx, [rsp + 0x50]
mov r15d, edi
call fcn.1006dbf0
lea rdx, [rsp + 0x40]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov r8, 0xffffffffffffffff
mov ecx, ebx
mov dword [rsp + 0x70], ebx
cmp r13, r8
mov r9d, ebx
mov dword [rsp + 0x280], ebx
lea eax, [r8 + 2]
je 0x1004c119
mov qword [rsp + 0x288], r13
mov r9d, eax
mov dword [rsp + 0x280], eax
mov qword [rsp + 0x78], r13
mov ecx, eax
mov dword [rsp + 0x70], eax
mov r8, r13
cmp rsi, 0xffffffffffffffff
je 0x1004c1aa
test r9d, r9d
mov eax, ebx
je 0x1004c143
lea rdx, [rsp + 0x288]
cmp qword [rdx], rsi
je 0x1004c143
add eax, 1
add rdx, 8
cmp eax, r9d
jb 0x1004c132
cmp eax, r9d
jne 0x1004c16a
cmp r9d, 0x40
jae 0x1004c16a
mov qword [rsp + rax*8 + 0x288], rsi
mov r9d, dword [rsp + 0x280]
add r9d, 1
mov dword [rsp + 0x280], r9d
test ecx, ecx
mov eax, ebx
je 0x1004c185
lea rdx, [rsp + 0x78]
cmp qword [rdx], rsi
je 0x1004c185
add eax, 1
add rdx, 8
cmp eax, ecx
jb 0x1004c175
cmp eax, ecx
jne 0x1004c19e
cmp ecx, 0x40
jae 0x1004c19e
mov qword [rsp + rax*8 + 0x78], rsi
mov ecx, dword [rsp + 0x70]
add ecx, 1
mov dword [rsp + 0x70], ecx
cmp rsi, r8
mov eax, 1
cmova r8, rsi
cmp rbp, 0xffffffffffffffff
mov dword [rsp + 0x490], ebx
je 0x1004c1fb
test ecx, ecx
mov dword [rsp + 0x490], eax
mov qword [rsp + 0x498], rbp
mov eax, ebx
je 0x1004c1e1
lea rdx, [rsp + 0x78]
cmp qword [rdx], rbp
je 0x1004c1e1
add eax, 1
add rdx, 8
cmp eax, ecx
jb 0x1004c1d1
cmp eax, ecx
jne 0x1004c1f4
cmp ecx, 0x40
jae 0x1004c1f4
mov qword [rsp + rax*8 + 0x78], rbp
add dword [rsp + 0x70], 1
cmp rbp, r8
cmova r8, rbp
mov qword [rsp + 0x6d0], r12
mov qword [rsp + 0x6c0], r14
lea r12, [rsp + 0x30]
movdqa xmmword [rsp + 0x6a0], xmm6
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
lea r14d, [r8 + 1]
cmovs r12, rbx
nop
nop
test rdi, rdi
jle 0x1004c262
mov eax, 0x10624dd3
imul r15d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r15d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1004c26f
test rdi, rdi
jne 0x1004c26f
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
cmp dword [rsp + 0x490], ebx
lea r8, [rsp + 0x490]
lea rdx, [rsp + 0x280]
cmove r8, rbx
test r9d, r9d
lea r9, [rsp + 0x70]
mov ecx, r14d
cmove rdx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1004c31e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1004c2c2
cmp dword [0x100b77c8], ebx
jne 0x1004c322
cmp eax, 0x2714
jne 0x1004c322
test rdi, rdi
jg 0x1004c2d4
mov r9d, dword [rsp + 0x280]
jmp 0x1004c230
lea rcx, [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm6
call fcn.1006dbf0
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1006dc40
mov r15d, edi
sub r15d, eax
test r15d, r15d
jle 0x1004c330
mov r9d, dword [rsp + 0x280]
jmp 0x1004c230
test eax, eax
jns 0x1004c32c
mov eax, 0xffffffff
jmp 0x1004c3cf
test eax, eax
jne 0x1004c337
xor eax, eax
jmp 0x1004c3cf
cmp r13, 0xffffffffffffffff
je 0x1004c36b
lea rdx, [rsp + 0x280]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
lea rdx, [rsp + 0x70]
mov rcx, r13
test eax, eax
mov eax, 1
cmovne ebx, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004c36b
or ebx, 4
cmp rsi, 0xffffffffffffffff
je 0x1004c39c
lea rdx, [rsp + 0x280]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004c388
or ebx, 8
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004c39c
or ebx, 4
cmp rbp, 0xffffffffffffffff
je 0x1004c3cd
lea rdx, [rsp + 0x490]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004c3b9
or ebx, 2
lea rdx, [rsp + 0x70]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004c3cd
or ebx, 4
mov eax, ebx
mov r14, qword [rsp + 0x6c0]
mov r12, qword [rsp + 0x6d0]
movdqa xmm6, xmmword [rsp + 0x6a0]
mov r15, qword [rsp + 0x6b8]
mov r13, qword [rsp + 0x6c8]
mov rdi, qword [rsp + 0x6f8]
mov rsi, qword [rsp + 0x6f0]
mov rbp, qword [rsp + 0x6e8]
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6d8
ret