Function at 0x108cd22
Capabilities:
Check if file exists

Disassembly:
push 0x220
mov eax, 0x10b8070
call fcn.010aac8f
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.010ab82f
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 0x108cdb2
mov esi, 0x80004003
mov dword [ebp - 0x21c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 0x10
cmp edi, esi
jne 0x108cdbc
cmp ebx, esi
jne 0x108cdc2
jmp 0x108cd8e
mov dword [edi], esi
cmp ebx, esi
je 0x108cdc4
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 0x108ce28
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108cdf6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108cec4
test byte [eax + 0x1c], 4
je 0x108cec4
push dword [ebp - 0x21c]
push 0x10218f8
push 0xd
jmp 0x108ceab
push esi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x108ceb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108ce4f
and eax, 0xffff
or eax, 0x80070000
mov ecx, 0x80070005
mov dword [ebp - 0x21c], eax
cmp eax, ecx
jne 0x108ce8c
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ce83
test byte [eax + 0x1c], 8
je 0x108ce83
push ecx
push 0x10218f8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
and dword [ebp - 0x21c], 0
jmp 0x108ced1
mov eax, dword [section..data]
cmp eax, section..data
je 0x108cec4
test byte [eax + 0x1c], 4
je 0x108cec4
push dword [ebp - 0x21c]
push 0x10218f8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
jmp 0x108cec4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x21c], 0
jl 0x108d0e8
test dword [ebp + 0xc], 8
jne 0x108cf14
mov ecx, dword [ebp - 0x224]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x220]
call fcn.0108c5e6
mov dword [ebp - 0x21c], eax
cmp eax, 1
jne 0x108cf1e
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x108cf1e
or dword [ebp + 0xc], 0x80000
jmp 0x108cf1e
mov dword [ebp - 0x21c], 1
xor esi, esi
cmp dword [ebp - 0x21c], esi
jl 0x108d0e8
cmp dword [ebp - 0x21c], 1
je 0x108cf45
cmp edi, esi
je 0x108cf3d
cmp dword [edi], esi
je 0x108cf45
cmp ebx, esi
je 0x108cf61
cmp dword [ebx], esi
jne 0x108cf61
mov ecx, dword [ebp - 0x224]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x220]
call fcn.0108c6b8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], esi
jl 0x108d0e8
cmp ebx, esi
je 0x108cfdb
mov eax, dword [ebx]
cmp eax, esi
je 0x108cfdb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
je 0x108cf99
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108cf99
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x108cfdb
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.01074d22
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108cfdb
test byte [eax + 0x1c], 4
je 0x108cfdb
push esi
push 0x10218f8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010313ff
cmp dword [ebp - 0x21c], 0
jl 0x108d0e8
test edi, edi
je 0x108d056
mov eax, dword [edi]
test eax, eax
je 0x108d056
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
je 0x108d014
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x108d014
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x108d056
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.01074d22
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108d056
test byte [eax + 0x1c], 4
je 0x108d056
push esi
push 0x10218f8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010313ff
cmp dword [ebp - 0x21c], 0
jl 0x108d0e8
test dword [ebp + 0xc], 1
jne 0x108d0be
test edi, edi
je 0x108d095
mov eax, dword [edi]
test eax, eax
je 0x108d095
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.0108e3f8
mov ecx, dword [esi + 0x6c]
call fcn.0108e68c
jmp 0x108d09b
mov esi, dword [ebp - 0x224]
test ebx, ebx
je 0x108d0c4
mov eax, dword [ebx]
test eax, eax
je 0x108d0c4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [esi + 0x68]
push eax
call fcn.0108e3f8
mov ecx, dword [esi + 0x68]
call fcn.0108e68c
jmp 0x108d0c4
mov esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jl 0x108d0e8
test dword [ebp + 0xc], 0x80000
je 0x108d0e8
push 0x100000
mov ecx, esi
call fcn.0108cbde
mov dword [ebp - 0x21c], eax
mov esi, dword [ebp - 0x21c]
jmp 0x108cd99