Function at 0x4927aa
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x4e10a1
call fcn.004beaa5
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 0xc], edi
mov dword [ebp - 0x20], ebx
je 0x492a4c
lea esi, [ebp - 0x18]
call fcn.00416d00
and dword [ebp - 4], edi
lea esi, [ebp - 0x14]
call fcn.00416d00
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x492a17
mov ecx, dword [ebx]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x492829
cmp dword [esi + 0xc], 0
jl 0x49281a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49281a
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x14], edi
jmp 0x492829
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00401450
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49283f
lea esi, [ebp - 0x14]
call fcn.004014f0
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x492a17
lea esi, [ebp - 0x18]
call fcn.004014f0
lea ebx, [ebp - 0x1c]
call fcn.00492658
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49289a
cmp dword [esi + 0xc], 0
jl 0x49288e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49288e
call fcn.004012d0
mov ebx, eax
mov eax, esi
call fcn.004010d0
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x49289a
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x18]
call fcn.00401450
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00416ce0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x49292b
lea eax, [ebp - 0x18]
call fcn.00492622
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x18]
call fcn.00416a70
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x492909
cmp dword [esi + 0xc], 0
jl 0x4928fa
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4928fa
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x14], edi
jmp 0x492909
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00401450
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00416ce0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49292b
lea esi, [ebp - 0x14]
call fcn.004014f0
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x492a17
lea esi, [ebp - 0x18]
call fcn.004014f0
lea ebx, [ebp - 0x1c]
call fcn.00492701
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x492986
cmp dword [esi + 0xc], 0
jl 0x49297a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49297a
call fcn.004012d0
mov ebx, eax
mov eax, esi
call fcn.004010d0
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x492986
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x18]
call fcn.00401450
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00416ce0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x492a13
lea eax, [ebp - 0x18]
call fcn.00492622
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x18]
call fcn.00416a70
pop ecx
pop ecx
mov byte [ebp - 4], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4929f5
cmp dword [esi + 0xc], 0
jl 0x4929e6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4929e6
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x14], edi
jmp 0x4929f5
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00401450
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00416ce0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x492a13
lea esi, [ebp - 0x14]
call fcn.004014f0
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x492a33
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492a33
push edi
call esi
mov edi, eax
test edi, edi
jne 0x492a3c
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.00416ce0
lea ecx, [ebp - 0x18]
call fcn.00416ce0
mov eax, edi
call fcn.004beb28
ret