Function at 0x4e1a10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e960
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], esi
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
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 4
cmp dword [ebp + 8], ebx
je 0x4e1c31
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051410b
mov edi, dword [ebp + 8]
add esp, 4
mov dword [edi + 0xc], eax
cmp eax, ebx
je 0x4e1c25
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x4e1ab3
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x14], ebx
jne 0x4e1ad8
cmp dword [ebp - 0x18], ebx
jne 0x4e1ad8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
lea eax, [ebp - 0x34]
push str._s._s
push eax
call fcn.004fc310
add esp, 0x10
jmp 0x4e1b15
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push edx
lea eax, [ebp - 0x40]
push eax
lea esi, [ebp - 0x6c]
call fcn.004424d0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004fce50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x4e1b15
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov ecx, dword [edi]
push ecx
lea eax, [ebp - 0x28]
call fcn.004fcf00
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp dword [ebp - 0x28], ebx
je 0x4e1b79
mov edi, dword [ebp - 0x24]
cmp edi, ebx
jle 0x4e1b79
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov ecx, edi
lea ebx, [ebp - 0x4c]
call fcn.004fca40
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x4e1b79
mov edx, dword [ebp - 0x28]
lea ecx, [edi + 1]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [esi + 4], edi
lea eax, [ebp - 0x58]
push eax
call fcn.00442250
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004fce50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4e1bab
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push esi
lea edi, [ebp - 0x28]
call fcn.004fcc10
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x4e1bc6
mov eax, 0x538640
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e1c16
push 0x208
call fcn.0051410b
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [edx + edi*4], eax
mov eax, dword [ecx + 0xc]
lea eax, [eax + edi*4]
add esp, 4
cmp dword [eax], ebx
je 0x4e1c28
mov ecx, esi
cmp esi, ebx
jne 0x4e1bff
mov ecx, 0x538640
push ecx
mov ecx, dword [eax]
push 0x104
push ecx
call fcn.00513c73
add esp, 0xc
inc edi
mov dword [ebp - 0x14], edi
jmp 0x4e1c19
mov edi, dword [ebp - 0x14]
inc dword [ebp - 0x18]
cmp edi, dword [ebp + 0xc]
jl 0x4e1ab0
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp + 0xc]
jne 0x4e1c31
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4e1c44
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4e1c58
push esi
call fcn.005134a7
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