Function at 0x4a83f0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52a674
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x569638]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x569638]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
mov esi, ecx
mov edi, edx
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4a845f
mov dword [edi], 0xc0000018
mov eax, edi
jmp 0x4a8d23
mov eax, dword [esi + 0x3c]
push eax
push str.Content_Type:_application_json
lea ecx, [esp + 0xc4]
push ecx
call fcn.00433fd0
mov esi, 0xf
mov dword [esp + 0xbc], vtable.QHAPI::HttpPostCommandJson.0
mov dword [esp + 0x18c], esi
mov dword [esp + 0x188], ebx
mov byte [esp + 0x178], bl
push 0x57109e
push 4
mov dword [esp + 0x1b0], ebx
call fcn.004f500f
add esp, 8
cmp eax, ebx
je 0x4a84bc
push eax
call fcn.004336e0
jmp 0x4a84be
xor eax, eax
push eax
lea edx, [esp + 0x168]
push edx
call int.00439da0
push 0x1f
push str.https:__orion.ts.360.com_promo_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.0042a0d0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1b4], 1
call fcn.0042a570
mov edi, 0x10
mov byte [esp + 0x1a8], bl
cmp dword [esp + 0x3c], edi
jb 0x4a8523
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004f3984
add esp, 4
push 7
push str.usbscan
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.0042a0d0
lea edx, [esp + 0x24]
push edx
xor cl, cl
lea edx, [esp + 0xc0]
mov byte [esp + 0x1ac], 2
call fcn.00433e10
cmp dword [esp + 0x3c], edi
jb 0x4a856d
mov eax, dword [esp + 0x28]
push eax
call fcn.004f3984
add esp, 4
and dword [esp + 0x2c], 0xfffffe00
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push 0x573d48
lea edi, [esp + 0x48]
mov byte [esp + 0x1ac], 4
call fcn.004073b0
sub esp, 0x14
mov byte [esp + 0x1c0], 5
mov esi, esp
mov dword [esp + 0x34], esp
call fcn.004d6510
push 0x5431cc
push str.lang
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 6
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 5
call fcn.004d6800
mov byte [esp + 0x1a8], 4
cmp dword [esp + 0x5c], 0x10
jb 0x4a85f3
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004f3984
add esp, 4
push 0x573d44
lea edi, [esp + 0x48]
call fcn.004073b0
sub esp, 0x14
mov byte [esp + 0x1c0], 7
mov esi, esp
mov dword [esp + 0x34], esp
call fcn.004d6510
push 0x53fe57
push 0x53fe54
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 8
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 7
call fcn.004d6800
mov byte [esp + 0x1a8], 4
cmp dword [esp + 0x5c], 0x10
jb 0x4a865d
mov edx, dword [esp + 0x48]
push edx
call fcn.004f3984
add esp, 4
lea esi, [esp + 0x1c]
call fcn.00453170
push eax
lea edi, [esp + 0x48]
mov byte [esp + 0x1ac], 9
call fcn.004073b0
sub esp, 0x14
mov byte [esp + 0x1c0], 0xa
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004d6510
push 0x544550
push str.pver
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0xb
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 0xa
call fcn.004d6800
cmp dword [esp + 0x5c], 0x10
jb 0x4a86cc
mov eax, dword [esp + 0x48]
push eax
call fcn.004f3984
add esp, 4
mov byte [esp + 0x1a8], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a8704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x573d50
lea edi, [esp + 0x48]
call fcn.004073b0
sub esp, 0x14
mov byte [esp + 0x1c0], 0xc
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004d6510
push 0x544703
push 0x544700
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0xd
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 0xc
call fcn.004d6800
mov byte [esp + 0x1a8], 4
cmp dword [esp + 0x5c], 0x10
jb 0x4a876e
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004f3984
add esp, 4
push 0x573d54
lea edi, [esp + 0x48]
call fcn.004073b0
sub esp, 0x14
mov byte [esp + 0x1c0], 0xe
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004d6510
push 0x544503
push 0x544500
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0xf
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 0xe
call fcn.004d6800
mov byte [esp + 0x1a8], 4
cmp dword [esp + 0x5c], 0x10
jb 0x4a87d8
mov edx, dword [esp + 0x48]
push edx
call fcn.004f3984
add esp, 4
mov eax, dword [esp + 0x20]
sub esp, 0x18
add eax, 0x40
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004d6510
push 0x53fbf7
push 0x53fbf4
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x10
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
mov eax, dword [esp + 0x20]
sub esp, 0x18
add eax, 0x5c
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004d6510
push 0x53fbfc
push 0x53fbf8
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x11
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
mov ecx, dword [0x573d64]
sub esp, 0x18
mov eax, esp
mov esi, 0xfffffeff
mov byte [eax + 8], 2
and dword [eax + 8], esi
mov dword [esp + 0x2c], esp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], ecx
mov dword [eax + 4], ebx
push 0x54470b
push str.ts_type
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x12
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
call fcn.00453260
mov ecx, dword [eax + 8]
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 2
and dword [eax + 8], esi
mov dword [esp + 0x2c], esp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], ecx
mov dword [eax + 4], ebx
push 0x5431c7
push 0x5431c4
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x13
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call sub.KERNEL32.dll_GetSystemPowerStatus
test eax, eax
je 0x4a8921
cmp byte [esp + 0x70], 1
jne 0x4a8921
mov ecx, 1
jmp 0x4a8923
xor ecx, ecx
sub esp, 0x18
mov eax, esp
mov byte [eax + 8], 2
and dword [eax + 8], esi
mov dword [esp + 0x2c], esp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax], ecx
mov dword [eax + 4], ebx
push 0x544714
push str.ac_power
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x14
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x17]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x17], 1
call fcn.00448780
sub esp, 0x14
mov ecx, esp
mov byte [ecx + 8], 2
and dword [ecx + 8], esi
mov dword [esp + 0x2c], esp
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx], eax
mov dword [ecx + 4], ebx
push 0x5431df
push str.premium
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x15
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
call fcn.0045ab70
sub esp, 0x18
mov ecx, esp
mov byte [ecx + 8], 2
and dword [ecx + 8], esi
mov dword [esp + 0x2c], esp
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx], eax
mov dword [ecx + 4], ebx
push 0x54454a
push str.protection_day
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x16
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
mov eax, dword [esp + 0x20]
sub esp, 0x18
add eax, 0x90
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004d6510
push 0x54386a
push str.cookie
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x17
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 4
call fcn.004d6800
mov byte [esp + 0x13], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea esi, [esp + 0x44]
mov byte [esp + 0x1a8], 0x18
call fcn.004e52f0
test eax, eax
je 0x4a8aac
mov ecx, esi
call fcn.004e5470
cmp eax, 1
sete al
jmp 0x4a8ab0
mov al, byte [esp + 0x13]
movzx eax, al
sub esp, 0x18
mov ecx, esp
cdq
mov byte [ecx + 8], 2
and dword [ecx + 8], 0xfffffeff
mov dword [esp + 0x2c], esp
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx], eax
mov dword [ecx + 4], edx
push 0x5433e0
push str.wifi
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c8], 0x19
call fcn.004d7a50
mov edi, eax
mov byte [esp + 0x1c0], 0x18
call fcn.004d6800
mov esi, 0xf
mov dword [esp + 0x7c], vtable.Json::FastWriter.0
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov byte [esp + 0x9c], bl
mov byte [esp + 0x9d], bl
mov byte [esp + 0x9e], bl
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x1b0], 0x1a
call fcn.004db420
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1c4], 0x1b
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc4]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.0042a570
lea eax, [esp + 0xd8]
push eax
call fcn.00435380
mov esi, dword [esp + 0x20]
lea edi, [esi + 0x78]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
mov byte [esp + 0x1a8], 0x1c
cmp dword [esi + 0xb0], ecx
jne 0x4a8be9
mov eax, dword [esi + 0xac]
cmp eax, ebx
je 0x4a8be3
push eax
mov eax, esi
call fcn.00435af0
test al, al
je 0x4a8bd8
mov ecx, dword [esi + 0xac]
push ecx
call fcn.004357e0
mov dword [esi + 0xac], ebx
mov ecx, 1
mov dword [esi + 0xb0], ebx
mov edx, dword [esp + 0xf8]
mov dword [esi + 0xb0], ecx
mov dword [esp + 0x1c], ecx
push esi
lea ecx, [esp + 0xc0]
mov dword [esi + 0xac], edx
call fcn.00435db0
test al, al
jne 0x4a8c24
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xac], ebx
mov eax, 0xc0000001
jmp 0x4a8c28
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0x10
cmp dword [esp + 0xb8], edi
jb 0x4a8c53
mov edx, dword [esp + 0xa4]
push edx
call fcn.004f3984
add esp, 4
mov esi, 0xf
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov dword [esp + 0x7c], vtable.Json::FastWriter.0
cmp dword [esp + 0x98], edi
jb 0x4a8c8e
mov eax, dword [esp + 0x84]
push eax
call fcn.004f3984
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0x7c], vtable.Json::Writer.0
mov dword [0x5730cc], ebx
mov dword [0x5730d0], ebx
cmp eax, ebx
je 0x4a8cc6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [esp + 0x24]
mov byte [esp + 0x1a8], bl
call fcn.004d6730
mov dword [esp + 0x1a8], 0xffffffff
cmp dword [esp + 0x18c], edi
jb 0x4a8cfa
mov ecx, dword [esp + 0x178]
push ecx
call fcn.004f3984
add esp, 4
lea ecx, [esp + 0xbc]
mov dword [esp + 0x18c], 0xf
mov dword [esp + 0x188], ebx
mov byte [esp + 0x178], bl
call fcn.00434120
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.004f398f
mov esp, ebp
pop ebp
ret