Function at 0x493187
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x4e0fc6
call fcn.004be9c5
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 0xc], edi
mov dword [ebp - 0x20], ebx
je 0x493429
lea esi, [ebp - 0x18]
call fcn.004016f0
and dword [ebp - 4], edi
lea esi, [ebp - 0x14]
call fcn.004016f0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x4933f4
mov ecx, dword [ebx]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x493206
cmp dword [esi + 0xc], 0
jl 0x4931f7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4931f7
call fcn.004012e0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x14], edi
jmp 0x493206
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00401470
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49321c
lea esi, [ebp - 0x14]
call fcn.00401510
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x4933f4
lea esi, [ebp - 0x18]
call fcn.00401510
lea ebx, [ebp - 0x1c]
call fcn.00493035
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 0x493277
cmp dword [esi + 0xc], 0
jl 0x49326b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49326b
call fcn.004012e0
mov ebx, eax
mov eax, esi
call fcn.004010d0
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x493277
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x18]
call fcn.00401470
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016d0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x493308
lea eax, [ebp - 0x18]
call fcn.004934a9
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x18]
call fcn.00416b50
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 0x4932e6
cmp dword [esi + 0xc], 0
jl 0x4932d7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4932d7
call fcn.004012e0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x14], edi
jmp 0x4932e6
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00401470
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016d0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x493308
lea esi, [ebp - 0x14]
call fcn.00401510
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x4933f4
lea esi, [ebp - 0x18]
call fcn.00401510
lea ebx, [ebp - 0x1c]
call fcn.004930de
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 0x493363
cmp dword [esi + 0xc], 0
jl 0x493357
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x493357
call fcn.004012e0
mov ebx, eax
mov eax, esi
call fcn.004010d0
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x493363
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x18]
call fcn.00401470
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016d0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4933f0
lea eax, [ebp - 0x18]
call fcn.004934a9
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x18]
call fcn.00416b50
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 0x4933d2
cmp dword [esi + 0xc], 0
jl 0x4933c3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4933c3
call fcn.004012e0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x14], edi
jmp 0x4933d2
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00401470
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.004016d0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4933f0
lea esi, [ebp - 0x14]
call fcn.00401510
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x493410
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493410
push edi
call esi
mov edi, eax
test edi, edi
jne 0x493419
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.004016d0
lea ecx, [ebp - 0x18]
call fcn.004016d0
mov eax, edi
call fcn.004bea48
ret