Function at 0x4ce7d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537e50
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.004ed480
xor ebx, ebx
cmp eax, ebx
je 0x4ce9f3
cmp dword [eax + 8], ebx
jle 0x4ce9f3
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4ce9f3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x93ac]
mov dword [ebp + 8], ebx
cmp dword [eax + 0xc], ebx
jle 0x4ce85d
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, eax
je 0x4ce85d
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 0x4ce9f3
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 0x4ce8c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
jle 0x4ce8c4
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 0x4ce8c4
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 0x4ce92e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
jle 0x4ce92b
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 0x4ce92b
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 0x4ce976
push eax
call fcn.0051ebab
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 0x4ce982
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 0x4cea0a
cmp eax, ebx
je 0x4ce9aa
push eax
call fcn.0051ebab
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 0x4ce9c3
push esi
call fcn.0051ebab
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 0x4ce9e3
push eax
call fcn.0051ebab
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 0x4ce869
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 0x4cea20
push eax
call fcn.0051ebab
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 0x4cea30
push esi
call fcn.0051ebab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4cea47
push eax
call fcn.0051ebab
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