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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push 0
lea eax, [ebp - 8]
push eax
call sub.WININET.dll_InternetGetConnectedState
cmp dword [ebp - 0x20], esp
je 0x49fcdb
push 0x19
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49fcfb
push dword [ebp + 8]
call fcn.0049fff0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x49ffc5
push 0
mov ebx, 0x4bb190
call fcn.004b7854
add esp, 4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x4b9ae0
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0x8aba5c
mov ecx, 2
call fcn.004016eb
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x49fd52
push ebx
call fcn.004b784e
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49fd66
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x4b7d00
call fcn.004b7854
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x49fde2
mov dword [ebp - 0x20], esp
push 0
push 0
push 0
push 4
push dword [ebp - 0xc]
call sub.WININET.dll_InternetOpenA
cmp dword [ebp - 0x20], esp
je 0x49fdda
push 0x168
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x10], eax
jmp 0x49fe20
mov dword [ebp - 0x20], esp
push 0
push 0
push 0
push 0
push dword [ebp - 0xc]
call sub.WININET.dll_InternetOpenA
cmp dword [ebp - 0x20], esp
je 0x49fe1d
push 0x1c1
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49fe3d
push dword [ebp + 8]
call fcn.0049fff0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x49ffc5
mov dword [ebp - 0x20], esp
push 0
push 0x84200100
push 0
push 0x5d3b7c
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x10]
call sub.WININET.dll_InternetOpenUrlA
cmp dword [ebp - 0x20], esp
je 0x49fe7d
push 0x2c2
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x49fec4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
call sub.WININET.dll_InternetCloseHandle
cmp dword [ebp - 0x20], esp
je 0x49feb1
push 0x33a
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
push dword [ebp + 8]
call fcn.0049fff0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x49ffc5
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x4b9450
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x49fef9
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xff
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push 0x33
push dword [ebp - 0x14]
call sub.WININET.dll_HttpQueryInfoA
cmp dword [ebp - 0x20], esp
je 0x49ff43
push 0x400
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x49ff8a
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
call sub.WININET.dll_InternetCloseHandle
cmp dword [ebp - 0x20], esp
je 0x49ff77
push 0x445
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
push dword [ebp + 8]
call fcn.0049fff0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x49ffc5
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
call sub.WININET.dll_InternetCloseHandle
cmp dword [ebp - 0x20], esp
je 0x49ffb1
push 0x48e
push 0x417029d
push 6
call fcn.004b785a
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.0049fff0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x49ffc5
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49ffd6
push ebx
call fcn.004b784e
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x49ffe6
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4