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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b4e4
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x10070660]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xd8], ebx
mov esi, 7
xor edx, edx
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], ebx
mov word [ebp - 0xb4], dx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], ebx
mov word [ebp - 0x98], ax
mov byte [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x7c], cx
push ebx
mov eax, 0x10061c7c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], ebx
call fcn.10002b50
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 0xbb8
mov dword [ebp - 0x54], 0xa8c0
mov dword [ebp - 0x50], 0x194
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x3c], bl
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 4], 2
mov eax, dword [edx]
xor ecx, ecx
mov word [ebp - 0xd0], cx
mov ecx, eax
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xc0], ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov di, word [ecx]
add ecx, 2
cmp di, bx
jne 0x10004e80
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0xd0]
call fcn.10002b50
mov edx, dword [ebp - 0xdc]
mov byte [ebp - 4], 3
mov eax, dword [edx]
xor ecx, ecx
mov word [ebp - 0x30], cx
mov ecx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
lea esi, [ecx + 2]
jmp 0x10004ec0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x10004ec0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x30]
call fcn.10002b50
mov byte [ebp - 4], 4
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x3c], bl
mov dword [ebp - 0xd4], ebx
call 0x10015680
test al, al
je 0x10004f5a
push ebx
lea edx, [ebp - 0xd4]
push edx
mov dword [ebp - 0x58], 0x3a98
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov eax, dword [ebp - 0xd4]
and al, 4
sub al, 4
movzx eax, al
push ebx
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x60], eax
cmp eax, ebx
jne 0x10004f41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x10004f5a
lea edi, [ebp - 0xb4]
call 0x1001e9f0
mov esi, edi
call 0x1001e5d0
test al, al
jne 0x10004f5a
mov byte [ebp - 0x3c], bl
lea esi, [ebp - 0xb4]
call 0x1001ea90
push ebx
lea ecx, [ebp - 0xd0]
push ecx
or eax, 0xffffffff
lea edi, [ebp - 0x98]
call fcn.10002830
call 0x1001e740
test al, al
jne 0x10004f8b
mov byte [ebp - 0x3c], bl
xor esi, esi
jmp 0x10004f94
mov byte [ebp - 0x3c], 1
mov esi, 1
mov edi, 8
cmp dword [ebp - 0x1c], edi
jb 0x10004faa
mov edx, dword [ebp - 0x30]
push edx
call fcn.100368b0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp - 0xbc], edi
jb 0x10004fd5
mov ecx, dword [ebp - 0xd0]
push ecx
call fcn.100368b0
add esp, 4
cmp esi, ebx
jne 0x1000502c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebp - 0xb4]
mov dword [ebp - 4], 0xffffffff
call 0x1001e540
mov eax, dword [ebp - 0xd8]
inc eax
mov dword [ebp - 0xd8], eax
cmp eax, 3
jl 0x10004dd5
xor al, al
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.100368bb
mov esp, ebp
pop ebp
ret 4
lea esi, [ebp - 0xb4]
call 0x1001e540
mov al, 1
jmp 0x1000500e