Function at 0x1009983d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x100ed47c
call fcn.100c908c
sub esp, 0x5c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 7
call fcn.100023f7
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x10099948
cmp byte [ebp + 0x14], bl
je 0x1009990a
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
call fcn.10048947
push str.override_
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.10098669
push esi
lea ecx, [ebp - 0x4c]
call fcn.10098669
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x100998b3
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100998fc
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x100998ca
lea eax, [ebp - 0x48]
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.10009e15
lea eax, [ebp - 0x68]
push eax
call fcn.10097821
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10002208
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.100022b8
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.100022b8
cmp dword [ebp - 0x1c], ebx
jne 0x10099962
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push dword [ebp + 0xc]
call fcn.10009e15
lea eax, [ebp - 0x68]
push eax
call fcn.10097821
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.10002208
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.100022b8
jmp 0x10099953
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.1000229b
cmp dword [ebp - 0x1c], ebx
jne 0x10099962
mov esi, dword [ebp + 8]
mov dword [esi], ebx
jmp 0x10099a1f
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 0x100fa254
push 0x17
push ebx
push 0x100fab10
mov byte [ebp - 4], 4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x10]
push ebx
cmp eax, ebx
jne 0x10099992
mov esi, dword [ebp + 8]
mov dword [esi], ebx
jmp 0x10099a20
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xfc]
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
jae 0x100999ad
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x10]
call fcn.10002a1f
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x14]
push edx
push eax
push esi
mov byte [ebp - 4], 5
call dword [ecx + 0x104]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jl 0x10099a0a
cmp word [ebp - 0x14], bx
je 0x10099a0a
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.10003eee
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x100999fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.100022b8
mov eax, dword [ebp + 8]
jmp 0x10099a2c
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x10099a1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.100022b8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret