Function at 0x476340
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 0x589e13
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x5d4074]
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.00405c20
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x4763d8
mov byte [ebp - 0x559], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405c30
mov al, byte [ebp - 0x559]
jmp 0x476780
xor eax, eax
mov word [ebp - 0x110], ax
push 0xfe
push 0
lea ecx, [ebp - 0x10e]
push ecx
call fcn.0052edb0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x510], dx
push 0x3fe
push 0
lea eax, [ebp - 0x50e]
push eax
call fcn.0052edb0
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x554]
push ecx
call fcn.0052edb0
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.00405c20
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x476485
jmp 0x4766d3
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 0x4764a9
jmp 0x4766d3
push 0
push 0x8000000
push 3
push 0
push 0
push pe_nt_image_headers32
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 0x4764e0
jmp 0x4766d3
push 1
push 0x4000200
push 0
push 0
push str.HTTP_1.0
lea ecx, [ebp - 0x510]
push ecx
push 0x5babd4
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 0x47651d
jmp 0x4766d3
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 0x47653b
jmp 0x4766d3
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 0x4765b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x57c], eax
cmp dword [ebp - 0x57c], 0x7a
jne 0x4765ad
mov ecx, dword [ebp - 0x514]
add ecx, 1
push ecx
call fcn.004a0f0b
add esp, 4
mov dword [ebp - 0x580], eax
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x560], edx
jmp 0x4765b2
jmp 0x4766d3
jmp 0x47654f
mov eax, dword [ebp - 0x560]
add eax, dword [ebp - 0x514]
mov cl, byte [0x5babd0]
mov byte [eax], cl
mov edx, dword [ebp - 0x560]
push edx
call fcn.0053fc91
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.004a0cd6
add esp, 4
cmp dword [ebp - 0x570], 0
jne 0x47660d
mov dword [ebp - 0x584], 0
jmp 0x476623
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.004a0f0b
add esp, 4
mov dword [ebp - 0x588], eax
mov ecx, dword [ebp - 0x588]
mov dword [ebp - 0x558], ecx
cmp dword [ebp - 0x558], 0
je 0x476684
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 0x476682
jmp 0x4766d3
jmp 0x476686
jmp 0x4766d3
mov eax, dword [ebp - 0x518]
push eax
mov ecx, dword [ebp - 0x558]
push ecx
lea ecx, [ebp - 0x5b0]
call fcn.00405ee0
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.00412e50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5b0]
call fcn.00405e10
cmp dword [ebp - 0x568], 0
je 0x4766e9
mov ecx, dword [ebp - 0x568]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x56c], 0
je 0x4766ff
mov edx, dword [ebp - 0x56c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x564], 0
je 0x476715
mov eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x558], 0
je 0x476764
mov ecx, dword [ebp - 0x558]
mov dword [ebp - 0x578], ecx
mov edx, dword [ebp - 0x578]
push edx
call fcn.004a0cd6
add esp, 4
cmp dword [ebp - 0x578], 0
jne 0x47674e
mov dword [ebp - 0x594], 0
jmp 0x476764
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.00405c30
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.004a0c7f
mov esp, ebp
pop ebp
ret 0x1c