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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9bb8
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push esi
push edi
mov eax, dword [0x4e7950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x78]
call fcn.00468c31
mov eax, dword [ebp - 0x78]
mov dword [0x4ed3fc], eax
push 0
push 0x20000
push 0
mov ecx, dword [ebp - 0x78]
call fcn.00470989
push 0x4cb238
mov ecx, dword [ebp - 0x78]
call fcn.004709b5
mov ecx, dword [ebp - 0x78]
add ecx, 0x264
push ecx
call fcn.0042a410
add esp, 4
mov edx, dword [ebp - 0x78]
add edx, 0x26c
push edx
call fcn.0042a4b0
add esp, 4
mov esi, dword [ebp - 0x78]
add esi, 0x4a4
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x20]
call fcn.004582c0
mov eax, dword [ebp - 0x78]
add eax, 0x4a4
mov ecx, 1
call fcn.00458000
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.http:__box64.9chapu.com_gamestart_yxgamestart.json
call fcn.00401e40
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
call fcn.0041c3b0
push 0x4cb244
mov ecx, dword [ebp - 0x78]
add ecx, 0x264
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00402370
add esp, 0xc
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x78]
add ecx, 0x278
call fcn.00401ec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408680
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4cb2c8
call fcn.00401e40
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x78]
add eax, 0x26c
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00401e20
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0042a4e0
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x268
call fcn.00401ec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00408680
push 0
push 1
push str.http:__www.baidu.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x2c8], eax
mov ecx, dword [ebp - 0x78]
call fcn.00414760
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x2c8], 0
je 0x40fa19
push ecx
mov eax, esp
mov dword [ebp - 0x34], esp
push 0x4cb30c
mov ecx, dword [ebp - 0x78]
add ecx, 0x264
push ecx
push eax
call fcn.00402370
add esp, 0xc
mov dword [ebp - 0x9c], eax
call fcn.0043ac10
add esp, 4
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x40fa19
mov ecx, dword [ebp - 0x78]
add ecx, 0x3e8
call fcn.004025b0
movzx edx, al
test edx, edx
jne 0x40fa19
mov ecx, dword [ebp - 0x78]
call fcn.00414dc0
mov ecx, dword [ebp - 0x78]
call fcn.00413010
lea ecx, [ebp - 0x14]
call fcn.00401e00
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x2bc]
push ecx
mov ecx, dword [ebp - 0x78]
add ecx, 0x7c
call fcn.004077a0
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00404820
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x14]
push eax
call fcn.00401e20
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004063e0
add esp, 8
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x2c0
call fcn.00401ec0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00408680
mov ecx, dword [ebp - 0x78]
add ecx, 0x2c0
push ecx
mov edx, esp
mov dword [ebp - 0x40], esp
push ecx
mov ecx, edx
call fcn.00401e20
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0x78]
call fcn.0041aaf0
push 0x4cb32c
mov eax, dword [ebp - 0x78]
add eax, 0x264
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00402370
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
call fcn.004077a0
push eax
push 0
push 0x4cb34c
push 0x4cb358
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x44]
call fcn.00408680
push 0x4cb364
mov edx, dword [ebp - 0x78]
add edx, 0x264
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00402370
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
call fcn.004077a0
push eax
push 0
push 0x4cb384
push 0x4cb394
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x48]
call fcn.00408680
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x1e0], 0
je 0x40fb7a
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x1dc], 0
jne 0x40fbce
cmp dword [ebp - 0x18], 0
je 0x40fb86
cmp dword [ebp - 0x10], 0
jne 0x40fbb6
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0xd0]
call fcn.0040dc80
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x1dc], eax
mov edx, dword [ebp - 0x78]
mov ecx, dword [edx + 0xd0]
call fcn.0040dcb0
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x1e0], eax
jmp 0x40fbce
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x1e0], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x1dc], edx
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0xd0], 0
je 0x40fc06
push 1
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x1e0]
push edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x1dc]
push ecx
push 0
push 0
mov ecx, dword [ebp - 0x78]
call fcn.00470a17
push 0
mov ecx, dword [ebp - 0x78]
call fcn.0046d3c7
mov ecx, dword [ebp - 0x78]
call fcn.004130d0
mov ecx, dword [ebp - 0x78]
call fcn.004198e0
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x260], 0
push 0x1c
call fcn.00461620
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x40fc48
push 1
mov ecx, dword [ebp - 0x50]
call fcn.0042b2b0
mov dword [ebp - 0xbc], eax
jmp 0x40fc52
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 0x260], edx
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x260], 0
je 0x40fc8d
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x260]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x260]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x78]
call fcn.004137a0
mov ecx, dword [ebp - 0x78]
add ecx, 0x270
push ecx
mov edx, dword [ebp - 0x78]
add edx, 0x264
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004022c0
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x284], 0
jne 0x40fd25
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00401e20
mov dword [ebp - 0xc0], eax
call fcn.0043ac10
add esp, 4
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x40fd25
mov ecx, dword [ebp - 0x78]
add ecx, 0x270
call fcn.004025b0
movzx eax, al
test eax, eax
jne 0x40fd25
push 3
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00401e20
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x78]
call fcn.004158e0
push 0
mov ecx, dword [ebp - 0x78]
call fcn.00470a57
push 5
push 1
mov ecx, dword [ebp - 0x78]
call fcn.0041c040
mov ecx, dword [ebp - 0x78]
call fcn.0040bed0
push 0
push 0x493e0
push 0x3ec
mov ecx, dword [ebp - 0x78]
call fcn.0040daf0
push 0
push 0xea60
push 0x3ed
mov ecx, dword [ebp - 0x78]
call fcn.0040daf0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x4cb3a0
call fcn.00401e40
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x4cb3a4
call fcn.00401e40
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0x4cb3a8
call fcn.00401e40
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], edx
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x4cb3ac
call fcn.00401e40
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x78]
add ecx, 0x2bc
push ecx
mov edx, esp
mov dword [ebp - 0x6c], esp
push ecx
mov ecx, edx
call fcn.00401e20
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
push str.gg_gamepack_start_new_show
call fcn.00401e40
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 5
mov edi, 0x4ed830
call fcn.0045bc80
mov dword [ebp - 0x74], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00408680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00408680
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret