Function at 0x4854cb
Capabilities:
Check if file exists

Disassembly:
push 0x11c
mov eax, 0x519ef5
call fcn.004b96f6
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x10]
call fcn.00466c6a
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [eax]
call fcn.0046e1ba
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [eax]
call fcn.00485ca1
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov esi, dword [ebp - 0x10]
push esi
call fcn.00486a3a
pop ecx
test eax, eax
je 0x4856bc
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
call fcn.00466d59
mov edi, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x48560f
push ebx
push ecx
mov ecx, esp
push str.YpYq2bIrPYPXonAxosC47F4BaOE0aLyhdVsHWUGfjkcAR8jJjsvHisAZxA3GSwJIxwPH2YFKzoFEzY4KA8ELB4mH2ltImx9O2AGIAUkDTcFPjZmAAAANwdYfnPso4EJA29uRlQP
call fcn.00466d59
lea eax, [ebp - 0x24]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0046929c
push eax
lea ecx, [ebp - 0x18]
call fcn.004842c8
push 3
push dword [edi]
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x128], eax
call fcn.00473466
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x128]
lea eax, [ebp + 8]
push eax
call fcn.00484a9a
add esp, 0xc
mov eax, dword [eax]
mov byte [ebp - 4], 6
test eax, eax
je 0x4855c3
mov eax, dword [eax]
jmp 0x4855c5
mov eax, ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.004705b2
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4855dd
call fcn.00474487
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x124]
cmp dword [ebp - 0x128], eax
je 0x4855f7
push dword [ebp - 0x128]
call fcn.004b86fe
pop ecx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x485603
call fcn.00474487
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004690f8
push ebx
push ecx
mov ecx, esp
push str.jLc8es9J2PqBKwGrFWE3HpuxznHITZBkg46LzQ7LjM2MSx9OSM1OD0aECY1dyohGTkLBgE9CAcFdmM5NCwkCxQwfiNoAz8XbwsEzoSCxsiGjphEycjcBsTEzQlGygSIwFqAxEkMmFuBQsSAy0kGT4bZh4qBi0NQE0Mx5kABQvDhYWLgA8FggpHQALBj4xACY7JCIZLDMSFi8rfmA3Mz17BCsyDnkcfhI_BGUFETwmdRtmJSQWESkcBTILHRUWZ2UfPDwzMyEiBCcGYiQdJW03cg0be2wXFyoRZWMKYxgbPh9wLTUHCyUmBwcCNRcjFSVlMRY_YBYtJjYYOiMIMnoqD2IiFDsOmJ6AD03PyEDMGkFa2cZFzgJYGordSEWfjgBBiB6ADwWdzkxKyULK29gAjsDPy42IQYNfzkAMAEHYCcDPhQ8AAABHw1sCxtLT8JyIi4A8MXh
call fcn.00466d59
lea eax, [ebp - 0x24]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0046929c
push eax
lea ecx, [ebp + 0xc]
call fcn.004705b2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004690f8
push 3
push dword [ebp + 0xc]
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
call fcn.00473518
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00409bcc
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x485693
push dword [ebp - 0xa8]
call fcn.004b86fe
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
neg edi
sbb edi, edi
lea ecx, [ecx - 0x10]
neg edi
call fcn.0040ce73
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
jmp 0x4856fd
push ebx
push ecx
mov ecx, esp
push str.NkruCGjg2T2KKpMRmEJYiPtyI43hOhnfJf9bDYnPwQXBQk7KTEDLBADGRoMEgwNIQQuERg7PwoRLSYjdwcwAx0BZAEMLwJiEGNvIAsaHTwiPHkxJwILOhBlHXg3EnUVMhJvPm0YMT06PmMZORs5EWcnEGYMCzs_BAw0CBwKRNpJysiLxYSFB16eSB6AQUZEBUYDxEzFzwSJBMKZSMyZSs_MiQJd3cTC2V9YGU_KzY_BgAKPycxGxNjEDMJLzUoFiY2a3sJGA4vAQQyNDUmDmwBIBo7KzkGYQEAYCAfOwQLfwshMQd9HzAzHjgiGxo5dwMUAA9iCTk8NR5_Ax0OHDksLg07JCU6YjsMAxw5BA8LOCkbOhUfMyIsDyIbNQ8iAx8dHhIxFiZ5FDwDDCQJIQo2Pw9oFSMuECULCxs3Ax0lZCdmPRYBcxtlPiEHMm89fiJqHGICNSsAAAE5dWR6vQVd_czd7sp9pg
call fcn.00466d59
lea eax, [ebp - 0x24]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0046929c
push eax
lea ecx, [ebp - 0x10]
call fcn.0048d438
lea ecx, [ebp - 0x24]
call fcn.004690f8
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040ce73
mov eax, edi
call fcn.004b96c4
ret