Function at 0x4b3800
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x305c
call fcn.00526010
push esi
push edi
lea edi, [ebp - 0x305c]
mov ecx, 0xc17
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3030], 0xffffffff
cmp dword [ebp + 0x18], 0
jg 0x4b3845
jl 0x4b3839
cmp dword [ebp + 0x14], 0
jae 0x4b3845
mov dword [ebp - 0x3044], 0
jmp 0x4b3885
push 0
push 0xf4240
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.005252e0
mov dword [ebp - 0x303c], eax
push 0
push 0xf4240
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00526990
mov dword [ebp - 0x3038], eax
lea ecx, [ebp - 0x303c]
mov dword [ebp - 0x3044], ecx
mov dword [ebp - 0x1008], 0
mov dword [ebp - 0x2014], 0
mov dword [ebp - 0x3020], 0
mov dword [ebp - 0x302c], 0
jmp 0x4b38be
mov edx, dword [ebp - 0x302c]
add edx, 1
mov dword [ebp - 0x302c], edx
mov eax, dword [ebp - 0x302c]
cmp eax, dword [ebp + 0xc]
jge 0x4b3b31
mov ecx, dword [ebp - 0x302c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 8]
mov word [edx + ecx + 0xa], 0
mov eax, dword [ebp - 0x302c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 4], 1
jne 0x4b390e
mov edx, dword [ebp - 0x302c]
imul edx, edx, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x3048], edx
jmp 0x4b3932
mov eax, dword [ebp - 0x302c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 4], 2
jne 0x4b392d
mov eax, 9
jmp 0x4b3d37
jmp 0x4b3b31
mov edx, dword [ebp - 0x302c]
imul edx, edx, 0x14
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx + 8]
and ecx, 1
je 0x4b39d2
mov dword [ebp - 0x304c], 0
jmp 0x4b3967
mov edx, dword [ebp - 0x304c]
add edx, 1
mov dword [ebp - 0x304c], edx
mov eax, dword [ebp - 0x304c]
cmp eax, dword [ebp - 0x1008]
jae 0x4b398e
mov ecx, dword [ebp - 0x304c]
mov edx, dword [ebp + ecx*4 - 0x1004]
cmp edx, dword [ebp - 0x3048]
jne 0x4b398c
jmp 0x4b398e
jmp 0x4b3958
mov eax, dword [ebp - 0x304c]
cmp eax, dword [ebp - 0x1008]
jne 0x4b39ca
cmp dword [ebp - 0x1008], 0x400
jae 0x4b39ca
mov ecx, dword [ebp - 0x304c]
mov edx, dword [ebp - 0x3048]
mov dword [ebp + ecx*4 - 0x1004], edx
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
xor ecx, ecx
jne 0x4b394c
mov edx, dword [ebp - 0x302c]
imul edx, edx, 0x14
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx + 8]
and ecx, 4
je 0x4b3a72
mov dword [ebp - 0x3050], 0
jmp 0x4b3a07
mov edx, dword [ebp - 0x3050]
add edx, 1
mov dword [ebp - 0x3050], edx
mov eax, dword [ebp - 0x3050]
cmp eax, dword [ebp - 0x2014]
jae 0x4b3a2e
mov ecx, dword [ebp - 0x3050]
mov edx, dword [ebp + ecx*4 - 0x2010]
cmp edx, dword [ebp - 0x3048]
jne 0x4b3a2c
jmp 0x4b3a2e
jmp 0x4b39f8
mov eax, dword [ebp - 0x3050]
cmp eax, dword [ebp - 0x2014]
jne 0x4b3a6a
cmp dword [ebp - 0x2014], 0x400
jae 0x4b3a6a
mov ecx, dword [ebp - 0x3050]
mov edx, dword [ebp - 0x3048]
mov dword [ebp + ecx*4 - 0x2010], edx
mov eax, dword [ebp - 0x2014]
add eax, 1
mov dword [ebp - 0x2014], eax
xor ecx, ecx
jne 0x4b39ec
mov edx, dword [ebp - 0x302c]
imul edx, edx, 0x14
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx + 8]
and ecx, 0x72
je 0x4b3b12
mov dword [ebp - 0x3054], 0
jmp 0x4b3aa7
mov edx, dword [ebp - 0x3054]
add edx, 1
mov dword [ebp - 0x3054], edx
mov eax, dword [ebp - 0x3054]
cmp eax, dword [ebp - 0x3020]
jae 0x4b3ace
mov ecx, dword [ebp - 0x3054]
mov edx, dword [ebp + ecx*4 - 0x301c]
cmp edx, dword [ebp - 0x3048]
jne 0x4b3acc
jmp 0x4b3ace
jmp 0x4b3a98
mov eax, dword [ebp - 0x3054]
cmp eax, dword [ebp - 0x3020]
jne 0x4b3b0a
cmp dword [ebp - 0x3020], 0x400
jae 0x4b3b0a
mov ecx, dword [ebp - 0x3054]
mov edx, dword [ebp - 0x3048]
mov dword [ebp + ecx*4 - 0x301c], edx
mov eax, dword [ebp - 0x3020]
add eax, 1
mov dword [ebp - 0x3020], eax
xor ecx, ecx
jne 0x4b3a8c
mov edx, dword [ebp - 0x3048]
cmp edx, dword [ebp - 0x3030]
jle 0x4b3b2c
mov eax, dword [ebp - 0x3048]
mov dword [ebp - 0x3030], eax
jmp 0x4b38af
mov esi, esp
mov ecx, dword [ebp - 0x3044]
push ecx
lea edx, [ebp - 0x3020]
push edx
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x3030]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.0052354c
mov dword [ebp - 0x3028], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x3028]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x4b3b89
mov eax, 0x11177
jmp 0x4b3d37
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jge 0x4b3bd5
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.0052354c
test eax, eax
jne 0x4b3bb0
mov dword [ebp - 0x305c], 0
jmp 0x4b3bca
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.0052354c
add eax, 0xafc80
mov dword [ebp - 0x305c], eax
mov eax, dword [ebp - 0x305c]
jmp 0x4b3d37
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov dword [ebp - 0x302c], 0
jmp 0x4b3bf9
mov edx, dword [ebp - 0x302c]
add edx, 1
mov dword [ebp - 0x302c], edx
mov eax, dword [ebp - 0x302c]
cmp eax, dword [ebp + 0xc]
jge 0x4b3d35
mov ecx, dword [ebp - 0x302c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 8]
cmp dword [edx + ecx + 4], 1
jne 0x4b3c36
mov eax, dword [ebp - 0x302c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3058], eax
jmp 0x4b3c5a
mov ecx, dword [ebp - 0x302c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 8]
cmp dword [edx + ecx + 4], 2
jne 0x4b3c55
mov eax, 9
jmp 0x4b3d37
jmp 0x4b3d35
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 0x3058]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b3c96
mov edx, dword [ebp - 0x302c]
imul edx, edx, 0x14
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx + 0xa]
or ecx, 1
mov edx, dword [ebp - 0x302c]
imul edx, edx, 0x14
mov eax, dword [ebp + 8]
mov word [eax + edx + 0xa], cx
lea ecx, [ebp - 0x2014]
push ecx
mov edx, dword [ebp - 0x3058]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b3cd2
mov eax, dword [ebp - 0x302c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + eax + 0xa]
or edx, 4
mov eax, dword [ebp - 0x302c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 8]
mov word [ecx + eax + 0xa], dx
lea edx, [ebp - 0x3020]
push edx
mov eax, dword [ebp - 0x3058]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b3d0e
mov ecx, dword [ebp - 0x302c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 8]
movsx eax, word [edx + ecx + 0xa]
or eax, 0x10
mov ecx, dword [ebp - 0x302c]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 8]
mov word [edx + ecx + 0xa], ax
mov eax, dword [ebp - 0x302c]
imul eax, eax, 0x14
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + eax + 0xa]
test edx, edx
je 0x4b3d30
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x4b3bea
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4b3d60]
call fcn.0052356f
pop eax
pop edx
pop edi
pop esi
add esp, 0x305c
cmp ebp, esp
call fcn.0052354c
mov esp, ebp
pop ebp
ret 0x14