Function at 0x5787a0
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x661cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x758898]
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.00623d61
lea ecx, [ebp + 0x2c]
push ecx
call fcn.00623d61
add esp, 8
cmp dword [esi + 0xf4], ebx
jne 0x57880a
cmp dword [esi + 0x104], ebx
je 0x57881a
cmp dword [esi + 0x160], ebx
je 0x578821
cmp dword [esi + 0x164], ebx
je 0x578821
mov eax, 1
jmp 0x578823
xor eax, eax
mov dword [ebp + 0x44], eax
mov ecx, esi
call fcn.005b3fb0
mov ecx, esi
call fcn.005b4530
mov ecx, esi
call fcn.005b4670
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov ecx, esi
cmp dword [esi + 0x1c], ebx
je 0x5788a1
call fcn.005776c0
lea ecx, [esi + 0x28]
call fcn.00559aa0
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
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 0x578e3a
call fcn.005b3ba0
mov byte [ebp + 0x38], al
test al, al
je 0x5788cb
lea edx, [ebp + 0xc]
push edx
call fcn.00623d61
add esp, 4
mov eax, dword [esi + 0x1c8]
mov dword [ebp + 0x48], eax
mov ecx, dword [esi + 0x1cc]
mov dword [ebp + 0x4c], ecx
lea edx, [ebp + 0x18]
push edx
lea eax, [esi + 0x660]
push eax
lea ecx, [esi + 0x45c]
push ecx
lea edx, [esi + 0x258]
push edx
push ebx
call sub.WS2_32.dll_select
mov edi, eax
cmp dword [esi + 0x1c], ebx
je 0x57890b
mov ecx, esi
call fcn.005776c0
lea ecx, [esi + 0x28]
call fcn.00559aa0
mov eax, 0x7540
wait
jmp 0x578e3a
mov eax, dword [esi + 0x1c8]
or eax, dword [esi + 0x1cc]
jne 0x57893e
lea eax, [ebp + 0x2c]
push eax
call fcn.00623d61
add esp, 4
mov ecx, dword [ebp + 0x2c]
sub ecx, dword [ebp - 0x40]
cmp ecx, 0x12c
jle 0x57893e
mov eax, 0x7532
wait
jmp 0x578e3a
cmp edi, 0xffffffff
je 0x57897a
cmp edi, ebx
je 0x57897a
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x5789a7
mov edx, edi
imul edx, edx, 0x3a98
mov eax, dword [esi + 0x254]
lea ecx, [edx + eax]
cmp dword [ecx + 0x9c], ebx
je 0x578977
cmp dword [esi + 0x1c], ebx
jne 0x5788f8
call fcn.00574b10
inc edi
jmp 0x578949
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x5789a7
mov ecx, edi
imul ecx, ecx, 0x3a98
mov edx, dword [esi + 0x254]
add ecx, edx
cmp dword [ecx + 0x9c], ebx
je 0x5789a4
call fcn.00570270
inc edi
jmp 0x57897c
mov eax, dword [ebp + 0x38]
push eax
push ebx
mov ecx, esi
call fcn.005b4710
lea ecx, [ebp - 0x34]
push ecx
call fcn.00623d61
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 0x578a18
lea edx, [ebp + 0x2c]
push edx
call fcn.00623d61
add esp, 4
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x578a18
mov eax, edi
imul eax, eax, 0x3a98
mov ecx, dword [esi + 0x254]
add ecx, eax
cmp dword [ecx + 0x9c], ebx
je 0x578a15
call fcn.00577040
inc edi
jmp 0x5789ed
cmp dword [esi + 0x1c], ebx
jne 0x5788f1
cmp dword [ebp + 0x44], ebx
je 0x578a9d
cmp dword [esi + 0x1c4], ebx
jg 0x578a47
jl 0x578a38
cmp dword [esi + 0x1c0], ebx
ja 0x578a47
mov edx, dword [esi + 0x254]
cmp dword [edx + 0xa4], 6
jne 0x578a9d
cmp dword [esi + 0x160], ebx
je 0x578a71
mov eax, dword [esi + 0x164]
cmp eax, ebx
je 0x578a71
push ebx
mov ecx, dword [esi + 0x168]
push ecx
push 0x1407
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x578a88
mov ecx, esi
call fcn.005776c0
lea ecx, [esi + 0x28]
call fcn.00559aa0
xor eax, eax
wait
jmp 0x578e3a
mov dword [ebp + 0x44], ebx
mov eax, dword [esi + 0x884]
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x250], eax
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x356], 0
je 0x578af6
mov ecx, 0x75e2a4
call fcn.00577150
test al, al
je 0x578af6
cmp dword [esi + 0x1c4], ebx
jl 0x578af6
jg 0x578ac9
cmp dword [esi + 0x1c0], ebx
jbe 0x578af6
push str.Stop_downloading__wait_while_the_Start_btn_will_be_pressed_n
mov ecx, esi
call fcn.005b3e00
mov ecx, esi
call fcn.005776c0
lea ecx, [esi + 0x28]
call fcn.00559aa0
mov dword [esi + 0x1c], 1
mov eax, 0x7540
wait
jmp 0x578e3a
cmp byte [ebp + 0x38], 0
je 0x578ce3
mov eax, dword [esi + 0x1c8]
cmp dword [esi + 0x1cc], 0
jl 0x578ce3
jg 0x578b20
cmp eax, 0x400
jbe 0x578ce3
mov ecx, esi
call fcn.005b3b70
mov dword [ebp + 0x50], eax
mov ebx, edx
lea eax, [ebp]
push eax
call fcn.00623d61
add esp, 4
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
sub eax, dword [ebp + 0x48]
sbb ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], ecx
js 0x578ce3
jg 0x578b60
test eax, eax
jbe 0x578ce3
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 0x578b84
mov dword [ebp + 0x64], 1
fild qword [ebp + 0x20]
fmul qword [0x687b30]
fidiv dword [ebp + 0x64]
call fcn.006224d6
mov ecx, eax
mov edi, edx
cmp edi, ebx
jl 0x578ce3
jg 0x578bac
cmp ecx, dword [ebp + 0x50]
jbe 0x578ce3
sub ecx, dword [ebp + 0x50]
sbb edi, ebx
mov eax, dword [ebp + 0x64]
cdq
push edx
push eax
push edi
push ecx
call fcn.00624b80
push ebx
mov ecx, dword [ebp + 0x50]
push ecx
push edx
push eax
call fcn.00624220
mov edi, eax
mov dword [ebp + 0x60], edi
mov eax, dword [esi + 0x1d0]
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.00624220
cmp dword [ebp + 0x5c], edx
jg 0x578c09
jl 0x578bf6
cmp dword [ebp + 0x58], eax
jae 0x578c09
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x578c35
push 0
push 9
push ebx
mov ecx, dword [ebp + 0x50]
push ecx
call fcn.00624b80
push 0
push 0xa
push edx
push eax
call fcn.00624220
cmp dword [ebp + 0x5c], edx
jg 0x578c3a
jl 0x578c2e
cmp dword [ebp + 0x58], eax
jae 0x578c3a
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp + 0x60], edi
cmp edi, 0x2ee0
jle 0x578c4c
mov edi, 0x2ee0
mov dword [ebp + 0x60], edi
jmp 0x578c54
test edi, edi
jle 0x578ce3
mov eax, dword [esi + 0x888]
cmp eax, 0xffffffff
je 0x578cdc
lea ebx, [esi + 0x258]
mov dword [ebx], 0
mov dword [esi + 0x45c], 0
lea ecx, [esi + 0x660]
mov dword [ecx], 0
mov dword [esi + 0x25c], eax
inc dword [ebx]
mov eax, dword [ecx]
cmp eax, 0x80
jae 0x578ca1
mov edx, dword [esi + 0x888]
mov dword [esi + eax*4 + 0x664], 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 + 0x45c]
push eax
push ebx
push 0
call sub.WS2_32.dll_select
jmp 0x578ce3
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00578180
mov edi, eax
mov ecx, esi
test edi, edi
je 0x578e0a
call fcn.005776c0
cmp dword [esi + 0x1c], 0
jne 0x5788f8
cmp edi, 0x753c
jne 0x578d21
mov esi, dword [esi + 0x14c]
test esi, esi
mov eax, esi
jne 0x578d1b
mov eax, edi
wait
jmp 0x578e3a
cmp edi, 0xffffffff
je 0x578dec
lea ecx, [ebp + 0x68]
call fcn.00402510
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x1cc]
push ecx
mov edx, dword [esi + 0x1c8]
push edx
mov eax, dword [0x75ebbc]
push eax
lea ecx, [ebp + 0x68]
push ecx
call fcn.00402f80
add esp, 0x10
push 1
mov edx, dword [ebp + 0x68]
push edx
mov ecx, esi
call fcn.005b4f40
xor edi, edi
mov dword [ebp + 0x6c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x578d91
mov eax, edi
imul eax, eax, 0x3a98
mov ecx, dword [esi + 0x254]
add ecx, eax
cmp dword [ecx + 0x9c], 0
je 0x578d8e
call fcn.00577040
inc edi
jmp 0x578d65
mov edx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1cc]
mov dword [ebp + 0x40], eax
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
cmp edx, eax
jne 0x578db9
mov edi, dword [ebp + 0x40]
mov ebx, ecx
cmp edi, ebx
je 0x578df2
mov edi, eax
or edi, ecx
je 0x578df2
mov esi, dword [ebp + 0x40]
cmp esi, ecx
jl 0x578de0
jg 0x578dcc
cmp edx, eax
jbe 0x578de0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
mov eax, 0x7570
wait
jmp 0x578e3a
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
or eax, 0xffffffff
wait
jmp 0x578e3a
mov ecx, esi
call fcn.005b62e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
xor eax, eax
wait
jmp 0x578e3a
call fcn.005778a0
mov ecx, esi
call fcn.005b62e0
xor ebx, ebx
jmp 0x578841
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