Function at 0x4af9fe
Capabilities:
Read .ini file

Disassembly:
push 0x764
mov eax, 0x504b48
call fcn.004e6cea
call fcn.00433846
test al, al
jne 0x4afcd5
mov eax, dword [0x548750]
mov dword [ebp - 0x758], eax
push str.Channel.ini
push 0x54e030
lea eax, [ebp - 0x758]
xor ebx, ebx
push 0x511e14
push eax
mov dword [ebp - 4], ebx
call fcn.0040306c
mov eax, dword [0x548750]
add esp, 0x10
mov dword [ebp - 0x754], eax
mov esi, 0x104
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x754]
call fcn.00402b60
push dword [ebp - 0x758]
push esi
push eax
push 0x512700
push str.oldversion
push 0x525944
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
lea ecx, [ebp - 0x754]
call fcn.00402d0c
mov eax, dword [ebp - 0x754]
lea ecx, [ebp - 0x754]
cmp dword [eax - 8], ebx
jle 0x4afaa9
push 0x512110
jmp 0x4afaae
push 0x513308
call fcn.004028f2
push esi
lea eax, [ebp - 0x720]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x720]
lea ecx, [ebp - 0x764]
call fcn.004b065b
push ebx
call fcn.004dcfa8
pop ecx
mov ecx, dword [0x548750]
mov esi, eax
mov dword [ebp - 0x76c], esi
mov dword [ebp - 0x768], ecx
lea ecx, [ebp - 0x760]
mov byte [ebp - 4], 3
call fcn.00435775
push str.DQJlHJZ1qvaAGvsl4efbGDYQ4lhWTF45
push esi
mov byte [ebp - 4], 4
mov edi, 0x54d9b8
push dword [ebp - 0x754]
push dword [ebp - 0x764]
push dword [eax]
lea eax, [ebp - 0x768]
push edi
push str._s_s_s_s_ld_s
push eax
call fcn.0040306c
add esp, 0x20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x760]
call fcn.00403080
push 0x3ff
lea eax, [ebp - 0x517]
mov byte [ebp - 0x518], bl
push ebx
push eax
call fcn.004deff0
mov eax, dword [ebp - 0x768]
lea ecx, [ebp - 0x518]
add esp, 0xc
push ebx
push ebx
push 0x400
push ecx
push dword [eax - 8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x103
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], bl
push ebx
push eax
call fcn.004deff0
lea edx, [ebp - 0x518]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4afb9d
lea eax, [ebp - 0x118]
sub edx, ecx
push eax
lea ecx, [ebp - 0x518]
call fcn.00404e74
mov eax, dword [0x548750]
pop ecx
mov dword [ebp - 0x760], eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 5
push eax
call fcn.004da545
mov dword [ebp - 0x770], eax
pop ecx
test eax, eax
je 0x4afbf8
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4afbe4
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4afbfc
mov esi, ebx
jmp 0x4afc16
lea eax, [esi + esi]
call fcn.004e37c0
mov edx, dword [ebp - 0x770]
mov ecx, esp
push 3
push esi
call fcn.00404d3f
mov esi, eax
lea ecx, [ebp - 0x75c]
call fcn.00435775
push esi
push dword [ebp - 0x76c]
mov byte [ebp - 4], 6
push dword [ebp - 0x754]
push dword [ebp - 0x764]
push dword [eax]
lea eax, [ebp - 0x760]
push edi
push str.http:__cusbox.6wan.com_Home_Count_install_channel_suid_sversion_sold_version_stime_ldsign_s
push eax
call fcn.0040306c
add esp, 0x20
lea ecx, [ebp - 0x75c]
call fcn.00403080
mov dword [ebp - 0x724], 0xf
mov dword [ebp - 0x728], ebx
mov byte [ebp - 0x738], bl
mov byte [ebp - 4], 7
lea edx, [ebp - 0x738]
mov ecx, dword [ebp - 0x760]
push 0x7530
call fcn.00413cb2
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x738]
call fcn.00406bf3
lea ecx, [ebp - 0x760]
call fcn.00403080
lea ecx, [ebp - 0x768]
call fcn.00403080
lea ecx, [ebp - 0x764]
call fcn.00403080
lea ecx, [ebp - 0x754]
call fcn.00403080
lea ecx, [ebp - 0x758]
call fcn.00403080
jmp 0x4aff2b
xor ebx, ebx
lea ecx, [ebp - 0x730]
push ebx
call fcn.004c0230
lea eax, [ebp - 0x730]
mov dword [ebp - 4], 8
push eax
mov edx, str.Install
mov ecx, str.doc_type
call fcn.004117dc
pop ecx
mov edi, 0x54d9b8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4afd0b
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4afd29
mov eax, ebx
jmp 0x4afd3e
add esi, esi
mov eax, esi
call fcn.004e37c0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.00405007
lea ecx, [ebp - 0x730]
mov edx, eax
push ecx
mov ecx, str.channel
call fcn.004117dc
pop ecx
lea ecx, [ebp - 0x75c]
call fcn.00435775
mov byte [ebp - 4], 9
mov edi, dword [eax]
test edi, edi
je 0x4afd86
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4afd6c
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4afd8a
mov eax, ebx
jmp 0x4afd9f
add esi, esi
mov eax, esi
call fcn.004e37c0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.00405007
lea ecx, [ebp - 0x730]
mov edx, eax
push ecx
mov ecx, 0x52f534
call fcn.004117dc
pop ecx
lea ecx, [ebp - 0x75c]
call fcn.00403080
mov eax, dword [0x548750]
mov dword [ebp - 0x758], eax
push str.Channel.ini
push 0x54e030
lea eax, [ebp - 0x758]
mov byte [ebp - 4], 0xa
push 0x511e14
push eax
call fcn.0040306c
mov eax, dword [0x548750]
add esp, 0x10
mov dword [ebp - 0x754], eax
mov esi, 0x104
mov byte [ebp - 4], 0xb
push esi
lea ecx, [ebp - 0x754]
call fcn.00402b60
push dword [ebp - 0x758]
push esi
push eax
push 0x512700
push str.oldversion
push 0x525944
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
lea ecx, [ebp - 0x754]
call fcn.00402d0c
mov esi, dword [ebp - 0x754]
mov eax, dword [esi - 8]
cmp eax, 2
jle 0x4afe7b
dec eax
lea ecx, [ebp - 0x754]
push eax
lea eax, [ebp - 0x75c]
push eax
call fcn.0040e56e
push eax
lea ecx, [ebp - 0x754]
mov byte [ebp - 4], 0xc
call fcn.00402aef
lea ecx, [ebp - 0x75c]
mov byte [ebp - 4], 0xb
call fcn.00403080
mov esi, dword [ebp - 0x754]
test esi, esi
je 0x4afe9e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4afe84
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x4afea2
mov eax, ebx
jmp 0x4afeb7
add edi, edi
mov eax, edi
call fcn.004e37c0
mov ecx, esp
mov edx, esi
push 3
push edi
call fcn.00405007
lea ecx, [ebp - 0x730]
mov edx, eax
push ecx
mov ecx, str.old_version
call fcn.004117dc
pop ecx
lea edx, [ebp - 0x730]
lea ecx, [ebp - 0x750]
call fcn.0041183f
cmp dword [ebp - 0x73c], 0x10
lea eax, [ebp - 0x750]
cmovae eax, dword [ebp - 0x750]
push eax
call dword [sym.imp.Http.dll_PostDocs]
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x750]
call fcn.00406bf3
lea ecx, [ebp - 0x754]
call fcn.00403080
lea ecx, [ebp - 0x758]
call fcn.00403080
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.004c0360
lea esp, [ebp - 0x780]
call fcn.004e6c99
ret