Function at 0x4b00b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x320
mov eax, dword [0x55b098]
xor eax, esp
mov dword [esp + 0x31c], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x334]
mov dword [esp + 4], eax
test eax, eax
jl 0x4b00f7
jg 0x4b00ea
mov edx, dword [esp + 0x330]
cmp edx, 0x7fffffff
jb 0x4b00fe
xor eax, eax
mov edx, accept
mov dword [esp + 4], eax
jmp 0x4b00fe
mov edx, dword [esp + 0x330]
mov ecx, dword [esp + 0x324]
push ebx
mov ebx, dword [esp + 0x330]
push edi
mov edi, dword [esp + 0x330]
cmp ecx, 0xffffffff
jne 0x4b016d
cmp edi, 0xffffffff
jne 0x4b016d
cmp ebx, edi
jne 0x4b016d
test edx, edx
je 0x4b0154
jns 0x4b014d
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.004d7d33
add esp, 0x320
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.004d7d33
add esp, 0x320
ret
test eax, eax
jl 0x4b017b
jg 0x4b0177
test edx, edx
je 0x4b017b
mov dword [esp + 0x14], edx
push esi
xor esi, esi
mov dword [esp + 0x1c], esi
cmp ecx, 0xffffffff
je 0x4b019b
mov esi, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x228], ecx
push ebp
or ebp, 0xffffffff
mov eax, ecx
cmp ecx, ebp
cmove eax, ebp
mov ebp, esi
mov dword [esp + 0x10], eax
mov ecx, ebp
mov dword [esp + 0x228], ecx
cmp edi, 0xffffffff
je 0x4b0231
xor eax, eax
test esi, esi
je 0x4b01cb
cmp dword [esp + eax*4 + 0x24], edi
je 0x4b01cb
inc eax
cmp eax, esi
jb 0x4b01c0
cmp eax, esi
jne 0x4b01e1
cmp esi, 0x40
jae 0x4b01e1
mov dword [esp + eax*4 + 0x24], edi
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
xor eax, eax
test ebp, ebp
je 0x4b01f5
cmp dword [esp + eax*4 + 0x22c], edi
je 0x4b01f5
inc eax
cmp eax, ebp
jb 0x4b01e7
mov ecx, ebp
mov dword [esp + 0x228], ecx
cmp eax, ebp
jne 0x4b0224
mov dword [esp + 0x228], ecx
cmp ebp, 0x40
jae 0x4b0224
mov dword [esp + eax*4 + 0x22c], edi
mov ecx, dword [esp + 0x228]
inc ecx
mov dword [esp + 0x228], ecx
mov eax, dword [esp + 0x10]
cmp edi, eax
cmova eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x124], 0
cmp ebx, 0xffffffff
je 0x4b0292
xor eax, eax
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], 1
test ecx, ecx
je 0x4b026e
nop dword [eax]
cmp dword [esp + eax*4 + 0x22c], ebx
je 0x4b026e
inc eax
cmp eax, ecx
jb 0x4b0260
cmp eax, ecx
jne 0x4b0285
cmp ecx, 0x40
jae 0x4b0285
mov dword [esp + eax*4 + 0x22c], ebx
inc dword [esp + 0x228]
mov eax, dword [esp + 0x10]
cmp ebx, eax
cmova eax, ebx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x14]
test ebp, ebp
jg 0x4b02a4
jl 0x4b02a0
test edx, edx
jae 0x4b02a4
xor ecx, ecx
jmp 0x4b02ed
lea ecx, [esp + 0x14]
mov eax, ecx
test ebp, ebp
jl 0x4b02e1
jg 0x4b02b4
test edx, edx
je 0x4b02e1
mov ebp, dword [esp + 0x1c]
mov eax, 0x10624dd3
imul ebp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
imul eax, eax, 0x3e8
sub ebp, eax
imul eax, ebp, 0x3e8
mov dword [esp + 0x18], eax
jmp 0x4b02ed
or edx, ebp
jne 0x4b02ed
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
push ecx
xor ecx, ecx
lea eax, [esp + 0x22c]
cmp dword [esp + 0x128], ecx
push eax
lea eax, [esp + 0x12c]
cmove eax, ecx
xor edx, edx
test esi, esi
lea ecx, [esp + 0x28]
push eax
cmove ecx, edx
push ecx
mov ecx, dword [esp + 0x20]
inc ecx
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x4b032e
or eax, 0xffffffff
jmp 0x4b03cc
jne 0x4b0337
xor eax, eax
jmp 0x4b03cc
mov ebp, dword [esp + 0x334]
xor esi, esi
cmp ebp, 0xffffffff
je 0x4b036f
lea eax, [esp + 0x20]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x228]
push eax
push ebp
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b036f
or esi, 4
cmp edi, 0xffffffff
je 0x4b039b
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b0386
or esi, 8
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b039b
or esi, 4
cmp ebx, 0xffffffff
je 0x4b03ca
lea eax, [esp + 0x124]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b03b5
or esi, 2
lea eax, [esp + 0x228]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b03ca
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x32c]
pop ebp
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.004d7d33
add esp, 0x320
ret