Function at 0x4db7a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5646c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x88], edi
call fcn.005283b0
lea ecx, [ebp - 0x74]
push ecx
call fcn.005283b0
mov eax, dword [esi + 0x8c]
add esp, 8
cmp eax, edi
jne 0x4db808
cmp dword [esi + 0x9c], edi
je 0x4db818
cmp dword [esi + 0x1e8], edi
je 0x4db821
cmp dword [esi + 0x1ec], edi
je 0x4db821
mov dword [ebp - 0x24], 1
jmp 0x4db824
mov dword [ebp - 0x24], edi
mov ecx, esi
call fcn.004fe410
mov ecx, esi
call fcn.004fe910
mov ecx, esi
call fcn.004fdc70
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov eax, dword [esi + 0x38]
mov ecx, esi
cmp eax, edi
je 0x4db8ab
call fcn.004dc4b0
lea ecx, [esi + 0x48]
call fcn.004ce550
mov edx, dword [esi + 0x210]
mov ecx, dword [esi + 0x214]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], edi
push eax
push 0x1389
mov dword [eax], edx
mov edx, dword [esi + 0x218]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x21c]
mov dword [esi + 0x28], edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x2c], ecx
push 0x111
mov eax, dword [edx]
push eax
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.004fd980
mov bl, al
test bl, bl
mov byte [ebp - 0x20], bl
je 0x4db8da
lea ecx, [ebp - 0xa4]
push ecx
call fcn.005283b0
mov edx, dword [esi + 0x218]
mov eax, dword [esi + 0x21c]
add esp, 4
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x8c]
lea edx, [esi + 0x6b0]
push ecx
lea eax, [esi + 0x4ac]
push edx
lea ecx, [esi + 0x2a8]
push eax
push ecx
push 0
call sub.WSOCK32.dll_select
mov edi, eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4db92b
mov ecx, esi
call fcn.004dc4b0
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 0x4db96f
lea edx, [ebp - 0x74]
push edx
call fcn.005283b0
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0xbc]
sub eax, edx
add esp, 4
cmp eax, 0x12c
jle 0x4db96f
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 0x4db9cd
test edi, edi
je 0x4db9cd
xor edi, edi
cmp edi, dword [esi + 0x200]
jge 0x4db9fd
lea ecx, [edi + edi*8]
lea edx, [edi + ecx*8]
mov ecx, dword [esi + 0x2a4]
lea eax, [edi + edx*4]
lea eax, [eax + eax*2]
shl eax, 4
add ecx, eax
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x4db9ca
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4db9c5
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.004d8670
inc edi
jmp 0x4db97a
xor edi, edi
cmp edi, dword [esi + 0x200]
jge 0x4db9fd
lea edx, [edi + edi*8]
lea eax, [edi + edx*8]
mov edx, dword [esi + 0x2a4]
lea eax, [edi + eax*4]
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, edx
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x4db9fa
call fcn.004d7f80
inc edi
jmp 0x4db9cf
mov eax, dword [ebp - 0x20]
mov ecx, esi
push eax
push 0
call fcn.004fdd40
lea ecx, [ebp - 0xb0]
push ecx
call fcn.005283b0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x74]
sub eax, ecx
mov ecx, dword [ebp - 0xac]
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 - 0x70]
shl edx, 3
and eax, 0xffff
sub edx, eax
add edx, ecx
cmp edx, 0xfa
jl 0x4dbb06
lea edx, [ebp - 0x74]
push edx
call fcn.005283b0
add esp, 4
xor edi, edi
cmp edi, dword [esi + 0x200]
jge 0x4dbb03
lea eax, [edi + edi*8]
lea ecx, [edi + eax*8]
lea eax, [edi + ecx*4]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x2a4]
shl edx, 4
add eax, edx
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x4dbafd
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx]
cmp dword [ecx], 0
je 0x4dbafd
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ebx, ecx
or ebx, edx
je 0x4dbafd
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x58]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [eax]
push 0x13ef
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
jmp 0x4dba62
mov bl, byte [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4dbb32
mov ecx, esi
call fcn.004dc4b0
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 [ebp - 0x24]
test eax, eax
je 0x4dbbc7
mov eax, dword [esi + 0x214]
test eax, eax
jg 0x4dbb5f
jl 0x4dbb53
mov eax, dword [esi + 0x210]
test eax, eax
ja 0x4dbb5f
mov edx, dword [esi + 0x2a4]
cmp dword [edx + 0x5c], 6
jne 0x4dbbc7
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x4dbb8c
mov eax, dword [esi + 0x1ec]
test eax, eax
je 0x4dbb8c
mov ecx, dword [esi + 0x1f0]
push 0
push ecx
push 0x1407
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4dbbae
mov ecx, esi
call fcn.004dc4b0
lea ecx, [esi + 0x48]
call fcn.004ce550
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 + 0x8d4]
mov dword [ebp - 0x24], 0
mov dword [esi + 0x1fc], eax
mov dword [esi + 0x2a0], eax
mov edx, dword [esi + 0xc]
mov al, byte [edx + 0x346]
test al, al
je 0x4dbc2b
mov al, byte [0x5c755c]
test al, al
jne 0x4dbc2b
mov eax, dword [esi + 0x214]
test eax, eax
jl 0x4dbc2b
jg 0x4dbbf3
mov eax, dword [esi + 0x210]
test eax, eax
jbe 0x4dbc2b
push str.Stop_downloading__wait_while_the_Start_btn_will_be_pressed_n
mov ecx, esi
call fcn.004fdb90
mov ecx, esi
call fcn.004dc4b0
lea ecx, [esi + 0x48]
call fcn.004ce550
mov dword [esi + 0x38], 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
test bl, bl
je 0x4dbe55
mov ecx, dword [esi + 0x21c]
mov eax, dword [esi + 0x218]
test ecx, ecx
jl 0x4dbe55
jg 0x4dbc54
cmp eax, 0x400
jbe 0x4dbe55
mov eax, dword [0x5c7168]
mov ebx, dword [0x5c716c]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x34], eax
push ecx
call fcn.005283b0
mov eax, dword [esi + 0x218]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x21c]
mov edx, dword [ebp - 0x28]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
js 0x4dbe55
jg 0x4dbc9d
test eax, eax
jbe 0x4dbe55
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0xa4]
sub eax, edx
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x94]
and edx, 0xffff
lea eax, [eax + eax*4]
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, edx
add eax, ecx
mov dword [ebp - 0x14], eax
jne 0x4dbcdf
mov dword [ebp - 0x14], 1
fild qword [ebp - 0x7c]
fmul dword [0x571f50]
fidiv dword [ebp - 0x14]
call fcn.0052706c
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x4dbe55
jg 0x4dbd07
cmp ecx, dword [ebp - 0x34]
jbe 0x4dbe55
mov edx, dword [ebp - 0x34]
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 - 0x34]
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 - 0x34]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x1c], eax
call fcn.00528840
cmp dword [ebp - 0x18], edx
jg 0x4dbd65
jl 0x4dbd50
cmp dword [ebp - 0x1c], eax
jae 0x4dbd65
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x4dbd93
mov ecx, dword [ebp - 0x34]
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 0x4dbd93
jl 0x4dbd8a
cmp dword [ebp - 0x1c], eax
jae 0x4dbd93
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x4dbda2
mov edi, 0x2ee0
jmp 0x4dbdaa
test edi, edi
jle 0x4dbe55
mov eax, dword [esi + 0x8d8]
cmp eax, 0xffffffff
je 0x4dbe4e
lea ecx, [esi + 0x2a8]
lea ebx, [esi + 0x6b0]
mov dword [esi + 0x4ac], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x2ac], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x4dbe01
mov edx, dword [esi + 0x8d8]
mov dword [esi + eax*4 + 0x6b4], 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 - 0x84], 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 - 0x84]
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 - 0x80], eax
lea eax, [esi + 0x4ac]
push eax
push ecx
push 0
call sub.WSOCK32.dll_select
jmp 0x4dbe55
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.004dc040
mov edi, eax
mov ecx, esi
test edi, edi
jne 0x4dbe77
call fcn.004dc620
mov ecx, esi
call fcn.004fe940
xor edi, edi
jmp 0x4db83f
call fcn.004dc4b0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4dbea1
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
jne 0x4dbecc
mov esi, dword [esi + 0x1d4]
test esi, esi
mov eax, esi
jne 0x4dc02d
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 0x4dc02a
mov eax, dword [esi + 0x21c]
mov ecx, dword [esi + 0x218]
mov edx, dword [0x5c81c4]
push eax
push ecx
lea eax, [ebp - 0x13c]
push edx
push eax
call fcn.00527718
add esp, 0x10
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, esi
call fcn.004fda70
xor edi, edi
cmp edi, dword [esi + 0x200]
jge 0x4dbfac
lea edx, [edi + edi*8]
lea eax, [edi + edx*8]
mov edx, dword [esi + 0x2a4]
lea eax, [edi + eax*4]
lea ecx, [eax + eax*2]
shl ecx, 4
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x54]
test ecx, ecx
je 0x4dbfa6
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx]
cmp dword [ecx], 0
je 0x4dbfa6
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ebx, ecx
or ebx, edx
je 0x4dbfa6
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x58]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [eax]
push 0x13ef
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
jmp 0x4dbf09
mov edx, dword [esi + 0x218]
mov eax, dword [esi + 0x21c]
mov ecx, dword [esi + 0x210]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x214]
cmp edx, ecx
mov dword [ebp - 0x1c], edx
jne 0x4dbfd5
mov edx, dword [ebp - 0x18]
cmp edx, eax
je 0x4dbffd
mov edx, ecx
or edx, eax
je 0x4dbffd
cmp dword [ebp - 0x18], eax
jl 0x4dc02a
jg 0x4dbfe7
cmp dword [ebp - 0x1c], ecx
jbe 0x4dc02a
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.004fe940
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