Function at 0x4c4cae
Capabilities:
Check if file exists
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5445e2
mov eax, dword fs:[0]
push eax
mov eax, 0x26ab0
call fcn.004682f0
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x26abc], edi
mov esi, 0x208
mov dword [ebp - 4], 1
push esi
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.004e37a0
add esp, 0x24
lea eax, [ebp - 0x628]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004f3a37
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004f39c6
lea eax, [ebp - 0x420]
push eax
call fcn.004ce0a5
add esp, 0x14
mov dword [ebp - 0x630], edi
xor eax, eax
mov word [ebp - 0x640], ax
push 7
pop esi
mov dword [ebp - 0x62c], esi
cmp word [ebp - 0x218], ax
jne 0x4c4dab
mov eax, edi
jmp 0x4c4db8
lea eax, [ebp - 0x218]
push eax
call fcn.004f3a59
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00402650
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x640]
call fcn.004043c0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.004cd4ec
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4c4dfb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc88]
push eax
call fcn.004f41c0
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x658]
call fcn.0046d37e
xor eax, eax
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x648], edi
mov word [ebp - 0x658], ax
cmp word [ebp - 0x218], ax
jne 0x4c4e3a
mov eax, edi
jmp 0x4c4e47
lea eax, [ebp - 0x218]
push eax
call fcn.004f3a59
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x658]
call fcn.00402650
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.004cd4ec
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4c4e7b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa88]
push eax
call fcn.004f41c0
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x670]
call fcn.0046d37e
push edi
push 1
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 2
call fcn.00402590
lea ecx, [ebp - 0x26ab8]
call fcn.004d9878
sub esp, 0x300
mov byte [ebp - 4], 4
mov edi, esp
lea esi, [ebp - 0xc88]
mov ecx, 0xc0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x26ab8]
call fcn.004d98c8
lea ecx, [ebp - 0x26ab8]
call fcn.004da188
lea ecx, [ebp - 0x988]
call fcn.00436610
lea ecx, [ebp - 0x26ab8]
call fcn.004d9ee7
test eax, eax
je 0x4c4f18
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004d9c6a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26ab8]
call fcn.004d9ef3
test eax, eax
je 0x4c4eef
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004d9c6a
movsd xmm0, qword [ebp - 0x678]
movsd xmm1, qword [ebp - 0x680]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x4c4f97
ucomisd xmm0, qword [0x5bea48]
lahf
test ah, 0x44
jnp 0x4c4fb3
xor esi, esi
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, ebx
test eax, eax
jne 0x4c5028
push 0x63d8a0
call fcn.004024f0
jmp 0x4c5034
ucomisd xmm0, qword [0x5bea48]
lahf
test ah, 0x44
jnp 0x4c4fb3
ucomisd xmm1, qword [0x5bea50]
lahf
test ah, 0x44
jnp 0x4c4f61
lea ecx, [ebp - 0x64c]
call fcn.00402350
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x218]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.00402430
lea ecx, [ebp - 0x64c]
movzx esi, al
mov byte [ebp - 4], 4
call fcn.00402420
test esi, esi
jne 0x4c4f61
cmp dword [ebp - 0x62c], 8
lea ecx, [ebp - 0x640]
push esi
cmovae ecx, dword [ebp - 0x640]
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push esi
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
push esi
call sub.urlmon.dll_URLDownloadToFileW
jmp 0x4c4f63
lea eax, [ebp - 0x640]
push eax
call fcn.00404660
lea ecx, [ebp - 0x26ab8]
call fcn.00402160
push esi
push 1
lea ecx, [ebp - 0x640]
call fcn.00402590
push esi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402590
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.00402590
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004682d0
mov esp, ebp
pop ebp
ret 0x34