Function at 0x4c8f60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x577018]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], ecx
lea ebx, [edi + 0x214]
lea eax, [eax*4 + 4]
push eax
push ecx
push ebx
call fcn.005190f0
mov eax, dword [edi + 0x108]
lea esi, [edi + 0x108]
add esp, 0xc
lea ecx, [edi + 0x318]
mov dword [esp + 0x14], ecx
lea edx, [edi + 0x41c]
mov dword [esp + 0x1c], edx
test eax, eax
je 0x4c8ffa
lea eax, [eax*4 + 4]
push eax
push esi
push ecx
call fcn.005190f0
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
lea eax, [edi + 0x41c]
push esi
push eax
call fcn.005190f0
add esp, 0x18
lea ecx, [edi + 0x318]
lea edx, [edi + 0x41c]
jmp 0x4c9006
mov dword [ecx], 0
mov dword [edx], 0
lea eax, [edi + 0x520]
push eax
push edx
push ecx
push ebx
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4c9038
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
test eax, eax
je 0x4c90b8
xor edi, edi
test eax, eax
je 0x4c90b8
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x20c]
lea ebx, [eax + 0x20c]
add eax, 0x218
mov dword [esp + 0x10], eax
nop dword [eax]
mov eax, dword [eax]
mov ecx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004078d0
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0xd], 0
jne 0x4c909e
mov eax, dword [esp + 0x2c]
cmp eax, dword [ecx + 0x10]
jl 0x4c909e
cmp ecx, esi
je 0x4c90a0
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x4c90a0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov esi, dword [ebx]
mov ecx, dword [esp + 0xc]
inc edi
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp edi, dword [ecx + 0x214]
jb 0x4c9060
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4c9199
xor ebx, ebx
test eax, eax
je 0x4c9199
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x20c]
lea edi, [eax + 0x31c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], edi
nop dword [eax + eax]
mov ecx, dword [eax + 0x108]
xor edx, edx
mov esi, dword [edi]
mov dword [esp + 0x2c], esi
test ecx, ecx
je 0x4c9117
add eax, 0x10c
cmp dword [eax], esi
je 0x4c9201
inc edx
add eax, 4
cmp edx, ecx
jb 0x4c9107
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
je 0x4c9133
add ecx, 8
cmp dword [ecx], esi
je 0x4c9133
inc eax
add ecx, 4
cmp eax, edx
jb 0x4c9127
cmp eax, edx
jne 0x4c9147
cmp edx, 0x40
jae 0x4c9147
mov ecx, dword [esp + 0xc]
mov dword [ecx + eax*4 + 8], esi
inc dword [ecx + 4]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], esi
push eax
call fcn.004078d0
mov eax, dword [esp + 0x28]
cmp byte [eax + 0xd], 0
jne 0x4c9181
cmp esi, dword [eax + 0x10]
jl 0x4c9181
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
je 0x4c9181
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4c9181
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esp + 0x14]
inc ebx
add edi, 4
mov dword [esp + 0x30], edi
cmp ebx, dword [eax]
mov eax, dword [esp + 0xc]
jb 0x4c90f0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x4c934e
xor ebx, ebx
test eax, eax
je 0x4c934e
mov esi, dword [esp + 0xc]
lea eax, [esi + 0x20c]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x420]
mov dword [esp + 0x30], eax
nop dword [eax]
mov ecx, dword [esi + 0x108]
xor edx, edx
mov edi, dword [eax]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x4c9288
lea eax, [esi + 0x10c]
nop dword [eax]
cmp dword [eax], edi
je 0x4c9246
inc edx
add eax, 4
cmp edx, ecx
jb 0x4c91f0
jmp 0x4c9288
lea eax, [ecx - 1]
cmp edx, eax
jae 0x4c9234
mov esi, dword [esp + 0xc]
lea edi, [esi + 0x10c]
lea edi, [edi + edx*4]
mov eax, dword [edi + 4]
lea edi, [edi + 4]
mov dword [edi - 4], eax
inc edx
mov ecx, dword [esi + 0x108]
lea eax, [ecx - 1]
cmp edx, eax
jb 0x4c9215
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
lea eax, [ecx - 1]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x108], eax
jmp 0x4c911b
lea eax, [ecx - 1]
cmp edx, eax
jae 0x4c927f
mov edi, dword [esp + 0xc]
lea esi, [esi + edx*4]
add esi, 0x10c
nop word [eax + eax]
mov eax, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], eax
inc edx
mov ecx, dword [edi + 0x108]
lea eax, [ecx - 1]
cmp edx, eax
jb 0x4c9260
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
lea eax, [ecx - 1]
mov dword [esi + 0x108], eax
mov edx, dword [esi + 4]
xor eax, eax
test edx, edx
je 0x4c92d3
lea ecx, [esi + 8]
cmp dword [ecx], edi
je 0x4c92a2
inc eax
add ecx, 4
cmp eax, edx
jb 0x4c9294
jmp 0x4c92d3
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x4c92ca
mov edi, dword [esp + 0x18]
lea esi, [esi + eax*4]
add esi, 8
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
inc eax
mov edx, dword [edi]
lea ecx, [edx - 1]
cmp eax, ecx
jb 0x4c92b3
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx - 1]
mov dword [ecx], eax
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edi
push eax
mov ecx, esi
call fcn.004078d0
mov eax, dword [esp + 0x28]
cmp byte [eax + 0xd], 0
jne 0x4c9332
cmp edi, dword [eax + 0x10]
jl 0x4c9332
cmp eax, dword [esi]
je 0x4c9332
mov esi, dword [eax + 0x14]
test esi, esi
je 0x4c9332
sub esp, 0x18
mov ecx, esp
push 0x10
push 0x561830
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00408270
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [esp + 0x1c]
inc ebx
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0xc]
add eax, 4
mov dword [esp + 0x30], eax
cmp ebx, dword [ecx]
jb 0x4c91d0
mov ecx, dword [esp + 0x34]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret