Function at 0x4ce7f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537d60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edx
mov byte [ebp - 0xd], 1
call fcn.004ed4a0
xor ebx, ebx
cmp eax, ebx
je 0x4cea13
cmp dword [eax + 8], ebx
jle 0x4cea13
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4cea13
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x93ac]
mov dword [ebp + 8], ebx
cmp dword [eax + 0xc], ebx
jle 0x4ce87d
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, eax
je 0x4ce87d
sub eax, ecx
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 8], ebx
jle 0x4cea13
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
cmp edi, ebx
je 0x4ce8e4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
jle 0x4ce8e4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov ecx, esi
lea ebx, [ebp - 0x44]
call fcn.00507c00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
cmp ecx, ebx
je 0x4ce8e4
mov edx, dword [ebp - 0x2c]
lea ecx, [esi + 1]
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0xc]
mov edi, dword [ecx + edx*4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp edi, ebx
je 0x4ce94e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
jle 0x4ce94b
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov ecx, esi
lea ebx, [ebp - 0x50]
call fcn.00507c00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
cmp ecx, ebx
je 0x4ce94b
mov edx, dword [ebp - 0x20]
lea ecx, [esi + 1]
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x20]
push 0x54ede0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov byte [ebp - 4], 1
call fcn.00508260
lea edx, [ebp - 0x20]
push edx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 2
call fcn.005081a0
add esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4ce996
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4ce9a2
mov eax, 0x54ee24
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
test eax, eax
mov eax, dword [ebp - 0x38]
je 0x4cea2a
cmp eax, ebx
je 0x4ce9ca
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x4ce9e3
push esi
call fcn.0051eadb
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4cea03
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp + 8]
jl 0x4ce889
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
je 0x4cea40
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x4cea50
push esi
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4cea67
push eax
call fcn.0051eadb
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8