Function at 0x4fae80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x5c81c0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], edi
call fcn.004fda70
mov ecx, esi
call fcn.004fe410
mov ecx, esi
call fcn.004fe910
mov ecx, esi
call fcn.004fdc70
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x88], 3
push ecx
mov dword [ebp - 0x84], edi
call fcn.005283b0
lea edx, [ebp - 0x78]
push edx
call fcn.005283b0
add esp, 8
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
cmp dword [esi + 0x38], edi
je 0x4faf5f
lea ecx, [esi + 0x48]
call fcn.004ce550
mov ecx, dword [esi + 0x210]
mov edx, dword [esi + 0x214]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], edi
push eax
push 0x1389
mov dword [eax], ecx
mov ecx, dword [esi + 0x218]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x21c]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
push 0x111
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004fd980
mov bl, al
test bl, bl
mov byte [ebp - 0x28], bl
je 0x4faf90
lea edx, [ebp - 0xa0]
push edx
call fcn.005283b0
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x88]
lea eax, [esi + 0x6a8]
push edx
lea ecx, [esi + 0x4a4]
push eax
lea edx, [esi + 0x2a0]
push ecx
push edx
push edi
call sub.WSOCK32.dll_select
mov edi, eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4fafd9
lea ecx, [esi + 0x48]
call fcn.004ce550
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
or eax, ecx
jne 0x4fb01e
lea eax, [ebp - 0x78]
push eax
call fcn.005283b0
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0xb8]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x4fb01e
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x4fb07d
test edi, edi
je 0x4fb07d
xor edi, edi
cmp edi, dword [esi + 0x200]
jge 0x4fb084
mov eax, edi
mov ecx, dword [esi + 0x29c]
shl eax, 6
sub eax, edi
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
shl eax, 4
add ecx, eax
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x4fb07a
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4fb075
lea ecx, [esi + 0x48]
call fcn.004ce550
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004f9580
inc edi
jmp 0x4fb029
mov ecx, esi
call fcn.004fba10
mov edx, dword [ebp - 0x28]
mov ecx, esi
push edx
push 0
call fcn.004fdd40
lea eax, [ebp - 0xac]
push eax
call fcn.005283b0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x78]
sub eax, ecx
mov edx, dword [ebp - 0x74]
and edx, 0xffff
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0xa8]
shl ecx, 3
sub ecx, edx
and eax, 0xffff
add ecx, eax
cmp ecx, 0xfa
jl 0x4fb18e
lea ecx, [ebp - 0x78]
push ecx
call fcn.005283b0
add esp, 4
xor edi, edi
cmp edi, dword [esi + 0x200]
jge 0x4fb18b
mov eax, edi
mov ecx, dword [esi + 0x29c]
shl eax, 6
sub eax, edi
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
shl eax, 4
add eax, ecx
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x4fb185
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
cmp dword [edx], 0
je 0x4fb185
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ebx, ecx
or ebx, edx
je 0x4fb185
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 0x44]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x58]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x6c]
mov edx, dword [ecx]
push eax
push 0x13ef
push 0x111
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
jmp 0x4fb0e9
mov bl, byte [ebp - 0x28]
test bl, bl
je 0x4fb3b3
mov ecx, dword [esi + 0x21c]
mov eax, dword [esi + 0x218]
test ecx, ecx
jl 0x4fb3b3
jg 0x4fb1b7
cmp eax, 0x400
jbe 0x4fb3b3
mov ecx, dword [0x5c7168]
mov ebx, dword [0x5c716c]
lea edx, [ebp - 0x94]
mov dword [ebp - 0x24], ecx
push edx
call fcn.005283b0
mov eax, dword [esi + 0x218]
mov edi, dword [ebp - 0x38]
mov ecx, dword [esi + 0x21c]
mov edx, dword [ebp - 0x34]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
js 0x4fb3b3
jg 0x4fb201
test eax, eax
jbe 0x4fb3b3
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0xa0]
sub eax, edx
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x90]
and ecx, 0xffff
lea eax, [eax + eax*4]
and edx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
add eax, edx
mov dword [ebp - 0x14], eax
jne 0x4fb243
mov dword [ebp - 0x14], 1
fild qword [ebp - 0x80]
fmul dword [0x571f50]
fidiv dword [ebp - 0x14]
call fcn.0052706c
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x4fb3b3
jg 0x4fb26b
cmp ecx, dword [ebp - 0x24]
jbe 0x4fb3b3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.005291e0
mov ecx, dword [ebp - 0x24]
push ebx
push ecx
push edx
push eax
call fcn.00528840
mov edi, eax
mov eax, dword [esi + 0x220]
cdq
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x24]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x1c], eax
call fcn.00528840
cmp dword [ebp - 0x18], edx
jg 0x4fb2c9
jl 0x4fb2b4
cmp dword [ebp - 0x1c], eax
jae 0x4fb2c9
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x4fb2f7
mov ecx, dword [ebp - 0x24]
push 0
push 9
push ebx
push ecx
call fcn.005291e0
push 0
push 0xa
push edx
push eax
call fcn.00528840
cmp dword [ebp - 0x18], edx
jg 0x4fb2f7
jl 0x4fb2ee
cmp dword [ebp - 0x1c], eax
jae 0x4fb2f7
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x4fb306
mov edi, 0x2ee0
jmp 0x4fb30e
test edi, edi
jle 0x4fb3b3
mov eax, dword [esi + 0x8ac]
cmp eax, 0xffffffff
je 0x4fb3ac
lea ecx, [esi + 0x2a0]
lea ebx, [esi + 0x6a8]
mov dword [esi + 0x4a4], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x2a4], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x4fb365
mov edx, dword [esi + 0x8ac]
mov dword [esi + eax*4 + 0x6ac], edx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x30], edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
sub edi, edx
lea edx, [ebp - 0x30]
push edx
push ebx
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x4a4]
push eax
push ecx
push 0
call sub.WSOCK32.dll_select
jmp 0x4fb3b3
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.004fba20
mov edi, eax
test edi, edi
jne 0x4fb3cc
mov ecx, esi
call fcn.004fb6c0
jmp 0x4faefc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4fb3f1
lea ecx, [esi + 0x48]
call fcn.004ce550
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x753c
je 0x4fb648
cmp edi, 0xffffffff
je 0x4fb648
mov eax, dword [esi + 0x21c]
mov ecx, dword [esi + 0x218]
mov edx, dword [0x5c81c4]
push eax
push ecx
lea eax, [ebp - 0x138]
push edx
push eax
call fcn.00527718
add esp, 0x10
lea ecx, [ebp - 0x138]
push ecx
mov ecx, esi
call fcn.004fda70
mov edi, dword [esi + 0x214]
mov edx, dword [esi + 0x210]
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
mov dword [ebp - 0x2c], edi
mov edi, edx
cmp eax, edi
jne 0x4fb466
mov ebx, dword [ebp - 0x2c]
mov edi, ecx
cmp edi, ebx
je 0x4fb58f
mov ebx, dword [esi + 0x214]
mov edi, edx
or edi, ebx
je 0x4fb58f
mov edi, dword [esi + 0x29c]
mov dword [ebp - 0x1c], edx
mov edx, ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x8bc]
mov ebx, edx
imul ebx, dword [edi + 0x2e74]
mov edi, ebx
mov ebx, eax
add edi, ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edi
mov edi, ecx
adc ebx, edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x24]
cmp ebx, edi
jne 0x4fb4c5
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
cmp ebx, edi
je 0x4fb58f
mov edi, dword [0x5c2a74]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x29c]
mov ebx, dword [esi + 0x210]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov edi, dword [ecx + 0x2e74]
mov ecx, dword [esi + 0x214]
push ecx
mov ecx, edi
imul ecx, edx
push ebx
xor ebx, ebx
add ecx, eax
mov eax, dword [ebp - 0x2c]
adc ebx, eax
mov eax, dword [ebp - 0x1c]
push ebx
push ecx
push edi
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
push eax
push str.Error_NMSD__ttd_I64d__ttsp_ld__mpln_ld__s1_I64d__fsize_I64d_n
push ecx
call fcn.0053afda
mov edx, dword [ebp - 0x14]
add esp, 0x28
mov ecx, esi
push edx
call fcn.004fdb90
mov eax, dword [esi + 0x21c]
mov edi, dword [esi + 0x214]
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x210]
cmp eax, edi
jl 0x4fb56f
jg 0x4fb54d
cmp ecx, edx
jbe 0x4fb56f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, 0x7570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp edi, dword [esi + 0x200]
jge 0x4fb635
mov eax, edi
mov edx, dword [esi + 0x29c]
shl eax, 6
sub eax, edi
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
shl ecx, 4
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x54]
test ecx, ecx
je 0x4fb62f
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx]
cmp dword [ecx], 0
je 0x4fb62f
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ebx, ecx
or ebx, edx
je 0x4fb62f
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x58]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x54], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x58], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x50], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [eax]
push 0x13ef
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
jmp 0x4fb591
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x21c]
mov eax, dword [esi + 0x218]
mov ecx, dword [0x5c81b8]
push edx
push eax
lea edx, [ebp - 0x138]
push ecx
push edx
call fcn.00527718
add esp, 0x10
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.004fda70
mov esi, dword [esi + 0x1d4]
test esi, esi
je 0x4fb692
cmp edi, 0x753c
mov eax, esi
je 0x4fb57e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret