Function at 0x514fd0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b303
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x598], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x558], 0
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00415810
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x515068
mov byte [ebp - 0x559], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004163e0
mov al, byte [ebp - 0x559]
jmp 0x515410
xor eax, eax
mov word [ebp - 0x110], ax
push 0xfe
push 0
lea ecx, [ebp - 0x10e]
push ecx
call fcn.005e0dd0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x510], dx
push 0x3fe
push 0
lea eax, [ebp - 0x50e]
push eax
call fcn.005e0dd0
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x554]
push ecx
call fcn.005e0dd0
add esp, 0xc
mov dword [ebp - 0x554], 0x3c
mov dword [ebp - 0x540], 0x80
mov dword [ebp - 0x524], 0x200
lea edx, [ebp - 0x110]
mov dword [ebp - 0x544], edx
lea eax, [ebp - 0x510]
mov dword [ebp - 0x528], eax
lea ecx, [ebp - 0x554]
push ecx
push accept
push 0
lea ecx, [ebp + 8]
call fcn.00415810
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x515115
jmp 0x515363
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x568], eax
cmp dword [ebp - 0x568], 0
jne 0x515139
jmp 0x515363
push 0
push 0x8000000
push 3
push 0
push 0
push 0x50
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x568]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x56c], eax
cmp dword [ebp - 0x56c], 0
jne 0x515170
jmp 0x515363
push 1
push 0x4000200
push 0
push 0
push str.HTTP_1.0
lea ecx, [ebp - 0x510]
push ecx
push 0x6a7854
mov edx, dword [ebp - 0x56c]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x564], eax
cmp dword [ebp - 0x564], 0
jne 0x5151ad
jmp 0x515363
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x5151cb
jmp 0x515363
mov dword [ebp - 0x514], 0
mov dword [ebp - 0x560], 0
push 0
lea ecx, [ebp - 0x514]
push ecx
mov edx, dword [ebp - 0x560]
push edx
push 5
mov eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x515244
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x57c], eax
cmp dword [ebp - 0x57c], 0x7a
jne 0x51523d
mov ecx, dword [ebp - 0x514]
add ecx, 1
push ecx
call fcn.00545b74
add esp, 4
mov dword [ebp - 0x580], eax
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x560], edx
jmp 0x515242
jmp 0x515363
jmp 0x5151df
mov eax, dword [ebp - 0x560]
add eax, dword [ebp - 0x514]
mov cl, byte [0x6a785c]
mov byte [eax], cl
mov edx, dword [ebp - 0x560]
push edx
call fcn.005f00da
add esp, 4
mov dword [ebp - 0x574], eax
mov eax, dword [ebp - 0x560]
mov dword [ebp - 0x570], eax
mov ecx, dword [ebp - 0x570]
push ecx
call fcn.00545b61
add esp, 4
cmp dword [ebp - 0x570], 0
jne 0x51529d
mov dword [ebp - 0x584], 0
jmp 0x5152b3
mov dword [ebp - 0x560], 0x8123
mov edx, dword [ebp - 0x560]
mov dword [ebp - 0x584], edx
mov dword [ebp - 0x518], 0
mov eax, dword [ebp - 0x574]
add eax, 1
push eax
call fcn.00545b74
add esp, 4
mov dword [ebp - 0x588], eax
mov ecx, dword [ebp - 0x588]
mov dword [ebp - 0x558], ecx
cmp dword [ebp - 0x558], 0
je 0x515314
lea edx, [ebp - 0x518]
push edx
mov eax, dword [ebp - 0x574]
push eax
mov ecx, dword [ebp - 0x558]
push ecx
mov edx, dword [ebp - 0x564]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x515312
jmp 0x515363
jmp 0x515316
jmp 0x515363
mov eax, dword [ebp - 0x518]
push eax
mov ecx, dword [ebp - 0x558]
push ecx
lea ecx, [ebp - 0x5b0]
call fcn.004c39b0
mov dword [ebp - 0x58c], eax
mov edx, dword [ebp - 0x58c]
mov dword [ebp - 0x590], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x590]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004c2a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5b0]
call fcn.00414d60
cmp dword [ebp - 0x568], 0
je 0x515379
mov ecx, dword [ebp - 0x568]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x56c], 0
je 0x51538f
mov edx, dword [ebp - 0x56c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x564], 0
je 0x5153a5
mov eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x558], 0
je 0x5153f4
mov ecx, dword [ebp - 0x558]
mov dword [ebp - 0x578], ecx
mov edx, dword [ebp - 0x578]
push edx
call fcn.00545b61
add esp, 4
cmp dword [ebp - 0x578], 0
jne 0x5153de
mov dword [ebp - 0x594], 0
jmp 0x5153f4
mov dword [ebp - 0x558], 0x8123
mov eax, dword [ebp - 0x558]
mov dword [ebp - 0x594], eax
mov byte [ebp - 0x55a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004163e0
mov al, byte [ebp - 0x55a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 0x1c