Function at 0x18004e150
Capabilities:
Get socket status

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x488
mov eax, dword [rsp + 0x4a0]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jbe 0x18004e40c
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x46c], 0
jmp 0x18004e1a2
mov eax, dword [rsp + 0x46c]
add eax, 1
mov dword [rsp + 0x46c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x46c], eax
jae 0x18004e1cc
mov ecx, dword [rsp + 0x46c]
mov rax, qword [rsp + 0x490]
mov eax, dword [rax + 8]
cmp qword [rsp + rcx*8 + 0x48], rax
jne 0x18004e1ca
jmp 0x18004e1cc
jmp 0x18004e191
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x46c], eax
jne 0x18004e202
cmp dword [rsp + 0x40], 0x40
jae 0x18004e202
mov rax, qword [rsp + 0x490]
mov ecx, dword [rax + 8]
mov eax, dword [rsp + 0x46c]
mov qword [rsp + rax*8 + 0x48], rcx
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
xor eax, eax
test eax, eax
jne 0x18004e184
mov dword [rsp + 0x250], 0
mov rax, qword [rsp + 0x490]
cmp qword [rax + 0x20], 0
je 0x18004e2c7
mov dword [rsp + 0x470], 0
jmp 0x18004e248
mov eax, dword [rsp + 0x470]
add eax, 1
mov dword [rsp + 0x470], eax
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x470], eax
jae 0x18004e278
mov ecx, dword [rsp + 0x470]
mov rax, qword [rsp + 0x490]
mov eax, dword [rax + 8]
cmp qword [rsp + rcx*8 + 0x258], rax
jne 0x18004e276
jmp 0x18004e278
jmp 0x18004e237
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x470], eax
jne 0x18004e2bd
cmp dword [rsp + 0x250], 0x40
jae 0x18004e2bd
mov rax, qword [rsp + 0x490]
mov ecx, dword [rax + 8]
mov eax, dword [rsp + 0x470]
mov qword [rsp + rax*8 + 0x258], rcx
mov eax, dword [rsp + 0x250]
add eax, 1
mov dword [rsp + 0x250], eax
xor eax, eax
test eax, eax
jne 0x18004e22a
mov dword [rsp + 0x460], 0
mov dword [rsp + 0x464], 0x32
mov rax, qword [rsp + 0x490]
mov ecx, dword [rax + 8]
add ecx, 1
lea rax, [rsp + 0x460]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18004e17c
cmp dword [rsp + 0x30], 0
jl 0x18004e32b
cmp dword [rsp + 0x30], 2
jle 0x18004e332
xor eax, eax
jmp 0x18004e411
mov rax, qword [rsp + 0x490]
mov ecx, dword [rax + 8]
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18004e366
mov rcx, qword [rsp + 0x490]
call fcn.18004dee0
test eax, eax
jne 0x18004e366
xor eax, eax
jmp 0x18004e411
mov rax, qword [rsp + 0x490]
mov ecx, dword [rax + 8]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18004e407
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x490]
call fcn.18004e0e0
mov dword [rsp + 0x468], eax
cmp dword [rsp + 0x468], 0
jle 0x18004e3dc
movsxd rcx, dword [rsp + 0x468]
mov rax, qword [rsp + 0x498]
add rax, rcx
mov qword [rsp + 0x498], rax
mov ecx, dword [rsp + 0x468]
mov eax, dword [rsp + 0x34]
sub eax, ecx
mov dword [rsp + 0x34], eax
jmp 0x18004e407
cmp dword [rsp + 0x468], 0
jge 0x18004e3f9
call fcn.18005169c
cmp dword [rax], 0x2733
je 0x18004e3f9
xor eax, eax
jmp 0x18004e411
cmp dword [rsp + 0x468], 0
jne 0x18004e407
xor eax, eax
jmp 0x18004e411
jmp 0x18004e171
mov eax, 0xffffffff
add rsp, 0x488
ret