Function at 0x10085660
Capabilities:
Check if file exists

Disassembly:
push 0x28
mov eax, 0x100b44d4
call fcn.100a5688
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push 0x10
push 4
push 2
push dword [ebx + 0x2480]
mov dword [ebx + 0x2488], eax
call fcn.100805db
mov eax, 0x246c
call fcn.100a5ad0
lea eax, [ebx + 0x10]
mov ecx, esp
push eax
call fcn.1008d5dd
lea ecx, [ebp - 0x10]
call fcn.100373f7
xor edi, edi
lea ecx, [ebp - 0x1c]
push 0x1001000c
mov dword [ebp - 4], edi
call fcn.1006f4e2
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
mov edx, 0x1001d940
lea ecx, [ebp - 0x24]
call fcn.1006eaa2
push 0x1001dc78
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.1006eafe
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
push ecx
push dword [eax]
lea ecx, [ebp - 0x34]
push 0x10010068
push dword [ebx + 8]
call fcn.1002e26b
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
jne 0x10085741
xor eax, eax
mov ecx, ebx
cmp byte [ebx + 4], al
sete al
dec eax
and eax, 0xfff93fad
add eax, 0x80070057
push eax
call fcn.10088ee0
jmp 0x100858c9
mov ecx, dword [ebx + 0x247c]
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.1008eb5d
add eax, 0x10
mov dword [esi], eax
call fcn.100301bd
mov dword [ebp - 0x28], eax
test eax, eax
jns 0x100857d0
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x14]
call fcn.1008e796
mov byte [ebp - 4], 7
mov eax, dword [ebx + 0x247c]
push dword [eax]
lea eax, [ebp - 0x14]
push 0x1001dc98
push eax
call fcn.1008e3f3
mov ebx, dword [ebx + 8]
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx]
push esi
push edi
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100d0614]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x18]
mov eax, 0x80004004
cmp byte [ecx + 4], 0
jne 0x100857bd
mov eax, dword [ebp - 0x28]
push eax
call fcn.10088ee0
lea ecx, [esi - 0x10]
call fcn.1008ebf5
jmp 0x100858c9
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov byte [ebp - 4], 8
lea edi, [ebx - 8]
mov eax, dword [ebx + 0x247c]
mov esi, dword [edi]
push edi
push 0
push dword [eax]
mov ecx, dword [esi + 0x2c]
push dword [ebp - 0x10]
push 0
call dword [0x100d0614]
mov ecx, edi
call dword [esi + 0x2c]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jns 0x10085876
mov dl, byte [ebx + 4]
test dl, dl
jne 0x10085876
mov eax, dword [ebp + 8]
push 0
mov edx, dword [eax]
mov esi, dword [edx]
mov ecx, esi
call dword [0x100d0614]
mov ecx, dword [ebp + 8]
call esi
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x14]
call fcn.1008e796
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push 0x1001dcf8
push eax
call fcn.1008e3f3
mov ebx, dword [ebx + 8]
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx]
push esi
push 0
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100d0614]
mov ecx, ebx
call edi
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 8
call fcn.1008ebf5
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
jmp 0x100858bb
mov eax, dword [ebx + 0x247c]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100858bb
mov edi, dword [ebp + 8]
push 0
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov edi, dword [ebx + 8]
push 0x1001dd38
push 0
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
push 2
pop edi
push edi
mov ecx, ebx
call fcn.10088ee0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x34]
call fcn.1002e2b5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret 4