Function at 0x492800
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef413
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1200
call fcn.004dfa50
mov eax, dword [0x56f734]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x1179], 1
mov dword [ebp - 0x11d0], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1190], eax
lea ecx, [ebp - 0x11a0]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1188]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 1
mov ecx, 0x50
mov word [ebp - 0x11ac], cx
mov byte [ebp - 4], 2
mov dword [ebp - 0x11e8], 0
push 0
lea edx, [ebp - 0x11e8]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [ebp - 0x1208], eax
cmp dword [ebp - 0x1208], 0
jne 0x492e98
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [ebp - 0x11cc], 0x2000000
mov dword [ebp - 0x11b4], 0x824
mov dword [ebp - 0x11c0], 0
mov eax, dword [ebp - 0x11cc]
push eax
lea ecx, [ebp - 0x11b4]
push ecx
lea edx, [ebp - 0x105c]
push edx
mov eax, dword [ebp - 0x1190]
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0x11a4], eax
cmp dword [ebp - 0x11a4], 0
jne 0x492984
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x492982
xor ecx, ecx
mov eax, dword [ebp - 0x11b4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x1210], eax
mov eax, dword [ebp - 0x1210]
mov dword [ebp - 0x1194], eax
cmp dword [ebp - 0x1194], 0
je 0x492982
mov dword [ebp - 0x11c0], 1
mov ecx, dword [ebp - 0x11cc]
push ecx
lea edx, [ebp - 0x11b4]
push edx
mov eax, dword [ebp - 0x1194]
push eax
mov ecx, dword [ebp - 0x1190]
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0x11a4], eax
jmp 0x492990
lea edx, [ebp - 0x105c]
mov dword [ebp - 0x1194], edx
cmp dword [ebp - 0x11a4], 0
je 0x4929a5
mov eax, dword [ebp - 0x1194]
mov dword [ebp - 0x1190], eax
lea ecx, [ebp - 0x11ac]
push ecx
lea edx, [ebp - 0x1188]
push edx
lea eax, [ebp - 0x11a0]
push eax
lea ecx, [ebp - 0x11d0]
push ecx
mov edx, dword [ebp - 0x1190]
push edx
call sub.mfc120u.dll_Ordinal_2290
test eax, eax
je 0x4929da
mov byte [ebp - 0x117a], 1
jmp 0x4929e1
mov byte [ebp - 0x117a], 0
mov al, byte [ebp - 0x117a]
mov byte [ebp - 0x1179], al
movzx ecx, byte [ebp - 0x1179]
test ecx, ecx
je 0x492e74
cmp dword [ebp - 0x11d0], 0x1001
jne 0x492a42
mov dl, byte [ebp - 0x1179]
mov byte [ebp - 0x1181], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1188]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11a0]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov al, byte [ebp - 0x1181]
jmp 0x492eec
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
push 0
push 0
push 0
push 0
push 0x52b1f0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1180], eax
cmp dword [ebp - 0x1180], 0
je 0x492e74
mov dword [ebp - 0x1198], 0
mov dword [ebp - 0x1178], 0x11c
mov dword [ebp - 0x1174], 0
mov dword [ebp - 0x1170], 0
mov dword [ebp - 0x116c], 0
mov dword [ebp - 0x1168], 0
xor eax, eax
mov word [ebp - 0x1164], ax
push 0xfe
push 0
lea ecx, [ebp - 0x1162]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x1064], dx
xor eax, eax
mov word [ebp - 0x1062], ax
xor ecx, ecx
mov dword [ebp - 0x1060], ecx
mov dword [ebp - 0x1168], 2
mov dword [ebp - 0x1174], 6
push 4
push 2
push 1
push 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov dword [ebp - 0x1200], eax
mov dword [ebp - 0x11fc], edx
mov edx, dword [ebp - 0x11fc]
push edx
mov eax, dword [ebp - 0x1200]
push eax
push 0xa
lea ecx, [ebp - 0x1178]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x492b9b
push 0xc
call sub.mfc120u.dll_Ordinal_1506
add esp, 4
mov dword [ebp - 0x11b8], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x11b8], 0
je 0x492b75
mov ecx, dword [ebp - 0x11b8]
call fcn.004abc90
mov dword [ebp - 0x11c8], eax
jmp 0x492b7f
mov dword [ebp - 0x11c8], 0
mov edx, dword [ebp - 0x11c8]
mov dword [ebp - 0x1204], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1204]
mov dword [ebp - 0x1198], eax
mov ecx, dword [ebp - 0x1190]
push ecx
lea ecx, [ebp - 0x118c]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1188]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
cmp eax, 1
jle 0x492c40
push 0
lea ecx, [ebp - 0x1188]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
lea ecx, [ebp - 0x118c]
call dword [sym.imp.mfc120u.dll_Ordinal_4621]
mov dword [ebp - 0x11c4], eax
cmp dword [ebp - 0x11c4], 0
jle 0x492c40
mov edx, dword [ebp - 0x11c4]
push edx
lea eax, [ebp - 0x11d4]
push eax
lea ecx, [ebp - 0x118c]
call dword [sym.imp.mfc120u.dll_Ordinal_8242]
mov dword [ebp - 0x11e0], eax
mov ecx, dword [ebp - 0x11e0]
mov dword [ebp - 0x11f8], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x11f8]
push edx
lea ecx, [ebp - 0x118c]
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x11d4]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 0x119c], 0xbb8
cmp dword [ebp - 0x119c], 0
je 0x492c9b
push 4
lea eax, [ebp - 0x119c]
push eax
push 6
mov ecx, dword [ebp - 0x1180]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [ebp - 0x119c]
push edx
push 5
mov eax, dword [ebp - 0x1180]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x119c]
push ecx
push 2
mov edx, dword [ebp - 0x1180]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x84240200
push 0
push 0
lea ecx, [ebp - 0x118c]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov eax, dword [ebp - 0x1180]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x11bc], eax
cmp dword [ebp - 0x11bc], 0
jne 0x492dfa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [edx], ecx
mov byte [ebp - 0x1179], 0
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x492df8
mov eax, dword [ebp - 0x1198]
mov dword [ebp - 0x120c], eax
mov ecx, dword [ebp - 0x120c]
mov dword [ebp - 0x11b0], ecx
cmp dword [ebp - 0x11b0], 0
je 0x492d45
push 1
mov edx, dword [ebp - 0x11b0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x11b0]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x11f0], eax
jmp 0x492d4f
mov dword [ebp - 0x11f0], 0
mov dword [ebp - 0x1198], 0
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x492df8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x1180]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x11dc], 0
mov dword [ebp - 0x11d8], 0
push 0
lea ecx, [ebp - 0x11d8]
push ecx
lea edx, [ebp - 0x11dc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00492800
mov byte [ebp - 0x1182], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1188]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11a0]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov al, byte [ebp - 0x1182]
jmp 0x492eec
jmp 0x492e07
mov edx, dword [ebp - 0x11bc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1198], 0
je 0x492e57
mov eax, dword [ebp - 0x1198]
mov dword [ebp - 0x11e4], eax
mov ecx, dword [ebp - 0x11e4]
mov dword [ebp - 0x11a8], ecx
cmp dword [ebp - 0x11a8], 0
je 0x492e4d
push 1
mov edx, dword [ebp - 0x11a8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x11a8]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x11ec], eax
jmp 0x492e57
mov dword [ebp - 0x11ec], 0
mov eax, dword [ebp - 0x1180]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
cmp dword [ebp - 0x11c0], 0
je 0x492e98
mov ecx, dword [ebp - 0x1194]
mov dword [ebp - 0x11f4], ecx
mov edx, dword [ebp - 0x11f4]
push edx
call sub.mfc120u.dll_Ordinal_266
add esp, 4
jmp 0x492ea7
mov dword [ebp - 4], 1
jmp 0x492eb7
mov al, byte [ebp - 0x1179]
mov byte [ebp - 0x117b], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1188]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11a0]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov al, byte [ebp - 0x117b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004df9ac
mov esp, ebp
pop ebp
ret 0x14