Function at 0x47ae00
Capabilities:
Check http status code
Get common file path
Read data from internet
Receive data
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2aa0
call fcn.0048db70
mov dword [ebp - 0x29e0], 0
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004236e0
mov byte [ebp - 4], 2
cmp dword [ebp + 0x24], 0x10
jb 0x47ae54
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2a98], eax
jmp 0x47ae5d
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x2a98], ecx
push 0
push 0x4000300
push 0
push 0
mov edx, dword [ebp - 0x2a98]
push edx
mov eax, dword [0x4b8398]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x47b2aa
mov dword [ebp - 0x30], 4
push 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0x20000013
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x34], 0x190
jae 0x47b2a0
push 0x4a2b44
call fcn.0048bc60
add esp, 4
push eax
push 0xffffffffffffffff
push 0x4a2b44
lea ecx, [ebp + 0xc]
call fcn.0047d8f0
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xffffffff
jne 0x47aeeb
mov dword [ebp - 0x148], 0xffffffff
lea ecx, [ebp - 0x144]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x164]
call fcn.00416a60
mov byte [ebp - 4], 3
push 0xffffffffffffffff
mov eax, dword [ebp - 0x148]
add eax, 1
push eax
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00416b20
mov byte [ebp - 4], 4
movzx edx, byte [ebp + 0x28]
test edx, edx
je 0x47b129
push 0x4a3bb4
lea ecx, [ebp - 0x19c]
call fcn.00416a60
mov byte [ebp - 4], 5
mov byte [ebp - 0x29f6], 0x2e
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x29f6]
push eax
lea ecx, [ebp - 0x180]
call fcn.00419ba0
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0xffffffff
je 0x47afdb
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1a0]
add ecx, 1
push ecx
lea edx, [ebp - 0x29d0]
push edx
lea ecx, [ebp - 0x180]
call fcn.00416b20
mov dword [ebp - 0x2a9c], eax
mov eax, dword [ebp - 0x2a9c]
mov dword [ebp - 0x29fc], eax
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x29fc]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.00423530
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x29d0]
call fcn.004236e0
cmp dword [ebp - 0x168], 0x10
jb 0x47aff2
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x2aa0], edx
jmp 0x47affe
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x2aa0], eax
mov ecx, dword [ebp - 0x2aa0]
add ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x2a00], ecx
mov edx, dword [ebp - 0x2a00]
mov dword [ebp - 0x29d4], edx
cmp dword [ebp - 0x168], 0x10
jb 0x47b033
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x2a04], eax
jmp 0x47b03f
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x2a04], ecx
mov edx, dword [ebp - 0x2a04]
mov dword [ebp - 0x29d8], edx
mov eax, dword [ebp - 0x29d4]
push eax
mov ecx, dword [ebp - 0x29d8]
push ecx
lea edx, [ebp - 0x29dc]
push edx
lea ecx, [ebp - 0x180]
call fcn.004199b0
mov dword [ebp - 0x1a4], 0
jmp 0x47b086
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 8
jge 0x47b0e2
call fcn.0048c4bd
cdq
mov ecx, 0x19
idiv ecx
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x2a3c], 1
mov dl, byte [ebp - 0x2a32]
mov byte [ebp - 0x2a31], dl
mov eax, dword [ebp - 0x2a3c]
mov dword [ebp - 0x2a38], eax
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x61
push ecx
mov edx, dword [ebp - 0x2a38]
push edx
lea ecx, [ebp - 0x180]
call fcn.00419840
jmp 0x47b077
push 0x4a3bb0
call fcn.0048bc60
add esp, 4
push eax
push 0x4a3bb0
lea ecx, [ebp - 0x180]
call fcn.0041c910
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x180]
call fcn.00419710
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x19c]
call fcn.004236e0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x164]
call fcn.00419710
cmp dword [ebp - 0x14c], 0x10
jb 0x47b156
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x2aa4], edx
jmp 0x47b162
lea eax, [ebp - 0x160]
mov dword [ebp - 0x2aa4], eax
push 0x80
mov ecx, dword [ebp - 0x2aa4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x14c], 0x10
jb 0x47b18b
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x2aa8], edx
jmp 0x47b197
lea eax, [ebp - 0x160]
mov dword [ebp - 0x2aa8], eax
push 0x4a2bc4
mov ecx, dword [ebp - 0x2aa8]
push ecx
call fcn.0048d9fe
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x47b248
mov edx, 1
test edx, edx
je 0x47b229
lea eax, [ebp - 0x29b0]
push eax
push 0x2800
lea ecx, [ebp - 0x29ac]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x29b4], eax
cmp dword [ebp - 0x29b4], 1
jne 0x47b1f8
cmp dword [ebp - 0x29b0], 0
jne 0x47b1f8
jmp 0x47b229
cmp dword [ebp - 0x29b0], 0
je 0x47b21f
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x29b0]
push ecx
push 1
lea edx, [ebp - 0x29ac]
push edx
call fcn.0048db18
add esp, 0x10
jmp 0x47b227
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47b1b8
mov eax, dword [ebp - 0x38]
push eax
call fcn.0048d951
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00423530
cmp dword [ebp - 0x14c], 0x10
jb 0x47b25f
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x2aac], edx
jmp 0x47b26b
lea eax, [ebp - 0x160]
mov dword [ebp - 0x2aac], eax
push 6
mov ecx, dword [ebp - 0x2aac]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x180]
call fcn.004236e0
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.004236e0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004236e0
mov eax, dword [0x4a2ac8]
push eax
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00423530
mov edx, dword [ebp - 0x29e0]
or edx, 1
mov dword [ebp - 0x29e0], edx
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004236e0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.004236e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret