Function at 0x4ecf60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a830
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.0044b070
cmp dword [ebp + 8], ebx
je 0x4ed194
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051e738
mov edi, dword [ebp + 8]
add esp, 4
mov dword [edi + 0xc], eax
cmp eax, ebx
je 0x4ed188
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x4ecff8
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.0044ac10
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 0x4ed040
push eax
call fcn.0051eadb
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 0x4ed0a7
mov esi, dword [ebp - 0x24]
cmp esi, ebx
jle 0x4ed0a4
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 0x4ed0a4
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.0044a990
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 0x4ed0d9
push eax
call fcn.0051eadb
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 0x4ed0f6
mov eax, 0x54ee24
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x4ed17a
push 0x208
call fcn.0051e738
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 0x4ed18b
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
jne 0x4ed12d
mov ecx, 0x54ee24
push ecx
mov ecx, dword [eax]
push 0x104
push ecx
call fcn.0051f8a9
add esp, 0xc
cmp dword [ebp + 0xc], 1
jle 0x4ed171
mov eax, edi
cmp edi, ebx
jne 0x4ed14f
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 0x4ed171
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
jmp 0x4ed17d
inc dword [ebp - 0x18]
cmp esi, dword [ebp + 0xc]
jl 0x4ecff5
jmp 0x4ed18b
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebp + 0xc]
jne 0x4ed194
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4ed1a7
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4ed1be
push eax
call fcn.0051eadb
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