Function at 0x108ce87
Capabilities:
Check if file exists

Disassembly:
push 0x220
mov eax, 0x10b8f74
call fcn.010aacd7
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x224], ecx
xor esi, esi
push 0x1021e9c
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], esi
call fcn.010ab86f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0x220], esi
jne 0x108cf17
mov esi, 0x80004003
mov dword [ebp - 0x21c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 0x10
cmp edi, esi
jne 0x108cf21
cmp ebx, esi
jne 0x108cf27
jmp 0x108cef3
mov dword [edi], esi
cmp ebx, esi
je 0x108cf29
mov dword [ebx], esi
push esi
lea eax, [ebp - 0x218]
push eax
mov esi, 0x104
push esi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x108cf8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108cf5b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108d029
test byte [eax + 0x1c], 4
je 0x108d029
push dword [ebp - 0x21c]
push 0x10218f8
push 0xd
jmp 0x108d010
push esi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x108d01d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108cfb4
and eax, 0xffff
or eax, 0x80070000
mov ecx, 0x80070005
mov dword [ebp - 0x21c], eax
cmp eax, ecx
jne 0x108cff1
mov eax, dword [section..data]
cmp eax, section..data
je 0x108cfe8
test byte [eax + 0x1c], 8
je 0x108cfe8
push ecx
push 0x10218f8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
and dword [ebp - 0x21c], 0
jmp 0x108d036
mov eax, dword [section..data]
cmp eax, section..data
je 0x108d029
test byte [eax + 0x1c], 4
je 0x108d029
push dword [ebp - 0x21c]
push 0x10218f8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
jmp 0x108d029
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x21c], 0
jl 0x108d24d
test dword [ebp + 0xc], 8
jne 0x108d079
mov ecx, dword [ebp - 0x224]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x220]
call fcn.0108c74b
mov dword [ebp - 0x21c], eax
cmp eax, 1
jne 0x108d083
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x108d083
or dword [ebp + 0xc], 0x80000
jmp 0x108d083
mov dword [ebp - 0x21c], 1
xor esi, esi
cmp dword [ebp - 0x21c], esi
jl 0x108d24d
cmp dword [ebp - 0x21c], 1
je 0x108d0aa
cmp edi, esi
je 0x108d0a2
cmp dword [edi], esi
je 0x108d0aa
cmp ebx, esi
je 0x108d0c6
cmp dword [ebx], esi
jne 0x108d0c6
mov ecx, dword [ebp - 0x224]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x220]
call fcn.0108c81d
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], esi
jl 0x108d24d
cmp ebx, esi
je 0x108d140
mov eax, dword [ebx]
cmp eax, esi
je 0x108d140
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
je 0x108d0fe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108d0fe
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x108d140
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01074e86
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108d140
test byte [eax + 0x1c], 4
je 0x108d140
push esi
push 0x10218f8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103140f
cmp dword [ebp - 0x21c], 0
jl 0x108d24d
test edi, edi
je 0x108d1bb
mov eax, dword [edi]
test eax, eax
je 0x108d1bb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
je 0x108d179
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108d179
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x108d1bb
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01074e86
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108d1bb
test byte [eax + 0x1c], 4
je 0x108d1bb
push esi
push 0x10218f8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103140f
cmp dword [ebp - 0x21c], 0
jl 0x108d24d
test dword [ebp + 0xc], 1
jne 0x108d223
test edi, edi
je 0x108d1fa
mov eax, dword [edi]
test eax, eax
je 0x108d1fa
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.0108e55d
mov ecx, dword [esi + 0x6c]
call fcn.0108e7f1
jmp 0x108d200
mov esi, dword [ebp - 0x224]
test ebx, ebx
je 0x108d229
mov eax, dword [ebx]
test eax, eax
je 0x108d229
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [esi + 0x68]
push eax
call fcn.0108e55d
mov ecx, dword [esi + 0x68]
call fcn.0108e7f1
jmp 0x108d229
mov esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jl 0x108d24d
test dword [ebp + 0xc], 0x80000
je 0x108d24d
push 0x100000
mov ecx, esi
call fcn.0108cd43
mov dword [ebp - 0x21c], eax
mov esi, dword [ebp - 0x21c]
jmp 0x108cefe