Function at 0x571f90
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x659a58
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp + 0x28], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
wait
mov dword [ebp + 0x18], 3
mov dword [ebp + 0x1c], ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0061bba1
lea ecx, [ebp + 0x2c]
push ecx
call fcn.0061bba1
add esp, 8
cmp dword [esi + 0xf4], ebx
jne 0x571ffa
cmp dword [esi + 0x104], ebx
je 0x57200a
cmp dword [esi + 0x154], ebx
je 0x572011
cmp dword [esi + 0x158], ebx
je 0x572011
mov eax, 1
jmp 0x572013
xor eax, eax
mov dword [ebp + 0x44], eax
mov ecx, esi
call fcn.005ac0d0
mov ecx, esi
call fcn.005ac6d0
mov ecx, esi
call fcn.005ac810
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov ecx, esi
cmp dword [esi + 0x1c], ebx
je 0x572091
call fcn.00570e70
lea ecx, [esi + 0x28]
call fcn.00553780
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x28]
push edx
push 0x1471
push 0x111
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x7540
wait
jmp 0x57262a
call fcn.005abcc0
mov byte [ebp + 0x38], al
test al, al
je 0x5720bb
lea edx, [ebp + 0xc]
push edx
call fcn.0061bba1
add esp, 4
mov eax, dword [esi + 0x1c0]
mov dword [ebp + 0x48], eax
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x4c], ecx
lea edx, [ebp + 0x18]
push edx
lea eax, [esi + 0x658]
push eax
lea ecx, [esi + 0x454]
push ecx
lea edx, [esi + 0x250]
push edx
push ebx
call sub.WS2_32.dll_select
mov edi, eax
cmp dword [esi + 0x1c], ebx
je 0x5720fb
mov ecx, esi
call fcn.00570e70
lea ecx, [esi + 0x28]
call fcn.00553780
mov eax, 0x7540
wait
jmp 0x57262a
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
jne 0x57212e
lea eax, [ebp + 0x2c]
push eax
call fcn.0061bba1
add esp, 4
mov ecx, dword [ebp + 0x2c]
sub ecx, dword [ebp - 0x40]
cmp ecx, 0x12c
jle 0x57212e
mov eax, 0x7532
wait
jmp 0x57262a
cmp edi, 0xffffffff
je 0x57216a
cmp edi, ebx
je 0x57216a
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1a8]
jge 0x572197
mov edx, edi
imul edx, edx, 0x3a88
mov eax, dword [esi + 0x24c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x94], ebx
je 0x572167
cmp dword [esi + 0x1c], ebx
jne 0x5720e8
call fcn.0056e2f0
inc edi
jmp 0x572139
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1a8]
jge 0x572197
mov ecx, edi
imul ecx, ecx, 0x3a88
mov edx, dword [esi + 0x24c]
add ecx, edx
cmp dword [ecx + 0x94], ebx
je 0x572194
call fcn.00569a50
inc edi
jmp 0x57216c
mov eax, dword [ebp + 0x38]
push eax
push ebx
mov ecx, esi
call fcn.005ac8b0
lea ecx, [ebp - 0x34]
push ecx
call fcn.0061bba1
add esp, 4
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp + 0x2c]
imul edx, edx, 0x3e8
movzx eax, word [ebp + 0x30]
sub edx, eax
movzx ecx, word [ebp - 0x30]
add edx, ecx
cmp edx, 0xfa
jl 0x572208
lea edx, [ebp + 0x2c]
push edx
call fcn.0061bba1
add esp, 4
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1a8]
jge 0x572208
mov eax, edi
imul eax, eax, 0x3a88
mov ecx, dword [esi + 0x24c]
add ecx, eax
cmp dword [ecx + 0x94], ebx
je 0x572205
call fcn.005707f0
inc edi
jmp 0x5721dd
cmp dword [esi + 0x1c], ebx
jne 0x5720e1
cmp dword [ebp + 0x44], ebx
je 0x57228d
cmp dword [esi + 0x1bc], ebx
jg 0x572237
jl 0x572228
cmp dword [esi + 0x1b8], ebx
ja 0x572237
mov edx, dword [esi + 0x24c]
cmp dword [edx + 0x9c], 6
jne 0x57228d
cmp dword [esi + 0x154], ebx
je 0x572261
mov eax, dword [esi + 0x158]
cmp eax, ebx
je 0x572261
push ebx
mov ecx, dword [esi + 0x15c]
push ecx
push 0x1407
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x572278
mov ecx, esi
call fcn.00570e70
lea ecx, [esi + 0x28]
call fcn.00553780
xor eax, eax
wait
jmp 0x57262a
mov dword [ebp + 0x44], ebx
mov eax, dword [esi + 0x87c]
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x248], eax
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x342], 0
je 0x5722e6
mov ecx, 0x755280
call fcn.00570900
test al, al
je 0x5722e6
cmp dword [esi + 0x1bc], ebx
jl 0x5722e6
jg 0x5722b9
cmp dword [esi + 0x1b8], ebx
jbe 0x5722e6
push str.Stop_downloading__wait_while_the_Start_btn_will_be_pressed_n
mov ecx, esi
call fcn.005abf20
mov ecx, esi
call fcn.00570e70
lea ecx, [esi + 0x28]
call fcn.00553780
mov dword [esi + 0x1c], 1
mov eax, 0x7540
wait
jmp 0x57262a
cmp byte [ebp + 0x38], 0
je 0x5724d3
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x5724d3
jg 0x572310
cmp eax, 0x400
jbe 0x5724d3
mov ecx, esi
call fcn.005abc90
mov dword [ebp + 0x50], eax
mov ebx, edx
lea eax, [ebp]
push eax
call fcn.0061bba1
add esp, 4
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
sub eax, dword [ebp + 0x48]
sbb ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], ecx
js 0x5724d3
jg 0x572350
test eax, eax
jbe 0x5724d3
mov eax, dword [ebp]
sub eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
movzx ecx, word [ebp + 0x10]
sub eax, ecx
movzx edx, word [ebp + 4]
add eax, edx
mov dword [ebp + 0x64], eax
jne 0x572374
mov dword [ebp + 0x64], 1
fild qword [ebp + 0x20]
fmul qword [0x67e780]
fidiv dword [ebp + 0x64]
call fcn.0061a316
mov ecx, eax
mov edi, edx
cmp edi, ebx
jl 0x5724d3
jg 0x57239c
cmp ecx, dword [ebp + 0x50]
jbe 0x5724d3
sub ecx, dword [ebp + 0x50]
sbb edi, ebx
mov eax, dword [ebp + 0x64]
cdq
push edx
push eax
push edi
push ecx
call fcn.0061cd30
push ebx
mov ecx, dword [ebp + 0x50]
push ecx
push edx
push eax
call fcn.0061c060
mov edi, eax
mov dword [ebp + 0x60], edi
mov eax, dword [esi + 0x1c8]
cdq
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], edx
push 0
push 2
push ebx
mov edx, dword [ebp + 0x50]
push edx
call fcn.0061c060
cmp dword [ebp + 0x5c], edx
jg 0x5723f9
jl 0x5723e6
cmp dword [ebp + 0x58], eax
jae 0x5723f9
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x572425
push 0
push 9
push ebx
mov ecx, dword [ebp + 0x50]
push ecx
call fcn.0061cd30
push 0
push 0xa
push edx
push eax
call fcn.0061c060
cmp dword [ebp + 0x5c], edx
jg 0x57242a
jl 0x57241e
cmp dword [ebp + 0x58], eax
jae 0x57242a
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp + 0x60], edi
cmp edi, 0x2ee0
jle 0x57243c
mov edi, 0x2ee0
mov dword [ebp + 0x60], edi
jmp 0x572444
test edi, edi
jle 0x5724d3
mov eax, dword [esi + 0x880]
cmp eax, 0xffffffff
je 0x5724cc
lea ebx, [esi + 0x250]
mov dword [ebx], 0
mov dword [esi + 0x454], 0
lea ecx, [esi + 0x658]
mov dword [ecx], 0
mov dword [esi + 0x254], eax
inc dword [ebx]
mov eax, dword [ecx]
cmp eax, 0x80
jae 0x572491
mov edx, dword [esi + 0x880]
mov dword [esi + eax*4 + 0x65c], edx
inc dword [ecx]
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 0x3c], eax
imul eax, eax, 0x3e8
sub edi, eax
imul edi, edi, 0x3e8
mov dword [ebp + 0x40], edi
lea eax, [ebp + 0x3c]
push eax
push ecx
lea eax, [esi + 0x454]
push eax
push ebx
push 0
call sub.WS2_32.dll_select
jmp 0x5724d3
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00571970
mov edi, eax
mov ecx, esi
test edi, edi
je 0x5725fa
call fcn.00570e70
cmp dword [esi + 0x1c], 0
jne 0x5720e8
cmp edi, 0x753c
jne 0x572511
mov esi, dword [esi + 0x140]
test esi, esi
mov eax, esi
jne 0x57250b
mov eax, edi
wait
jmp 0x57262a
cmp edi, 0xffffffff
je 0x5725dc
lea ecx, [ebp + 0x68]
call fcn.00402500
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x1c4]
push ecx
mov edx, dword [esi + 0x1c0]
push edx
mov eax, dword [0x755b84]
push eax
lea ecx, [ebp + 0x68]
push ecx
call fcn.00402f70
add esp, 0x10
push 1
mov edx, dword [ebp + 0x68]
push edx
mov ecx, esi
call fcn.005ad0d0
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1a8]
jge 0x572581
mov eax, edi
imul eax, eax, 0x3a88
mov ecx, dword [esi + 0x24c]
add ecx, eax
cmp dword [ecx + 0x94], 0
je 0x57257e
call fcn.005707f0
inc edi
jmp 0x572555
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x40], eax
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x5725a9
mov edi, dword [ebp + 0x40]
mov ebx, ecx
cmp edi, ebx
je 0x5725e2
mov edi, eax
or edi, ecx
je 0x5725e2
mov esi, dword [ebp + 0x40]
cmp esi, ecx
jl 0x5725d0
jg 0x5725bc
cmp edx, eax
jbe 0x5725d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
mov eax, 0x7570
wait
jmp 0x57262a
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
or eax, 0xffffffff
wait
jmp 0x57262a
mov ecx, esi
call fcn.005ae420
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
xor eax, eax
wait
jmp 0x57262a
call fcn.00571050
mov ecx, esi
call fcn.005ae420
xor ebx, ebx
jmp 0x572031
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x70
mov esp, ebp
pop ebp
ret