Function at 0x48fa70
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x52e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x314], eax
test eax, eax
jl 0x48fab6
jg 0x48faa7
mov edx, dword [ebp + 0x14]
cmp edx, 0x7fffffff
jb 0x48fab9
xor eax, eax
mov edx, accept
mov dword [ebp - 0x314], eax
jmp 0x48fab9
mov edx, dword [ebp + 0x14]
cmp dword [ebp + 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
jne 0x48fae9
cmp edi, 0xffffffff
jne 0x48fae9
cmp ebx, edi
jne 0x48fae9
push edx
call fcn.0048fda0
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7060
mov esp, ebp
pop ebp
ret
test eax, eax
jl 0x48faf9
jg 0x48faf3
test edx, edx
je 0x48faf9
mov dword [ebp - 0x320], edx
or eax, 0xffffffff
xor ecx, ecx
push esi
mov dword [ebp - 0x318], eax
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x20c], esi
cmp eax, 0xffffffff
je 0x48fb40
mov esi, 1
mov dword [ebp - 0x208], eax
mov ecx, esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x318], eax
cmp edi, 0xffffffff
je 0x48fbbd
xor eax, eax
test esi, esi
je 0x48fb5e
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x208], edi
je 0x48fb5e
inc eax
cmp eax, esi
jb 0x48fb50
cmp eax, esi
jne 0x48fb7b
cmp esi, 0x40
jae 0x48fb7b
mov dword [ebp + eax*4 - 0x208], edi
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
xor eax, eax
test ecx, ecx
je 0x48fb8f
cmp dword [ebp + eax*4 - 0x104], edi
je 0x48fb8f
inc eax
cmp eax, ecx
jb 0x48fb81
cmp eax, ecx
jne 0x48fbac
cmp ecx, 0x40
jae 0x48fbac
mov dword [ebp + eax*4 - 0x104], edi
mov ecx, dword [ebp - 0x108]
inc ecx
mov dword [ebp - 0x108], ecx
mov eax, dword [ebp - 0x318]
cmp edi, eax
cmova eax, edi
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x310], 0
cmp ebx, 0xffffffff
je 0x48fc13
xor eax, eax
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], 1
test ecx, ecx
je 0x48fbf0
cmp dword [ebp + eax*4 - 0x104], ebx
je 0x48fbf0
inc eax
cmp eax, ecx
jb 0x48fbe2
cmp eax, ecx
jne 0x48fc06
cmp ecx, 0x40
jae 0x48fc06
mov dword [ebp + eax*4 - 0x104], ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x318]
cmp ebx, ecx
cmova ecx, ebx
jmp 0x48fc19
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x314]
test eax, eax
jg 0x48fc35
jl 0x48fc29
test edx, edx
jae 0x48fc35
mov dword [ebp - 0x314], 0
jmp 0x48fc44
lea ebx, [ebp - 0x31c]
mov dword [ebp - 0x314], ebx
mov ebx, dword [ebp + 0x10]
test eax, eax
jl 0x48fc85
jg 0x48fc4e
test edx, edx
je 0x48fc85
mov eax, 0x10624dd3
imul dword [ebp - 0x320]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x31c], eax
imul eax, eax, 0x3e8
sub edx, eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x318], eax
jmp 0x48fc95
or edx, eax
jne 0x48fc95
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x318], edx
push dword [ebp - 0x314]
xor edx, edx
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x310], edx
push eax
lea eax, [ebp - 0x310]
cmove eax, edx
test esi, esi
push eax
lea eax, [ebp - 0x20c]
cmove eax, edx
push eax
lea eax, [ecx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x48fce2
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7060
mov esp, ebp
pop ebp
ret
jne 0x48fcf7
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7060
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
je 0x48fd2e
lea ecx, [ebp - 0x20c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48fd2e
or esi, 4
cmp edi, 0xffffffff
je 0x48fd5b
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48fd47
or esi, 8
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48fd5b
or esi, 4
cmp ebx, 0xffffffff
je 0x48fd88
lea eax, [ebp - 0x310]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48fd74
or esi, 2
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48fd88
or esi, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004b7060
mov esp, ebp
pop ebp
ret