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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5543bb
mov eax, dword fs:[0]
push eax
mov eax, 0x26ab0
call fcn.00474db0
mov eax, dword [0x673114]
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.004f14e0
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004f14e0
push esi
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.004f14e0
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.00501787
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00501716
lea eax, [ebp - 0x420]
push eax
call fcn.004dbc8b
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 0x4d2984
mov eax, edi
jmp 0x4d2991
lea eax, [ebp - 0x218]
push eax
call fcn.005017a9
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.00404370
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.004db0d2
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4d29d4
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc88]
push eax
call fcn.00501f10
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x658]
call fcn.00479e2e
xor eax, eax
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x648], edi
mov word [ebp - 0x658], ax
cmp word [ebp - 0x218], ax
jne 0x4d2a13
mov eax, edi
jmp 0x4d2a20
lea eax, [ebp - 0x218]
push eax
call fcn.005017a9
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.004db0d2
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4d2a54
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa88]
push eax
call fcn.00501f10
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x670]
call fcn.00479e2e
push edi
push 1
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 2
call fcn.00402590
lea ecx, [ebp - 0x26ab8]
call fcn.004e87b3
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.004e8803
lea ecx, [ebp - 0x26ab8]
call fcn.004e90c3
lea ecx, [ebp - 0x988]
call fcn.004573a0
lea ecx, [ebp - 0x26ab8]
call fcn.004e8e22
test eax, eax
je 0x4d2af1
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004e8ba5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26ab8]
call fcn.004e8e2e
test eax, eax
je 0x4d2ac8
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004e8ba5
movsd xmm0, qword [ebp - 0x678]
movsd xmm1, qword [ebp - 0x680]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x4d2b70
ucomisd xmm0, qword [0x5d3bb8]
lahf
test ah, 0x44
jnp 0x4d2b8c
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 0x4d2c01
push 0x657910
call fcn.004024f0
jmp 0x4d2c0d
ucomisd xmm0, qword [0x5d3bb8]
lahf
test ah, 0x44
jnp 0x4d2b8c
ucomisd xmm1, qword [0x5d3bc0]
lahf
test ah, 0x44
jnp 0x4d2b3a
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 0x4d2b3a
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 0x4d2b3c
lea eax, [ebp - 0x640]
push eax
call fcn.00404610
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.00474d9e
mov esp, ebp
pop ebp
ret 0x34