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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5539fa
mov eax, dword fs:[0]
push eax
mov eax, 0x26ab0
call fcn.004741b0
mov eax, dword [0x672114]
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.004f0ae0
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004f0ae0
push esi
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.004f0ae0
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.00500d07
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00500c96
lea eax, [ebp - 0x420]
push eax
call fcn.004db213
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 0x4d1f2d
mov eax, edi
jmp 0x4d1f3a
lea eax, [ebp - 0x218]
push eax
call fcn.00500d29
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.004da65a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4d1f7d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc88]
push eax
call fcn.005014b0
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x658]
call fcn.004096c0
xor eax, eax
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x648], edi
mov word [ebp - 0x658], ax
cmp word [ebp - 0x218], ax
jne 0x4d1fbc
mov eax, edi
jmp 0x4d1fc9
lea eax, [ebp - 0x218]
push eax
call fcn.00500d29
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.004da65a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4d1ffd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa88]
push eax
call fcn.005014b0
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x670]
call fcn.004096c0
push edi
push 1
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 2
call fcn.00402590
lea ecx, [ebp - 0x26ab8]
call fcn.004e7dbe
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.004e7e0e
lea ecx, [ebp - 0x26ab8]
call fcn.004e86ce
lea ecx, [ebp - 0x988]
call fcn.00456a50
lea ecx, [ebp - 0x26ab8]
call fcn.004e842d
test eax, eax
je 0x4d209a
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004e81b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26ab8]
call fcn.004e8439
test eax, eax
je 0x4d2071
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004e81b0
movsd xmm0, qword [ebp - 0x678]
movsd xmm1, qword [ebp - 0x680]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x4d2119
ucomisd xmm0, qword [0x5d47b0]
lahf
test ah, 0x44
jnp 0x4d2135
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 0x4d21aa
push 0x656bb0
call fcn.004024f0
jmp 0x4d21b6
ucomisd xmm0, qword [0x5d47b0]
lahf
test ah, 0x44
jnp 0x4d2135
ucomisd xmm1, qword [0x5d47b8]
lahf
test ah, 0x44
jnp 0x4d20e3
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 0x4d20e3
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 0x4d20e5
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.00474193
mov esp, ebp
pop ebp
ret 0x34