Function at 0x4b0830
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5732cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x110], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14dc], 0
jl 0x4b0913
cmp dword [ebp - 0x218], 0x40
jae 0x4b08a9
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14dc]
mov dword [ebp + ecx*4 - 0x214], eax
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
xor edx, edx
jne 0x4b087b
cmp dword [ebp - 0x110], 0x40
jae 0x4b08db
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14dc]
mov dword [ebp + eax*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x4b08ad
lea edx, [ebp - 0x224]
push edx
push 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14dc]
add eax, 1
push eax
call sub.WS2_32.dll_select
mov dword [ebp - 0x21c], eax
jmp 0x4b0a49
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14d8], 0
jl 0x4b0985
cmp dword [ebp - 0x218], 0x40
jae 0x4b094d
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14d8]
mov dword [ebp + edx*4 - 0x214], ecx
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
xor eax, eax
jne 0x4b091f
lea ecx, [ebp - 0x224]
push ecx
push 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14d8]
add edx, 1
push edx
call sub.WS2_32.dll_select
mov dword [ebp - 0x21c], eax
jmp 0x4b0a49
cmp dword [ebp - 0x110], 0x40
jae 0x4b09b3
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14e8]
mov dword [ebp + eax*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x4b0985
cmp dword [ebp - 0x218], 0x40
jae 0x4b09e5
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14ec]
mov dword [ebp + edx*4 - 0x214], ecx
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
xor eax, eax
jne 0x4b09b7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x14e8]
cmp eax, dword [edx + 0x14ec]
jle 0x4b0a0e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14e8]
mov dword [ebp - 0x228], edx
jmp 0x4b0a1d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14ec]
mov dword [ebp - 0x228], ecx
lea edx, [ebp - 0x224]
push edx
push 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x228]
add edx, 1
push edx
call sub.WS2_32.dll_select
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jle 0x4b0a59
xor eax, eax
jmp 0x4b0adc
cmp dword [ebp - 0x21c], 0
jge 0x4b0aca
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14d8], 0
jge 0x4b0a7a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14dc], 0
jl 0x4b0aca
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4b0aca
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [ebp + 8]
mov dword [edx + 0x4c72d8], eax
push 0x14
push str.select_failed_in_soap_poll__
mov eax, dword [ebp + 8]
push eax
call fcn.004b0700
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bb990
add esp, 0x10
mov edx, dword [ebp + 8]
mov dword [edx + 0x4c72d0], 0x14
mov eax, 0x14
jmp 0x4b0adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4c72d8], eax
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret