Function at 0x18005f640
Capabilities:
Get socket status

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x728
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x710], rax
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xd8], 0
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x740], 0
je 0x18005f6d9
mov dword [rsp + 0x30], 0
jmp 0x18005f6ac
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x18005f6d9
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
cmp qword [rcx + rax], 0xffffffffffffffff
je 0x18005f6d7
mov byte [rsp + 0x38], 0
jmp 0x18005f6d9
jmp 0x18005f6a2
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x18005f6fb
mov ecx, dword [rsp + 0x750]
call fcn.18005fe10
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x18005fde2
cmp dword [rsp + 0x750], 0
jle 0x18005f732
mov eax, dword [rsp + 0x750]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xb0]
call fcn.180080fe0
lea rcx, [rsp + 0xd0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0xe0], 0
mov dword [rsp + 0x2f0], 0
mov dword [rsp + 0x500], 0
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x30], 0
jmp 0x18005f770
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x18005fa3e
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
xor ecx, ecx
mov rdx, qword [rsp + 0x740]
mov word [rdx + rax + 0xa], cx
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x18005f7b1
jmp 0x18005f766
xor eax, eax
test eax, eax
jne 0x18005f7b1
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x710
test eax, eax
je 0x18005fa39
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
mov rdx, qword [rsp + 0x58]
cmp qword [rcx + rax], rdx
jbe 0x18005f80d
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x300
test eax, eax
je 0x18005f8c7
mov dword [rsp + 0x3c], 0
jmp 0x18005f843
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x3c], eax
jae 0x18005f876
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov rcx, qword [rdx + rcx]
cmp qword [rsp + rax*8 + 0xe8], rcx
jne 0x18005f874
jmp 0x18005f876
jmp 0x18005f839
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x3c], eax
jne 0x18005f8bd
cmp dword [rsp + 0xe0], 0x40
jae 0x18005f8bd
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x740]
mov rax, qword [rdx + rax]
mov qword [rsp + rcx*8 + 0xe8], rax
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
xor eax, eax
test eax, eax
jne 0x18005f82f
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x10
test eax, eax
je 0x18005f97f
mov dword [rsp + 0x40], 0
jmp 0x18005f8fb
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x40], eax
jae 0x18005f92e
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov rcx, qword [rdx + rcx]
cmp qword [rsp + rax*8 + 0x2f8], rcx
jne 0x18005f92c
jmp 0x18005f92e
jmp 0x18005f8f1
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x40], eax
jne 0x18005f975
cmp dword [rsp + 0x2f0], 0x40
jae 0x18005f975
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x740]
mov rax, qword [rdx + rax]
mov qword [rsp + rcx*8 + 0x2f8], rax
mov eax, dword [rsp + 0x2f0]
inc eax
mov dword [rsp + 0x2f0], eax
xor eax, eax
test eax, eax
jne 0x18005f8e7
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x600
test eax, eax
je 0x18005fa39
mov dword [rsp + 0x44], 0
jmp 0x18005f9b5
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x44], eax
jae 0x18005f9e8
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov rcx, qword [rdx + rcx]
cmp qword [rsp + rax*8 + 0x508], rcx
jne 0x18005f9e6
jmp 0x18005f9e8
jmp 0x18005f9ab
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x44], eax
jne 0x18005fa2f
cmp dword [rsp + 0x500], 0x40
jae 0x18005fa2f
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x740]
mov rax, qword [rdx + rax]
mov qword [rsp + rcx*8 + 0x508], rax
mov eax, dword [rsp + 0x500]
inc eax
mov dword [rsp + 0x500], eax
xor eax, eax
test eax, eax
jne 0x18005f9a1
jmp 0x18005f766
cmp dword [rsp + 0xe0], 0
jne 0x18005fa75
cmp dword [rsp + 0x2f0], 0
jne 0x18005fa75
cmp dword [rsp + 0x500], 0
jne 0x18005fa75
mov ecx, dword [rsp + 0x750]
call fcn.18005fe10
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x18005fde2
cmp dword [rsp + 0x750], 0
jge 0x18005fa8a
mov qword [rsp + 0x60], 0
jmp 0x18005fa94
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x750], 0
jle 0x18005fad5
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x54], eax
jmp 0x18005faef
cmp dword [rsp + 0x750], 0
jne 0x18005faef
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0x500], 0
je 0x18005fb08
lea rax, [rsp + 0x500]
mov qword [rsp + 0x68], rax
jmp 0x18005fb11
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x2f0], 0
je 0x18005fb2a
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x70], rax
jmp 0x18005fb33
mov qword [rsp + 0x70], 0
cmp dword [rsp + 0xe0], 0
je 0x18005fb4c
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x78], rax
jmp 0x18005fb55
mov qword [rsp + 0x78], 0
mov eax, dword [rsp + 0x58]
inc eax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x18005fb8f
jmp 0x18005fc41
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x18005fbb8
cmp dword [0x1801759dc], 0
jne 0x18005fbb3
cmp dword [rsp + 0x4c], 0x2714
je 0x18005fbb8
jmp 0x18005fc41
cmp dword [rsp + 0x750], 0
jle 0x18005fc36
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0xd0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xc0]
call fcn.180080fe0
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xa0]
call fcn.1800810c0
mov ecx, dword [rsp + 0x750]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jg 0x18005fc36
mov dword [rsp + 0x34], 0
jmp 0x18005fc41
cmp dword [rsp + 0x34], 0xffffffff
je 0x18005faa1
cmp dword [rsp + 0x34], 0
jge 0x18005fc52
mov eax, 0xffffffff
jmp 0x18005fde2
cmp dword [rsp + 0x34], 0
jne 0x18005fc60
xor eax, eax
jmp 0x18005fde2
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
jmp 0x18005fc7c
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x18005fdde
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
xor ecx, ecx
mov rdx, qword [rsp + 0x740]
mov word [rdx + rax + 0xa], cx
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x18005fcbd
jmp 0x18005fc72
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x740]
mov rcx, qword [rcx + rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18005fd11
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
or eax, 0x300
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov word [rdx + rcx + 0xa], ax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x740]
mov rcx, qword [rcx + rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18005fd63
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
or eax, 0x10
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov word [rdx + rcx + 0xa], ax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rdx, [rsp + 0x500]
mov rcx, qword [rsp + 0x740]
mov rcx, qword [rcx + rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18005fdb6
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
bts eax, 0xa
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov word [rdx + rcx + 0xa], ax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
test eax, eax
je 0x18005fdd9
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x18005fc72
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x728
pop rdi
pop rsi
ret