Function at 0x4b1160
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, edx
mov dword [ebp - 0x340], ecx
xor edx, edx
mov dword [ebp - 0x328], eax
push ebx
mov dword [ebp - 0x330], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x32c], edx
push esi
push edi
test edx, edx
jl 0x4b11c9
jg 0x4b11ba
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x7fffffff
jb 0x4b11cc
xor edx, edx
mov ebx, bind
mov dword [ebp - 0x32c], edx
jmp 0x4b11cc
mov ebx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x4b1219
cmp eax, ecx
jne 0x4b1219
cmp dword [ebp + 8], ecx
jne 0x4b1219
test ebx, ebx
je 0x4b1206
jns 0x4b11ff
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x4b1263
jg 0x4b1223
test ebx, ebx
je 0x4b1263
mov dword [ebp - 0x330], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
mov dword [ebp - 0x33c], edi
sub esi, ecx
mov ecx, dword [ebp - 0x340]
imul eax, esi, 0x3e8
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x328]
xor esi, esi
mov dword [ebp - 0x21c], esi
cmp ecx, 0xffffffff
je 0x4b1287
mov esi, 1
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x110], ecx
or edx, 0xffffffff
mov edi, ecx
cmp ecx, edx
cmove edi, edx
mov edx, esi
mov ecx, esi
mov dword [ebp - 0x114], ecx
cmp eax, 0xffffffff
je 0x4b132d
mov ecx, dword [ebp - 0x328]
xor eax, eax
test esi, esi
je 0x4b12be
cmp dword [ebp + eax*4 - 0x218], ecx
je 0x4b12be
inc eax
cmp eax, esi
jb 0x4b12b0
cmp eax, esi
jne 0x4b12db
cmp esi, 0x40
jae 0x4b12db
mov dword [ebp + eax*4 - 0x218], ecx
mov esi, dword [ebp - 0x21c]
inc esi
mov dword [ebp - 0x21c], esi
xor eax, eax
test edx, edx
je 0x4b12ef
cmp dword [ebp + eax*4 - 0x110], ecx
je 0x4b12ef
inc eax
cmp eax, edx
jb 0x4b12e1
mov ecx, edx
mov dword [ebp - 0x114], ecx
cmp eax, edx
jne 0x4b1320
mov dword [ebp - 0x114], ecx
cmp edx, 0x40
jae 0x4b1320
mov ecx, dword [ebp - 0x328]
mov dword [ebp + eax*4 - 0x110], ecx
mov ecx, dword [ebp - 0x114]
inc ecx
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x328], edi
cmova edi, dword [ebp - 0x328]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x324], 0
cmp edx, 0xffffffff
je 0x4b137e
xor eax, eax
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x324], 1
test ecx, ecx
je 0x4b1363
cmp dword [ebp + eax*4 - 0x110], edx
je 0x4b1363
inc eax
cmp eax, ecx
jb 0x4b1355
cmp eax, ecx
jne 0x4b1379
cmp ecx, 0x40
jae 0x4b1379
mov dword [ebp + eax*4 - 0x110], edx
inc dword [ebp - 0x114]
cmp edx, edi
cmova edi, edx
mov ecx, dword [ebp - 0x32c]
test ecx, ecx
jg 0x4b139a
jl 0x4b138e
test ebx, ebx
jae 0x4b139a
mov dword [ebp - 0x334], 0
jmp 0x4b13a6
lea eax, [ebp - 0x348]
mov dword [ebp - 0x334], eax
lea eax, [edi + 1]
mov edi, dword [ebp - 0x330]
mov dword [ebp - 0x34c], eax
test ecx, ecx
jl 0x4b13ee
jg 0x4b13bf
test ebx, ebx
je 0x4b13ee
mov eax, 0x10624dd3
mov ecx, edi
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x348], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x344], eax
jmp 0x4b1400
mov eax, ebx
or eax, ecx
jne 0x4b1400
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], eax
push dword [ebp - 0x334]
xor ecx, ecx
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x324], ecx
push eax
lea eax, [ebp - 0x324]
cmove eax, ecx
test esi, esi
push eax
lea eax, [ebp - 0x21c]
cmove eax, ecx
push eax
push dword [ebp - 0x34c]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4b14df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b1462
cmp dword [0x7ccb04], 0
jne 0x4b11eb
cmp eax, 0x2714
jne 0x4b11eb
mov ecx, dword [ebp - 0x32c]
test ecx, ecx
jl 0x4b1472
jg 0x4b147d
test ebx, ebx
jne 0x4b147d
mov esi, dword [ebp - 0x21c]
jmp 0x4b13b5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
push 0
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
push 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
sub eax, dword [ebp - 0x338]
cdq
push edx
push eax
call fcn.00702460
mov ecx, dword [ebp - 0x33c]
sub ecx, edi
imul edi, ecx, 0x3e8
sub edi, eax
add edi, ebx
test edi, edi
jle 0x4b1206
mov esi, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x32c]
jmp 0x4b13b5
test eax, eax
js 0x4b11eb
je 0x4b1206
mov edi, dword [ebp - 0x340]
xor esi, esi
cmp edi, 0xffffffff
je 0x4b1527
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x114]
push eax
push edi
cmovne esi, ecx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4b1527
or esi, 4
mov ebx, dword [ebp - 0x328]
cmp ebx, 0xffffffff
je 0x4b155c
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4b1547
or esi, 8
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4b155c
or esi, 4
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x4b158e
lea eax, [ebp - 0x324]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4b1579
or esi, 2
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4b158e
or esi, 4
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret