Function at 0x40b960
Capabilities:
Check internet connectivity via wininet
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x518558
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004c82a3
push 0
push 0x20000
push 0
mov ecx, edi
mov dword [0x5504cc], edi
call fcn.004cf79e
push 0x52c3f4
mov ecx, edi
call fcn.004cf7ca
lea ebp, [edi + 0x264]
mov esi, ebp
call fcn.00495b90
lea esi, [edi + 0x26c]
call fcn.00495c90
mov eax, dword [edi + 0x20]
push 0xfffffffffffffffc
lea ebx, [edi + 0x4c4]
push eax
mov dword [ebx + 0x6c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebx + 0x70], eax
test eax, eax
je 0x40ba05
mov eax, dword [ebx + 0x6c]
push 0x4b68df
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebx + 0x6c]
push ebx
push 0xffffffffffffffeb
push ecx
mov dword [ebx + 0x70], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
mov ebx, 1
push str.http:__box64.yxdown.com_gamestart_yxgamestart.json
mov dword [edi + 0x53c], ebx
call fcn.00402480
push edi
call fcn.00419d20
push str.yxdownup.exe
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.00402970
add esp, 0xc
lea ecx, [edi + 0x278]
push eax
mov dword [esp + 0x40], 0
call fcn.00403060
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x52c484
call fcn.00402480
mov dword [esp + 0x40], ebx
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov ebx, esp
push eax
call fcn.00403680
add eax, 0x10
lea ecx, [esp + 0x28]
add esp, 4
mov dword [ebx], eax
or esi, 0xffffffff
push ecx
mov dword [esp + 0x48], esi
call fcn.00495d00
add esp, 0xc
lea ecx, [edi + 0x268]
push eax
mov dword [esp + 0x40], 2
call fcn.00403060
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x40baee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
push ebx
push 1
push str.http:__www.baidu.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
mov ecx, edi
mov dword [edi + 0x2c4], eax
call fcn.00412b70
cmp dword [edi + 0x2c4], ebx
je 0x40bb46
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.gameyxdown.dat
push ebp
push ecx
call fcn.00402970
add esp, 0xc
call fcn.004a1391
add esp, 4
cmp eax, ebx
je 0x40bb46
mov edx, dword [edi + 0x408]
cmp dword [edx - 0xc], ebx
je 0x40bb46
push edi
call fcn.004133a0
mov eax, edi
call fcn.004113d0
push str.gameyxdown.dat
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00402970
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0xc
push eax
push ebx
push 0x52c4c8
push 0x522e44
call esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.gameyxdown.dat
lea ecx, [esp + 0x20]
push ebp
push ecx
call fcn.00402970
mov eax, dword [eax]
add esp, 0xc
push eax
push ebx
push str.heigth
push 0x522e44
call esi
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bbdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x1e0], ebx
je 0x40bbef
cmp dword [edi + 0x1dc], ebx
jne 0x40bc5b
cmp esi, ebx
je 0x40bc09
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40bc09
mov dword [edi + 0x1e0], esi
mov dword [edi + 0x1dc], eax
jmp 0x40bc5b
mov esi, dword [edi + 0xd0]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40bc28
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 0xd0]
lea ecx, [esp + 0x18]
mov dword [edi + 0x1dc], eax
mov edx, dword [esi + 4]
push ecx
push edx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40bc51
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1e0], eax
cmp dword [edi + 0xd0], ebx
je 0x40bc84
mov ecx, dword [edi + 0x1e0]
mov edx, dword [edi + 0x1dc]
push 1
push ecx
push edx
push ebx
push ebx
mov ecx, edi
call fcn.004cf82c
push ebx
mov ecx, edi
call fcn.004cc1e1
mov esi, edi
call fcn.004114f0
push edi
call fcn.00418a60
push 0x1c
mov dword [edi + 0x260], ebx
call fcn.004c0124
add esp, 4
cmp eax, ebx
je 0x40bcc7
mov dword [eax], vtable.CWebCtrlInterFace.0
mov dword [eax + 4], vtable.CWebCtrlInterFace.1.0
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x18], 1
jmp 0x40bcc9
xor eax, eax
mov dword [edi + 0x260], eax
cmp eax, ebx
je 0x40bcdb
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, edi
call fcn.00411b50
lea ebx, [edi + 0x270]
push ebx
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.004028b0
add esp, 0xc
mov dword [esp + 0x3c], 3
cmp dword [edi + 0x284], 0
jne 0x40bd5d
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004a1391
add esp, 4
test eax, eax
je 0x40bd5d
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x40bd5d
mov eax, dword [esp + 0x14]
push 3
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00403680
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, edi
call fcn.00413f40
push 0
mov ecx, edi
call fcn.004cf86c
push 1
mov eax, edi
call fcn.00419b60
call fcn.0040be80
mov edx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1d4c0
push 0x3ec
push edx
call esi
mov eax, dword [edi + 0x20]
push 0
push 0xea60
push 0x3ed
push eax
call esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x48], 4
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x4c], 5
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x50], 6
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x522764
call fcn.00402480
mov byte [esp + 0x50], 7
mov edi, dword [edi + 0x2bc]
push ecx
sub edi, 0x10
mov dword [esp + 0x44], esp
mov esi, esp
push edi
call fcn.00403680
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.gg_gamepack_start_new_show
mov byte [esp + 0x5c], 8
call fcn.00402480
mov edi, 0x550b38
mov byte [esp + 0x58], 3
call fcn.004b9230
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret