Function at 0x49b0ad
Capabilities:
Get socket status

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x660
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov eax, 0
mov dword [rbp - 0x410], eax
movabs rax, 0x204
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x40c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0x208
mov r8, rax
lea rax, [rbp - 0x410]
mov r11, rax
lea rax, [rbp - 0x208]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov dword [rbp - 0x208], eax
mov eax, 0
mov dword [rbp - 0x414], eax
mov eax, dword [rbp - 0x414]
mov ecx, dword [rbp - 0x208]
cmp eax, ecx
jae 0x49b193
jmp 0x49b166
mov eax, dword [rbp - 0x414]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x414], eax
jmp 0x49b13a
mov eax, dword [rbp - 0x414]
shl rax, 3
lea rcx, [rbp - 0x200]
add rcx, rax
mov eax, dword [rbp + 0x18]
movsxd rax, eax
mov rdx, qword [rcx]
cmp rdx, rax
jne 0x49b191
jmp 0x49b193
jmp 0x49b153
mov eax, dword [rbp - 0x414]
mov ecx, dword [rbp - 0x208]
cmp eax, ecx
jne 0x49b1e4
mov eax, dword [rbp - 0x208]
cmp eax, 0x40
jae 0x49b1e4
mov eax, dword [rbp - 0x414]
shl rax, 3
lea rcx, [rbp - 0x200]
add rcx, rax
mov eax, dword [rbp + 0x18]
movsxd rax, eax
mov qword [rcx], rax
mov eax, dword [rbp - 0x208]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x208], eax
mov rax, qword [rbp + 0x28]
mov rcx, qword [0x005129c0]
cqo
idiv rcx
mov qword [rbp - 0x420], rax
mov rax, qword [rbp - 0x420]
mov rcx, qword [0x005129c0]
imul rax, rcx
mov rcx, qword [rbp + 0x28]
sub rcx, rax
mov r10, rcx
mov rcx, r10
call fcn.00457366
mov qword [rbp - 0x428], rax
mov eax, dword [rbp - 0x420]
mov dword [rbp - 0x440], eax
mov eax, dword [rbp - 0x428]
mov dword [rbp - 0x43c], eax
mov eax, 8
mov r8, rax
lea rax, [rbp - 0x440]
mov r11, rax
lea rax, [rbp - 0x438]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 8
mov r11, rax
lea rax, [rbp - 0x438]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00423c2c
mov qword [rbp - 0x430], rax
mov rax, qword [rbp - 0x430]
mov qword [rbp - 0x448], rax
mov rax, qword [0x00512890]
mov r11, rax
mov rax, qword [rbp + 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00406b4e
movzx eax, al
cmp eax, 0
je 0x49b2d0
movabs rax, 0
mov qword [rbp - 0x448], rax
mov eax, dword [rbp + 0x20]
cmp eax, 0
jne 0x49b3c9
mov eax, dword [rbp + 0x18]
add eax, 1
mov rcx, qword [rbp - 0x448]
mov qword [rsp + 0x20], rcx
movabs rcx, 0
mov r9, rcx
movabs rcx, 0
mov r8, rcx
lea rcx, [rbp - 0x208]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll_select
mov r11, rax
lea rax, [rbp - 0x4a8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049bfab
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x4a8]
mov r11, rax
lea rax, [rbp - 0x478]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x478]
cmp eax, 0
je 0x49b3c4
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x478]
mov r11, rax
lea rax, [rbp - 0x4d8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x4d8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x49b625
jmp 0x49b5b6
mov eax, dword [rbp + 0x20]
cmp eax, 1
jne 0x49b4c2
mov eax, dword [rbp + 0x18]
add eax, 1
mov rcx, qword [rbp - 0x448]
mov qword [rsp + 0x20], rcx
movabs rcx, 0
mov r9, rcx
lea rcx, [rbp - 0x208]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll_select
mov r11, rax
lea rax, [rbp - 0x538]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049bfab
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x538]
mov r11, rax
lea rax, [rbp - 0x508]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x508]
cmp eax, 0
je 0x49b4bd
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x508]
mov r11, rax
lea rax, [rbp - 0x568]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x568]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x49b625
jmp 0x49b5b6
mov eax, dword [rbp + 0x20]
cmp eax, 2
jne 0x49b5b6
mov eax, dword [rbp + 0x18]
add eax, 1
mov rcx, qword [rbp - 0x448]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x208]
mov r9, rcx
movabs rcx, 0
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll_select
mov r11, rax
lea rax, [rbp - 0x5c8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049bfab
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x5c8]
mov r11, rax
lea rax, [rbp - 0x598]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x598]
cmp eax, 0
je 0x49b5b6
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x598]
mov r11, rax
lea rax, [rbp - 0x5f8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x5f8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x49b625
mov eax, dword [rbp + 0x18]
movsxd rax, eax
lea rcx, [rbp - 0x208]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll___WSAFDIsSet
mov byte [rbp - 0x629], al
mov eax, 1
mov r8, rax
lea rax, [rbp - 0x628]
mov r11, rax
lea rax, [rbp - 0x629]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0042c0a5
mov rax, qword [rbp + 0x10]
mov ecx, 0x30
mov r8, rcx
lea rcx, [rbp - 0x628]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
leave
ret