Function at 0x40ffad
Capabilities:
Check if file exists

Disassembly:
push 0x1ac
mov eax, 0x588f0b
call fcn.00475b46
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov bl, cl
push 7
mov dword [ebp - 0x1ac], eax
xor eax, eax
pop edx
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov word [ebp - 0x58], ax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x70], ax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0040ff17
mov ecx, eax
call fcn.00412dd3
mov eax, dword [ebp - 0x1ac]
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x28]
push eax
call fcn.0040a1fd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00409dbb
lea ecx, [ebp - 0x28]
call fcn.004019e0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x1c]
push 0x58e7c4
push ecx
lea eax, [ebp - 0x58]
mov ecx, esi
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.0041b434
mov ecx, eax
call fcn.0041b4f7
mov ecx, eax
call fcn.0041beaa
push eax
lea ecx, [ebp - 0x70]
call fcn.00403091
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x1c]
push 0x58e7a8
push ecx
lea eax, [ebp - 0x58]
mov ecx, esi
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.0041b434
mov ecx, eax
call fcn.0041b4f7
mov ecx, eax
call fcn.0041beaa
push eax
lea ecx, [ebp - 0x88]
call fcn.00403091
push 0x58e75c
lea eax, [ebp - 0x28]
push eax
call fcn.004066b3
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x4100ce
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004016b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004019e0
push 0x58e084
lea ecx, [ebp - 0x40]
call fcn.0040306a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x41011d
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0041d765
pop ecx
cmp dword [ebp - 0x60], 0
jbe 0x4101b8
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push 0x58da30
push eax
call fcn.00409f65
add esp, 0x10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x4101ac
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x88]
add eax, 0x28
push eax
call fcn.0040bf01
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x4101af
cmp dword [ebp - 0x14], 8
lea eax, [edi + 4]
push eax
cmovae ecx, dword [ebp - 0x28]
lea eax, [edi + 8]
push eax
push ecx
call fcn.0041aa66
xor ecx, ecx
movzx ebx, bl
inc ecx
add esp, 0xc
test eax, eax
cmove ebx, ecx
mov dword [ebp - 0x1b0], ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004019e0
call fcn.00415737
test al, al
je 0x41029f
test bl, bl
je 0x4101d0
push str.1018
jmp 0x4101d5
push str.1015
call fcn.0041535c
pop ecx
push eax
push str.1054
call fcn.0041535c
pop ecx
push eax
lea eax, [ebp - 0x28]
push 0x58e7f0
push eax
call fcn.00409f65
add esp, 0x10
mov byte [ebp - 4], 6
call fcn.00415737
test al, al
je 0x410297
mov eax, dword [0x60e988]
test eax, eax
je 0x410297
cmp dword [eax + 4], 4
jl 0x410297
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.1121
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x1ac], eax
call fcn.0041535c
pop ecx
push 0
push 0
push 0x58daf8
push 0x176
push str.CCloudTaskClient::LoadCacheDll
push 4
lea ecx, [ebp - 0x1a8]
mov ebx, eax
call fcn.0040df19
mov edi, eax
lea esi, [edi + 0x30]
mov byte [ebp - 4], 7
push ebx
push esi
call fcn.0040e372
push dword [ebp - 0x1ac]
push esi
call fcn.0040e372
mov ecx, dword [0x60e988]
add esp, 0x10
push edi
call fcn.0040e3e5
lea ecx, [ebp - 0x1a8]
call fcn.0040e0e1
mov ebx, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x28]
call fcn.004019e0
lea ecx, [ebp - 0x40]
call fcn.004019e0
lea ecx, [ebp - 0x88]
call fcn.004019e0
lea ecx, [ebp - 0x70]
call fcn.004019e0
lea ecx, [ebp - 0x58]
call fcn.004019e0
mov al, bl
call fcn.00475af0
ret 8