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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538e78
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push esi
push edi
mov eax, dword [0x56d940]
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.004e9741
mov eax, dword [ebp - 0x78]
mov dword [0x57a23c], eax
push 0
push 0x20000
push 0
mov ecx, dword [ebp - 0x78]
call fcn.004f0c1a
push 0x54f028
mov ecx, dword [ebp - 0x78]
call fcn.004f0c46
mov ecx, dword [ebp - 0x78]
add ecx, 0x264
push ecx
call fcn.004b1ba0
add esp, 4
mov edx, dword [ebp - 0x78]
add edx, 0x26c
push edx
call fcn.004b1c40
add esp, 4
mov esi, dword [ebp - 0x78]
add esi, 0x4a0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x20]
call fcn.004d9a10
mov eax, dword [ebp - 0x78]
add eax, 0x4a0
mov ecx, 1
call fcn.004c34c0
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.http:__box64.9chapu.com_gamestart_yxgamestart.json
call fcn.00402c50
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
call fcn.0041f940
push 0x54f034
mov ecx, dword [ebp - 0x78]
add ecx, 0x264
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004031b0
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.00402cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402cd0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x54f0b8
call fcn.00402c50
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.00402c30
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.004b1c70
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.00402cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402cd0
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.00417cf0
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x2c8], 0
je 0x413d79
push ecx
mov eax, esp
mov dword [ebp - 0x34], esp
push 0x54f0fc
mov ecx, dword [ebp - 0x78]
add ecx, 0x264
push ecx
push eax
call fcn.004031b0
add esp, 0xc
mov dword [ebp - 0x9c], eax
call fcn.004be100
add esp, 4
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x413d79
mov ecx, dword [ebp - 0x78]
add ecx, 0x3e4
call fcn.00403460
movzx edx, al
test edx, edx
jne 0x413d79
mov ecx, dword [ebp - 0x78]
call fcn.00418350
mov ecx, dword [ebp - 0x78]
call fcn.004165a0
lea ecx, [ebp - 0x14]
call fcn.00402c10
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.00420f50
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00404a60
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x14]
push eax
call fcn.00402c30
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0040b580
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.00402cf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00402cd0
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.00402c30
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0x78]
call fcn.0041e080
push 0x54f11c
mov eax, dword [ebp - 0x78]
add eax, 0x264
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004031b0
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
call fcn.00420f50
push eax
push 0
push 0x54f13c
push 0x54f148
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x44]
call fcn.00402cd0
push 0x54f154
mov edx, dword [ebp - 0x78]
add edx, 0x264
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004031b0
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
call fcn.00420f50
push eax
push 0
push 0x54f174
push 0x54f184
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x48]
call fcn.00402cd0
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x1e0], 0
je 0x413eda
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x1dc], 0
jne 0x413f2e
cmp dword [ebp - 0x18], 0
je 0x413ee6
cmp dword [ebp - 0x10], 0
jne 0x413f16
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0xd0]
call fcn.00412140
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x1dc], eax
mov edx, dword [ebp - 0x78]
mov ecx, dword [edx + 0xd0]
call fcn.00412170
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x1e0], eax
jmp 0x413f2e
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 0x413f66
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.004f0ca8
push 0
mov ecx, dword [ebp - 0x78]
call fcn.004ed65a
mov ecx, dword [ebp - 0x78]
call fcn.00416660
mov ecx, dword [ebp - 0x78]
call fcn.0041ce70
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x260], 0
push 0x1c
call fcn.004e1be4
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x413fa8
push 1
mov ecx, dword [ebp - 0x50]
call fcn.004b2a40
mov dword [ebp - 0xbc], eax
jmp 0x413fb2
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 0x413fed
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.00416d30
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.00403100
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x284], 0
jne 0x414085
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402c30
mov dword [ebp - 0xc0], eax
call fcn.004be100
add esp, 4
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x414085
mov ecx, dword [ebp - 0x78]
add ecx, 0x270
call fcn.00403460
movzx eax, al
test eax, eax
jne 0x414085
push 3
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402c30
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x78]
call fcn.00418e70
push 0
mov ecx, dword [ebp - 0x78]
call fcn.004f0ce8
push 5
push 1
mov ecx, dword [ebp - 0x78]
call fcn.0041f5d0
mov ecx, dword [ebp - 0x78]
call fcn.0040cb60
push 0
push 0x493e0
push 0x3ec
mov ecx, dword [ebp - 0x78]
call fcn.00411fd0
push 0
push 0xea60
push 0x3ed
mov ecx, dword [ebp - 0x78]
call fcn.00411fd0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x54f190
call fcn.00402c50
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 0x54f194
call fcn.00402c50
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 0x54f198
call fcn.00402c50
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 0x54f19c
call fcn.00402c50
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.00402c30
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.00402c50
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 5
mov edi, 0x57a8b8
call fcn.004dd400
mov dword [ebp - 0x74], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402cd0
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