Function at 0x4ecf40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a960
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov byte [ebp - 4], 1
call fcn.0044b190
cmp dword [ebp + 8], ebx
je 0x4ed174
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051e808
mov edi, dword [ebp + 8]
add esp, 4
mov dword [edi + 0xc], eax
cmp eax, ebx
je 0x4ed168
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x4ecfd8
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push esi
lea eax, [ebp - 0x6c]
push eax
push ecx
lea edx, [ebp - 0x40]
push edx
xor ecx, ecx
call fcn.0044ad30
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x4ed020
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x28]
call fcn.005080c0
sub esp, 0xc
mov edi, esp
mov dword [ebp - 0x1c], esp
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp dword [ebp - 0x28], ebx
je 0x4ed087
mov esi, dword [ebp - 0x24]
cmp esi, ebx
jle 0x4ed084
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov ecx, esi
lea ebx, [ebp - 0x4c]
call fcn.00507c00
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x4ed084
mov edx, dword [ebp - 0x28]
lea ecx, [esi + 1]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x58]
push eax
call fcn.0044aab0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00508010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4ed0b9
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push ecx
lea edi, [ebp - 0x28]
call fcn.00507dd0
mov edi, dword [ebp - 0x28]
mov eax, edi
cmp edi, ebx
jne 0x4ed0d6
mov eax, 0x54ee24
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x4ed15a
push 0x208
call fcn.0051e808
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [edx + esi*4], eax
mov eax, dword [ecx + 0xc]
lea eax, [eax + esi*4]
add esp, 4
cmp dword [eax], ebx
je 0x4ed16b
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
jne 0x4ed10d
mov ecx, 0x54ee24
push ecx
mov ecx, dword [eax]
push 0x104
push ecx
call fcn.0051f979
add esp, 0xc
cmp dword [ebp + 0xc], 1
jle 0x4ed151
mov eax, edi
cmp edi, ebx
jne 0x4ed12f
mov eax, 0x54ee24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4ed151
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
jmp 0x4ed15d
inc dword [ebp - 0x18]
cmp esi, dword [ebp + 0xc]
jl 0x4ecfd5
jmp 0x4ed16b
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebp + 0xc]
jne 0x4ed174
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4ed187
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4ed19e
push eax
call fcn.0051ebab
add esp, 4
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 0x10