Function at 0x517b00
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9f40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x669404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 4], eax
test eax, eax
je 0x517cf3
cmp eax, 0xffffffff
je 0x517cf3
mov ecx, dword [ebp + 0x18]
sub ecx, 0
je 0x517bd3
dec ecx
je 0x517ba3
dec ecx
jne 0x517c06
mov cx, word [ebp + 0xc]
test cx, cx
movzx ecx, cx
jne 0x517b84
mov ecx, 0x1bb
push 0
push 0
push 3
mov ebx, dword [ebp + 0x14]
push ebx
mov esi, dword [ebp + 0x10]
push esi
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 8], eax
jmp 0x517c0c
mov cx, word [ebp + 0xc]
test cx, cx
movzx ecx, cx
jne 0x517bb4
mov ecx, 0x50
push 0
push 0
push 3
mov ebx, dword [ebp + 0x14]
push ebx
mov esi, dword [ebp + 0x10]
push esi
push ecx
mov edx, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 8], eax
jmp 0x517c0c
mov cx, word [ebp + 0xc]
test cx, cx
movzx ecx, cx
jne 0x517be4
mov ecx, 0x15
push 0
push 0x8000000
push 1
mov ebx, dword [ebp + 0x14]
push ebx
mov esi, dword [ebp + 0x10]
push esi
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 8], eax
jmp 0x517c0c
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [edi + 8]
test eax, eax
je 0x517cde
cmp eax, 0xffffffff
je 0x517cde
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x517c41
mov dword [ebp - 0x1c], str.connect_failed...
push 0x62ff74
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp + 8]
push eax
lea ecx, [edi + 0x10]
call fcn.00418440
mov ax, word [ebp + 0xc]
test ax, ax
jne 0x517c85
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x517c80
dec eax
je 0x517c72
dec eax
jne 0x517c8c
mov ecx, 0x1bb
mov word [edi + 0x80], cx
jmp 0x517c8c
mov edx, 0x50
mov word [edi + 0x80], dx
jmp 0x517c8c
mov eax, 0x15
mov word [edi + 0x80], ax
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x84], ecx
test esi, esi
je 0x517ca2
push esi
lea ecx, [edi + 0x2c]
call fcn.00418440
test ebx, ebx
je 0x517caf
push ebx
lea ecx, [edi + 0x48]
call fcn.00418440
call fcn.005181f0
call fcn.005180e0
mov esi, edi
call fcn.00518300
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebp - 0x20], str.connect_failed...
push 0x62ff74
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR100.dll__CxxThrowException
mov dword [ebp - 0x24], str.open_internet_failed...
push 0x62ff74
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov byte [ebp - 0x11], 0
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, 0x517d30
ret