Function at 0x40dc10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x47c894]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x518], 0xff
mov byte [ebp - 0x517], 0xfd
mov byte [ebp - 0x516], 3
mov byte [ebp - 0x514], 0xff
mov byte [ebp - 0x513], 0xfd
mov byte [ebp - 0x512], 0x4d
push 3
lea eax, [ebp - 0x514]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040db60
add esp, 0xc
push 3
lea edx, [ebp - 0x518]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040db60
add esp, 0xc
mov dword [ebp - 0x50c], 0
jmp 0x40dc92
mov ecx, dword [ebp - 0x50c]
add ecx, 1
mov dword [ebp - 0x50c], ecx
mov edx, dword [ebp - 0x50c]
cmp edx, dword [ebp + 0xc]
jge 0x40dcd2
cmp dword [ebp - 0x50c], 0
jle 0x40dcb7
push 0x47bf7c
mov eax, dword [ebp + 8]
push eax
call fcn.0040db10
add esp, 8
mov ecx, dword [ebp - 0x50c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040db10
add esp, 8
jmp 0x40dc83
push 0x47bf80
mov edx, dword [ebp + 8]
push edx
call fcn.0040db10
add esp, 8
mov eax, 1
test eax, eax
je 0x40deca
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x510], 0
jmp 0x40dd15
mov ecx, dword [ebp - 0x510]
add ecx, 1
mov dword [ebp - 0x510], ecx
mov edx, dword [ebp - 0x510]
cmp edx, dword [ebp - 0x508]
jae 0x40dd39
mov eax, dword [ebp - 0x510]
mov ecx, dword [ebp + eax*4 - 0x504]
cmp ecx, dword [ebp + 8]
jne 0x40dd37
jmp 0x40dd39
jmp 0x40dd06
mov edx, dword [ebp - 0x510]
cmp edx, dword [ebp - 0x508]
jne 0x40dd6f
cmp dword [ebp - 0x508], 0x40
jae 0x40dd6f
mov eax, dword [ebp - 0x510]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x504], ecx
mov edx, dword [ebp - 0x508]
add edx, 1
mov dword [ebp - 0x508], edx
xor eax, eax
jne 0x40dcfa
mov dword [ebp - 0x524], 1
mov dword [ebp - 0x520], 0
lea ecx, [ebp - 0x524]
push ecx
push 0
push 0
lea edx, [ebp - 0x508]
push edx
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jg 0x40ddba
jmp 0x40deca
lea ecx, [ebp - 0x508]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40dec5
push 0x400
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x47dcb8]
push edx
call fcn.00402bf0
add esp, 0x10
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 0
jg 0x40de05
jmp 0x40deca
mov dword [ebp - 0x50c], 0
jmp 0x40de20
mov eax, dword [ebp - 0x50c]
add eax, 1
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x50c]
cmp ecx, dword [ebp - 0x51c]
jge 0x40dec5
mov edx, dword [ebp - 0x50c]
movzx eax, byte [ebp + edx - 0x404]
cmp eax, 0xff
jne 0x40de5a
mov ecx, dword [ebp - 0x50c]
add ecx, 2
mov dword [ebp - 0x50c], ecx
jmp 0x40de11
mov edx, dword [ebp - 0x50c]
movsx eax, byte [ebp + edx - 0x404]
cmp eax, 0x3d
jne 0x40de9e
push 0x47bf84
call fcn.00434c00
add esp, 4
push eax
push str._b_MUDFISH_v__r_n
mov ecx, dword [ebp - 0x50c]
lea edx, [ebp + ecx - 0x404]
push edx
call fcn.00434c90
add esp, 0xc
test eax, eax
jne 0x40de9e
jmp 0x40deca
push 1
call fcn.0041e0b2
add esp, 4
push eax
mov eax, dword [ebp - 0x50c]
movsx ecx, byte [ebp + eax - 0x404]
push ecx
call fcn.0044669c
add esp, 8
jmp 0x40de11
jmp 0x40dce3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee13
mov esp, ebp
pop ebp
ret