Function at 0x47f7e6
Capabilities:
Check if file exists
Create http request
Read data from internet
Receive data

Disassembly:
push 0x20
mov eax, 0x5cf58e
call fcn.00506dc7
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
call fcn.0041279d
push eax
lea ecx, [ebp - 0x14]
call fcn.00411d94
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x2c], 1
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x14]
push str.https:__my.ruanmei.com_getavatar.aspx_r_du_s
push eax
call fcn.00412690
add esp, 0x10
mov byte [edi + 0x2c], bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f8be
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x28], esi
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x10]
push eax
call fcn.004c9470
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], ebx
je 0x47f8b2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push str.md5
push eax
call fcn.0042e01c
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.00412114
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], 1
call fcn.00412ac4
xor eax, eax
push eax
push eax
push eax
push 1
mov ebx, eax
mov dword [ebp - 0x18], eax
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x47f9de
and dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push 4
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
push eax
push 0x102
push eax
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x47f988
push 0x100000
call fcn.00506f2d
mov dword [esp], 0x100000
mov ebx, eax
push 0
push ebx
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x100000
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x47f971
lea edi, [eax + 1]
push edi
call fcn.00506f2d
push edi
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.0056b050
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
call fcn.0056a550
mov edi, dword [ebp - 0x28]
add esp, 0x1c
test ebx, ebx
je 0x47f97c
push ebx
call fcn.00506f36
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [ebp - 0x10]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x47f9de
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00411dbd
push ebx
mov byte [ebp - 4], 4
call fcn.00506f36
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.00412393
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea ecx, [esi - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, edi
jmp 0x47fa01
mov ecx, dword [ebp + 8]
push 0x5f1b30
call fcn.00413f09
lea ecx, [esi - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, dword [ebp + 8]
call fcn.00506d90
ret 8