Function at 0x41d930
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x230], ecx
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0x14], 0xffffffff
je 0x41d957
mov ecx, dword [ebp - 0x230]
cmp dword [ecx + 0x18], 0
jne 0x41d95e
xor eax, eax
jmp 0x41dc52
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x108], 0
push 0x100
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x210], 0
push 0x100
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xc8
mov edx, 1
test edx, edx
je 0x41dc4d
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x228], 0
jmp 0x41da1e
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
cmp ecx, dword [ebp - 0x108]
jae 0x41da48
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp + edx*4 - 0x104]
cmp ecx, dword [eax + 0x14]
jne 0x41da46
jmp 0x41da48
jmp 0x41da0f
mov edx, dword [ebp - 0x228]
cmp edx, dword [ebp - 0x108]
jne 0x41da84
cmp dword [ebp - 0x108], 0x40
jae 0x41da84
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x14]
mov dword [ebp + eax*4 - 0x104], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
jne 0x41da03
mov dword [ebp - 0x22c], 0
jmp 0x41daa7
mov edx, dword [ebp - 0x22c]
add edx, 1
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp - 0x210]
jae 0x41dad1
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + ecx*4 - 0x20c]
cmp eax, dword [edx + 0x14]
jne 0x41dacf
jmp 0x41dad1
jmp 0x41da98
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x210]
jne 0x41db0d
cmp dword [ebp - 0x210], 0x40
jae 0x41db0d
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x14]
mov dword [ebp + edx*4 - 0x20c], ecx
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
xor eax, eax
jne 0x41da8c
push 0x64
mov ecx, dword [ebp - 0x230]
call fcn.0041d8f0
test eax, eax
je 0x41db2b
jmp 0x41dc4d
lea ecx, [ebp - 0x220]
push ecx
push 0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x41db54
jmp 0x41d9e2
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x14]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41db84
mov ecx, dword [ebp - 0x230]
call fcn.0041e080
mov dword [ebp - 0x224], eax
jmp 0x41dc48
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x14]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41dc48
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x230]
cmp dword [ecx + 8], 0
jne 0x41dc09
mov edx, dword [ebp - 0x214]
cmp edx, dword [ebp - 0x218]
jb 0x41dbea
mov eax, dword [ebp - 0x214]
sub eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x1c]
imul edx, edx, 0x1e
imul edx, edx, 0x3e8
cmp eax, edx
jbe 0x41dc07
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x230]
call fcn.0041ddf0
mov dword [ebp - 0x224], eax
jmp 0x41dc48
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp - 0x218]
jb 0x41dc2b
mov edx, dword [ebp - 0x214]
sub edx, dword [ebp - 0x218]
cmp edx, 0x30d40
jbe 0x41dc48
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x230]
call fcn.0041dd30
mov dword [ebp - 0x224], eax
jmp 0x41d9e2
mov eax, 1
mov esp, ebp
pop ebp
ret