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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d47c3
mov eax, dword fs:[0]
push eax
mov eax, 0x26ab8
call fcn.00492f50
mov eax, dword [0x656514]
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 - 0x26ac4], edi
mov esi, 0x208
mov dword [ebp - 4], 1
push esi
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.005a8e00
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005a8e00
push esi
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.005a8e00
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.005abfd0
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005abf5f
lea eax, [ebp - 0x420]
push eax
call fcn.0041cebd
xor eax, eax
mov dword [ebp - 0x62c], 7
add esp, 0x14
mov dword [ebp - 0x630], edi
mov word [ebp - 0x640], ax
cmp word [ebp - 0x218], ax
jne 0x4541eb
mov eax, edi
jmp 0x4541f8
lea eax, [ebp - 0x218]
push eax
call fcn.005abff2
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.004022f0
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x640]
call fcn.004047c0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.0041fd35
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x45423b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc88]
push eax
call fcn.005ac420
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x670]
call fcn.004023f0
xor eax, eax
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
mov word [ebp - 0x658], ax
cmp word [ebp - 0x218], ax
jne 0x45427e
mov eax, edi
jmp 0x45428b
lea eax, [ebp - 0x218]
push eax
call fcn.005abff2
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x658]
call fcn.004022f0
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.0041fd35
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4542bf
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa88]
push eax
call fcn.005ac420
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x670]
call fcn.004023f0
push edi
push 1
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 2
call fcn.00402230
lea ecx, [ebp - 0x26ab8]
call fcn.00420a77
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.00420bd2
lea ecx, [ebp - 0x26ab8]
call fcn.0042182b
lea ecx, [ebp - 0x988]
call fcn.00420ad0
lea ecx, [ebp - 0x26ab8]
call fcn.004213e1
test eax, eax
je 0x45435c
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004210a5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26ab8]
call fcn.004213ed
test eax, eax
je 0x454333
lea eax, [ebp - 0x988]
push eax
lea ecx, [ebp - 0x26ab8]
call fcn.004210a5
movsd xmm0, qword [ebp - 0x678]
movsd xmm1, qword [ebp - 0x680]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x4543db
ucomisd xmm0, qword [0x5d9180]
lahf
test ah, 0x44
jnp 0x4543f7
xor edi, edi
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 0x4544e6
push 0x640078
call fcn.00402120
jmp 0x4544f2
ucomisd xmm0, qword [0x5d9180]
lahf
test ah, 0x44
jnp 0x4543f7
ucomisd xmm1, qword [0x5dc3f8]
lahf
test ah, 0x44
jnp 0x4543a5
lea ecx, [ebp - 0x26ac0]
call fcn.00401f10
xor eax, eax
mov byte [ebp - 4], 5
xor edi, edi
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
mov word [ebp - 0x658], ax
cmp word [ebp - 0x218], ax
je 0x454437
lea eax, [ebp - 0x218]
push eax
call fcn.005abff2
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x658]
call fcn.004022f0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x670]
mov byte [ebp - 4], 6
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.00402120
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x26ac0]
call fcn.00401fe0
push edi
push 1
lea ecx, [ebp - 0x670]
movzx esi, al
call fcn.00402230
push edi
push 1
lea ecx, [ebp - 0x658]
call fcn.00402230
lea ecx, [ebp - 0x26ac0]
mov byte [ebp - 4], 4
call fcn.00401fd0
test esi, esi
jne 0x4543a7
cmp dword [ebp - 0x62c], 8
lea ecx, [ebp - 0x640]
push edi
cmovae ecx, dword [ebp - 0x640]
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push edi
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
push edi
call sub.urlmon.dll_URLDownloadToFileW
jmp 0x4543a7
lea eax, [ebp - 0x640]
push eax
call fcn.00404a00
lea ecx, [ebp - 0x26ab8]
call fcn.00420b15
push edi
push 1
lea ecx, [ebp - 0x640]
call fcn.00402230
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402230
push edi
push 1
lea ecx, [ebp + 0x24]
call fcn.00402230
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.00492e23
mov esp, ebp
pop ebp
ret 0x34