Function at 0x47d168
Capabilities:
Check http status code
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404b3c
xor eax, eax
push ebp
push 0x47d3ac
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [edi + 4]
xor edx, edx
mov dword [eax + 0x38], edx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0047d67c
mov esi, 0x84000000
mov eax, dword [ebp - 0x1c]
mov edx, 0x47d3c4
call fcn.00404a98
jne 0x47d1dc
mov esi, 0x80f000
cmp byte [edi + 0xc], 0
jne 0x47d1e8
or esi, 0x200000
push 0
push 0
push 3
push 0x47d3cc
push 0x47d3cc
mov ax, word [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404b4c
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
push 0
push esi
push 0
push 0x47d3cc
push 0x47d3d0
mov eax, dword [ebp - 0x24]
call fcn.00404b4c
push eax
push 0x47d3dc
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
push 4
lea eax, [edi + 0x10]
push eax
push 2
push esi
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [edi + 0x10]
push eax
push 5
push esi
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [edi + 0x10]
push eax
push 6
push esi
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [edi + 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, 0x47d3e8
mov edx, esi
mov eax, edi
call fcn.0047d818
xor eax, eax
mov dword [edi + 0x14], eax
push 0
push 0
push 0
push 0x47d3cc
push esi
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x47d2a1
call sub.kernel32.dll_GetLastError_1
mov dword [edi + 0x14], eax
jmp 0x47d389
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x16
push esi
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.00404cd8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00404b4c
push eax
push 0x16
push esi
call sub.wininet.dll_HttpQueryInfoA
mov edx, dword [ebp - 0x28]
mov eax, dword [edi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push esi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x10], 0xc8
je 0x47d31c
cmp dword [ebp - 0x10], 0x12e
jne 0x47d37a
mov bl, 1
lea eax, [ebp - 0x82d]
xor ecx, ecx
mov edx, 0x800
call fcn.004030bc
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00418294
jmp 0x47d360
cmp dword [ebp - 0x14], 0
je 0x47d37a
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x82d], 0
lea edx, [ebp - 0x82d]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x800
lea eax, [ebp - 0x82d]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x47d33e
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d3b3
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004046b0
lea eax, [ebp - 4]
call fcn.0040468c
ret