Function at 0x630e6c
Capabilities:
Check internet connectivity via wininet
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x630e75
mov eax, dword [ebp - 4]
add esp, 0xfffff7b0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2854], ebx
mov dword [ebp - 0x2848], ebx
mov dword [ebp - 0x284c], ebx
mov dword [ebp - 0x2850], ebx
mov dword [ebp - 0x283c], ebx
mov dword [ebp - 0x2824], ebx
mov dword [ebp - 0x2828], ebx
mov dword [ebp - 0x2830], ebx
mov dword [ebp - 0x2820], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x631285
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x631212
xor eax, eax
push ebp
push 0x6311fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x630f2c
lea eax, [ebp - 0x2820]
push eax
mov eax, dword [0x65a508]
mov eax, dword [eax]
mov ecx, 0x6312a4
mov edx, 0x44
call fcn.00637180
mov eax, dword [ebp - 0x2820]
call fcn.005d4d3c
push 0xffff
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4220a8]
call fcn.00427d00
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
push 0x6312ac
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6311ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x6311c2
push 0
push 0x80000000
push 0
push 0
mov eax, edi
call fcn.00405b58
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6311c2
xor eax, eax
push ebp
push 0x6311bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2828]
push eax
mov eax, dword [0x65a508]
mov eax, dword [eax]
mov ecx, 0x6312a4
mov edx, 0x2d
call fcn.00637180
mov edx, dword [ebp - 0x2828]
lea eax, [ebp - 0x2824]
call fcn.00405950
mov eax, dword [ebp - 0x2824]
push eax
mov dword [ebp - 0x2838], ebx
xor eax, eax
mov dword [ebp - 0x2834], eax
fild qword [ebp - 0x2838]
fdiv dword [0x6312b4]
call fcn.004036a0
push edx
push eax
lea eax, [ebp - 0x2830]
call fcn.0040ba7c
mov eax, dword [ebp - 0x2830]
mov dword [ebp - 0x282c], eax
lea ecx, [ebp - 0x282c]
mov eax, dword [0x65a508]
mov eax, dword [eax]
pop edx
call fcn.006378a4
test esi, esi
je 0x631096
push dword [ebp - 4]
push 0x6312c0
mov dword [ebp - 0x2838], ebx
xor eax, eax
mov dword [ebp - 0x2834], eax
fild qword [ebp - 0x2838]
mov dword [ebp - 0x2844], esi
xor eax, eax
mov dword [ebp - 0x2840], eax
fild qword [ebp - 0x2844]
fld xword [0x6312c4]
fmulp st(1)
fdivp st(1)
call fcn.004036a0
push edx
push eax
lea eax, [ebp - 0x283c]
call fcn.0040ba7c
push dword [ebp - 0x283c]
push 0x6312d8
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405a5c
lea eax, [ebp - 0x284c]
mov ecx, 0x6312e4
mov edx, dword [ebp - 4]
call fcn.004059e0
mov edx, dword [ebp - 0x284c]
lea eax, [ebp - 0x2848]
call fcn.00406090
lea eax, [ebp - 0x2848]
push eax
lea eax, [ebp - 0x2850]
push eax
mov eax, dword [0x65a508]
mov eax, dword [eax]
mov ecx, 0x6312a4
mov edx, 0x44
call fcn.00637180
mov edx, dword [ebp - 0x2850]
pop eax
call fcn.004060bc
mov edx, dword [ebp - 0x2848]
lea eax, [ebp - 4]
call fcn.00405950
cmp byte [ebp + 8], 0
je 0x631117
lea eax, [ebp - 0x2854]
mov edx, dword [ebp - 4]
call fcn.00406090
mov eax, dword [ebp - 0x2854]
call fcn.005d4d3c
mov eax, dword [0x65a3f4]
mov eax, dword [eax]
call fcn.0048c808
cmp byte [ebp + 8], 0
je 0x631156
mov eax, dword [0x659be0]
cmp dword [eax], 0
je 0x631156
mov eax, dword [0x659be0]
mov eax, dword [eax]
cmp byte [eax + 0x380], 0
je 0x631156
xor ecx, ecx
mov dl, 1
mov eax, dword [0x409da0]
call fcn.004118cc
call fcn.00405004
mov dword [ebp - 0x14], 0x2800
lea eax, [ebp - 0x14]
push eax
push 0x2800
lea eax, [ebp - 0x281a]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x14], 0
je 0x6311a0
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x281a], 0
lea edx, [ebp - 0x281a]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00427a4c
add ebx, dword [ebp - 0x14]
jmp 0x630fa8
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6311c2
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6311f3
mov eax, dword [ebp - 0x18]
call fcn.00404748
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 8], 0
je 0x6311eb
call fcn.005d4f20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63128c
lea eax, [ebp - 0x2854]
mov edx, 2
call fcn.00405ec0
lea eax, [ebp - 0x284c]
call fcn.004056ac
lea eax, [ebp - 0x2848]
call fcn.00405ea8
lea eax, [ebp - 0x283c]
call fcn.004056ac
lea eax, [ebp - 0x2830]
call fcn.004056ac
lea eax, [ebp - 0x2828]
call fcn.00405ea8
lea eax, [ebp - 0x2824]
call fcn.004056ac
lea eax, [ebp - 0x2820]
call fcn.00405ea8
lea eax, [ebp - 4]
call fcn.004056ac
ret