Function at 0x40476a
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
push 0
push 0
push 0
push 0
push str.HTTPREAD
xor eax, eax
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4047f4
push 0x28
push 0x4010822
push 6
call fcn.0040a907
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], esp
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40483c
push 0xb5
push 0x4010822
push 6
call fcn.0040a907
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0
push 1
mov ebx, 0x9e0
call fcn.0040d860
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x334
call fcn.0040d940
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000005
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4048c2
push 0x16d
push 0x4010822
push 6
call fcn.0040a907
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x4048cc
cmp dword [ebp - 0xc], 0
je 0x40497b
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.0040b810
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404905
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40491d
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404947
push 0x20d
push 0x4010822
push 6
call fcn.0040a907
add esp, 0xc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404961
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a919
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404972
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x404a99
push 0x80000301
push 0
push 0x800
push 1
mov ebx, 0x1bc
call fcn.0040b810
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4049b0
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4049c7
mov eax, 0x41725e
push eax
push 1
mov ebx, 0x194
call fcn.0040b080
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4049f1
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x404a1b
push 0x2e1
push 0x4010822
push 6
call fcn.0040a907
add esp, 0xc
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push dword [ebp - 0x1c]
push VariantClear
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x404a3b
mov eax, 0x41725e
push eax
push 2
mov ebx, 0x1a0
call fcn.0040d990
add esp, 0x1c
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.004010b5
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404a77
push ebx
call fcn.0040a91f
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404a8b
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4049b4
cmp dword [ebp - 8], 0
je 0x404acf
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404acf
push 0x3c8
push 0x4010822
push 6
call fcn.0040a907
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x404b05
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404b05
push 0x41a
push 0x4010822
push 6
call fcn.0040a907
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404b1f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a919
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404b24
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404b35
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404b45
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4