Function at 0x55c270
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x58], ebx
call fcn.005dfac7
lea ecx, [ebp - 0x44]
push ecx
call fcn.005dfac7
mov eax, dword [esi + 0xf4]
add esp, 8
cmp eax, ebx
jne 0x55c2d2
cmp dword [esi + 0x104], ebx
je 0x55c2e2
cmp dword [esi + 0x154], ebx
je 0x55c2eb
cmp dword [esi + 0x158], ebx
je 0x55c2eb
mov dword [ebp - 0x20], 1
jmp 0x55c2ee
mov dword [ebp - 0x20], ebx
mov ecx, esi
call fcn.005a0210
mov ecx, esi
call fcn.005a0c10
mov ecx, esi
call fcn.0059f980
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov eax, dword [esi + 0x1c]
mov ecx, esi
cmp eax, ebx
je 0x55c382
call fcn.0055cfc0
lea ecx, [esi + 0x28]
call fcn.00545ab0
mov edx, dword [esi + 0x1a8]
mov eax, dword [esi + 0x1ac]
mov ecx, dword [esi + 0x1b0]
mov dword [ebp - 0x8c], edx
mov edx, dword [esi + 0x1b4]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], ebx
mov edx, dword [ecx]
push eax
push 0x1471
push 0x111
push edx
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
call fcn.0059f540
test al, al
mov byte [ebp - 0x24], al
je 0x55c3ac
lea eax, [ebp - 0x68]
push eax
call fcn.005dfac7
mov ecx, dword [esi + 0x1b0]
mov edx, dword [esi + 0x1b4]
add esp, 4
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x5c]
lea ecx, [esi + 0x648]
push eax
lea edx, [esi + 0x444]
push ecx
lea eax, [esi + 0x240]
push edx
push eax
push ebx
call sub.WS2_32.dll_select
mov edi, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x55c3f9
mov ecx, esi
call fcn.0055cfc0
lea ecx, [esi + 0x28]
call fcn.00545ab0
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 + 0x1b0]
mov ecx, dword [esi + 0x1b4]
or eax, ecx
jne 0x55c43e
lea ecx, [ebp - 0x44]
push ecx
call fcn.005dfac7
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xa4]
sub edx, ecx
add esp, 4
cmp edx, 0x12c
jle 0x55c43e
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 0x55c4a3
cmp edi, ebx
je 0x55c4a3
xor edi, edi
cmp edi, dword [esi + 0x198]
jge 0x55c4d8
mov eax, edi
mov edx, dword [esi + 0x23c]
shl eax, 5
sub eax, edi
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, edx
cmp dword [ecx + 0x84], ebx
je 0x55c4a0
cmp dword [esi + 0x1c], ebx
je 0x55c49b
lea ecx, [esi + 0x28]
call fcn.00545ab0
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.005584a0
inc edi
jmp 0x55c449
xor edi, edi
cmp edi, dword [esi + 0x198]
jge 0x55c4d8
mov eax, edi
mov edx, dword [esi + 0x23c]
shl eax, 5
sub eax, edi
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, edx
cmp dword [ecx + 0x84], ebx
je 0x55c4d5
call fcn.00557c10
inc edi
jmp 0x55c4a5
mov eax, dword [ebp - 0x24]
mov ecx, esi
push eax
push ebx
call fcn.0059fa50
lea ecx, [ebp - 0x98]
push ecx
call fcn.005dfac7
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x44]
sub eax, ecx
mov ecx, dword [ebp - 0x94]
and ecx, 0xffff
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x40]
shl edx, 3
and eax, 0xffff
sub edx, eax
add edx, ecx
cmp edx, 0xfa
jl 0x55c5b5
lea edx, [ebp - 0x44]
push edx
call fcn.005dfac7
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x198]
jge 0x55c5b5
mov eax, ebx
mov edx, dword [esi + 0x23c]
shl eax, 5
sub eax, ebx
lea eax, [eax + eax*2]
lea eax, [ebx + eax*2]
lea ecx, [eax + eax*4]
shl ecx, 4
mov eax, dword [ecx + edx + 0x84]
lea edi, [ecx + edx]
test eax, eax
je 0x55c5b2
mov eax, dword [edi + 0xa0]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x55c5b2
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
or edx, eax
je 0x55c5b2
lea eax, [edi + 0x3e8]
mov ecx, edi
push eax
call fcn.0054b320
lea eax, [edi + 0x3e8]
push eax
mov eax, dword [edi + 0xa0]
push 0x13ef
push 0x111
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x55c53c
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x55c5e1
mov ecx, esi
call fcn.0055cfc0
lea ecx, [esi + 0x28]
call fcn.00545ab0
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 [ebp - 0x20]
test eax, eax
je 0x55c679
mov eax, dword [esi + 0x1ac]
test eax, eax
jg 0x55c611
jl 0x55c602
mov eax, dword [esi + 0x1a8]
test eax, eax
ja 0x55c611
mov eax, dword [esi + 0x23c]
cmp dword [eax + 0x8c], 6
jne 0x55c679
mov eax, dword [esi + 0x154]
test eax, eax
je 0x55c63e
mov eax, dword [esi + 0x158]
test eax, eax
je 0x55c63e
mov ecx, dword [esi + 0x15c]
push 0
push ecx
push 0x1407
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x55c660
mov ecx, esi
call fcn.0055cfc0
lea ecx, [esi + 0x28]
call fcn.00545ab0
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 eax, dword [esi + 0x86c]
mov dword [ebp - 0x20], 0
mov dword [esi + 0x194], eax
mov dword [esi + 0x238], eax
mov edx, dword [esi + 0xc]
mov al, byte [edx + 0x31a]
test al, al
je 0x55c6dd
mov al, byte [0x6ec894]
test al, al
jne 0x55c6dd
mov eax, dword [esi + 0x1ac]
test eax, eax
jl 0x55c6dd
jg 0x55c6a5
mov eax, dword [esi + 0x1a8]
test eax, eax
jbe 0x55c6dd
push 0x6dbf00
mov ecx, esi
call fcn.0059f800
mov ecx, esi
call fcn.0055cfc0
lea ecx, [esi + 0x28]
call fcn.00545ab0
mov dword [esi + 0x1c], 1
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 al, byte [ebp - 0x24]
test al, al
je 0x55c8f3
mov ecx, dword [esi + 0x1b4]
mov eax, dword [esi + 0x1b0]
test ecx, ecx
jl 0x55c8f3
jg 0x55c709
cmp eax, 0x400
jbe 0x55c8f3
mov ecx, esi
call fcn.0059f500
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x74]
push eax
mov ebx, edx
call fcn.005dfac7
mov eax, dword [esi + 0x1b0]
mov edi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x1b4]
mov edx, dword [ebp - 0x30]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
js 0x55c8f3
jg 0x55c74d
test eax, eax
jbe 0x55c8f3
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x68]
sub eax, edx
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x70]
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 - 0x1c], eax
jne 0x55c783
mov dword [ebp - 0x1c], 1
fild qword [ebp - 0x4c]
fmul dword [0x6373c8]
fidiv dword [ebp - 0x1c]
call fcn.005de5f4
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x55c8f3
jg 0x55c7ab
cmp ecx, dword [ebp - 0x2c]
jbe 0x55c8f3
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.005e09d0
mov ecx, dword [ebp - 0x2c]
push ebx
push ecx
push edx
push eax
call fcn.005dffe0
mov edi, eax
mov eax, dword [esi + 0x1b8]
cdq
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x2c]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x18], eax
call fcn.005dffe0
cmp dword [ebp - 0x14], edx
jg 0x55c809
jl 0x55c7f4
cmp dword [ebp - 0x18], eax
jae 0x55c809
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x55c837
mov ecx, dword [ebp - 0x2c]
push 0
push 9
push ebx
push ecx
call fcn.005e09d0
push 0
push 0xa
push edx
push eax
call fcn.005dffe0
cmp dword [ebp - 0x14], edx
jg 0x55c837
jl 0x55c82e
cmp dword [ebp - 0x18], eax
jae 0x55c837
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x55c846
mov edi, 0x2ee0
jmp 0x55c84e
test edi, edi
jle 0x55c8f3
mov eax, dword [esi + 0x870]
cmp eax, 0xffffffff
je 0x55c8ec
lea ecx, [esi + 0x240]
lea ebx, [esi + 0x648]
mov dword [esi + 0x444], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x244], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x55c8a5
mov edx, dword [esi + 0x870]
mov dword [esi + eax*4 + 0x64c], 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 - 0x54], 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 - 0x54]
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 - 0x50], eax
lea eax, [esi + 0x444]
push eax
push ecx
push 0
call sub.WS2_32.dll_select
jmp 0x55c8f3
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0055cac0
mov edi, eax
mov ecx, esi
test edi, edi
jne 0x55c915
call fcn.0055d130
mov ecx, esi
call fcn.005a0c40
xor ebx, ebx
jmp 0x55c309
call fcn.0055cfc0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x55c93f
lea ecx, [esi + 0x28]
call fcn.00545ab0
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
jne 0x55c96a
mov esi, dword [esi + 0x140]
test esi, esi
mov eax, esi
jne 0x55caa3
mov eax, edi
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 0x55caa0
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0x1b0]
mov edx, dword [0x6ed888]
push eax
push ecx
lea eax, [ebp - 0x124]
push edx
push eax
call fcn.005deb38
add esp, 0x10
lea ecx, [ebp - 0x124]
push 1
push ecx
mov ecx, esi
call fcn.0059f6b0
xor ebx, ebx
cmp ebx, dword [esi + 0x198]
jge 0x55ca22
mov eax, ebx
mov ecx, dword [esi + 0x23c]
shl eax, 5
sub eax, ebx
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
lea eax, [eax + eax*4]
shl eax, 4
lea edi, [eax + ecx]
mov eax, dword [eax + ecx + 0x84]
test eax, eax
je 0x55ca1f
mov edx, dword [edi + 0xa0]
mov eax, dword [edx]
cmp dword [eax], 0
je 0x55ca1f
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
or ecx, eax
je 0x55ca1f
lea eax, [edi + 0x3e8]
mov ecx, edi
push eax
call fcn.0054b320
mov edx, dword [edi + 0xa0]
lea eax, [edi + 0x3e8]
push eax
push 0x13ef
mov eax, dword [edx]
push 0x111
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x55c9a9
mov edx, dword [esi + 0x1b0]
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0x1a8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1ac]
cmp edx, ecx
mov dword [ebp - 0x18], edx
jne 0x55ca4b
mov edx, dword [ebp - 0x14]
cmp edx, eax
je 0x55ca73
mov edx, ecx
or edx, eax
je 0x55ca73
cmp dword [ebp - 0x14], eax
jl 0x55caa0
jg 0x55ca5d
cmp dword [ebp - 0x18], ecx
jbe 0x55caa0
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
mov ecx, esi
call fcn.005a0c40
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
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret