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

Disassembly:
push 0xffffffffffffffff
push 0x45da21
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x47aab0]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebp, dword [esp + 0x454]
xor edi, edi
push edi
push edi
lea eax, [esp + 0x34]
push eax
mov ebx, ecx
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
call esi
test eax, eax
je 0x40e308
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x30]
push edx
push str._s_s.lnk
push ebp
call fcn.00407ac0
add esp, 0x10
call fcn.0041ba0a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40e322
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
push edi
push 0x1a
lea ecx, [esp + 0x23c]
push ecx
push edi
mov dword [esp + 0x45c], edi
call esi
test eax, eax
je 0x40e369
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x20]
push 0x46a38c
push eax
call fcn.00407ac0
mov ebx, dword [esp + 0x28]
add esp, 0xc
call fcn.0041ba0a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40e383
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov byte [esp + 0x44c], 1
mov ecx, dword [ebp]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x40e47e
cmp dword [ebx - 0xc], 0
jle 0x40e47e
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 8]
add esi, 8
push 0x2f
push eax
call fcn.0043ff84
add esp, 8
test eax, eax
je 0x40e47e
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x40e47e
add eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00407460
mov byte [esp + 0x44c], 2
mov eax, dword [eax]
push eax
push ebx
lea ecx, [esp + 0x2c]
push 0x4696e8
push ecx
call fcn.00407ac0
mov byte [esp + 0x45c], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e45e
mov eax, dword [esi]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov esi, dword [esi]
push 0
push 0
push edi
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x40e47e
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp]
push edi
push eax
call fcn.0040e0c0
add esp, 8
test eax, eax
je 0x40e47e
mov dword [esp + 0x18], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x44c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e4a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x44c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0043f428
add esp, 0x43c
ret