Function at 0x427d19
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov eax, 0x4b237e
call fcn.0049dfc4
sub esp, 0x31c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.00402f35
mov eax, dword [esi + 4]
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x20], eax
call fcn.00402f35
mov eax, dword [esi + 4]
push 1
pop edi
xor ebx, ebx
push 0x4f1ed4
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ebx
call fcn.00401c4e
mov dword [ebp - 0x48], SysStringLen
push dword [ebp - 0x20]
lea eax, [ebp - 0x64]
mov dword [ebp - 4], ebx
push dword [ebp - 0x1c]
push str.API:FindLatestEngineOnTarget_Status:__s___s
push 2
push eax
call fcn.00401e6a
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.004012b4
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x427da8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x427daf
xor eax, eax
jmp 0x428136
push 0x4e7e38
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0042900f
add esp, 0xc
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x427dd8
xor edi, edi
jmp 0x427e07
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x428015
test byte [ebp - 0x1e8], 0x10
je 0x427ffd
test byte [ebp - 0x1e8], 2
jne 0x427ffd
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x1bc]
push 0x4e7e34
push eax
call edi
test eax, eax
je 0x427ffd
lea eax, [ebp - 0x1bc]
push 0x4e7e30
push eax
call edi
test eax, eax
je 0x427ffd
xor eax, eax
lea edi, [ebp - 0x17]
mov byte [ebp - 0x18], bl
push 3
stosw word es:[edi], ax
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x18]
push eax
call fcn.0049f42c
cmp eax, 7
pop ecx
jle 0x427fd0
cmp eax, dword [ebp - 0x1c]
jle 0x427ffd
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
call fcn.00403913
mov dword [ebp - 0x30], vtable.zpath.0
lea eax, [ebp - 0x1bc]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00428dd7
push 0x4e7e38
lea ecx, [ebp - 0x30]
call fcn.00403949
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x427ee7
xor edi, edi
jmp 0x427f16
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x328]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
je 0x427f94
test byte [ebp - 0x328], 0x10
je 0x427f80
test byte [ebp - 0x328], 2
jne 0x427f80
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x2fc]
push 0x4e7e34
push eax
call edi
test eax, eax
je 0x427f80
lea eax, [ebp - 0x2fc]
push 0x4e7e30
push eax
call edi
test eax, eax
je 0x427f80
lea eax, [ebp - 0x2fc]
push eax
call fcn.0049f42c
cmp eax, dword [ebp - 0x14]
pop ecx
jle 0x427f80
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x427f2f
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x1bc]
push eax
push str._s_s
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x1bc]
push eax
call fcn.0049f42c
add esp, 0x14
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
call fcn.004036b2
jmp 0x427ffd
lea eax, [ebp - 0x1bc]
push eax
call fcn.0049f42c
cmp eax, dword [ebp - 0x10]
pop ecx
jle 0x427ffd
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1bc]
push eax
push 0x4e7e24
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x427e21
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x10], ebx
je 0x4280ee
push 0xffffffffffffffff
push dword [ebp + 0x10]
call fcn.00401275
pop ecx
mov dword [ebp - 0x34], eax
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401e1e
mov dword [ebp - 0x40], vtable.zpath.0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00428ea0
push dword [ebp + 0xc]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00428ea0
add esp, 0x18
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
call fcn.004036b2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.004036b2
lea ecx, [ebp - 0x30]
call fcn.00402f35
mov esi, dword [ebp - 0x2c]
push SysReAllocStringLen
lea ecx, [ebp - 0x64]
call fcn.00401e2f
push dword [ebp - 0x10]
mov byte [ebp - 4], 9
push esi
push str.API:FindLatestEngineOnTarget_Found:__s__MaxVer_d
push 2
push eax
call fcn.00401e6a
add esp, 0x14
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004012b4
lea ecx, [ebp - 0x30]
call fcn.00402f35
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4280e2
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004036b2
push SysReAllocStringLen
lea ecx, [ebp - 0xa8]
call fcn.00401e2f
push dword [ebp - 0x10]
mov byte [ebp - 4], 0xa
push dword [ebp + 0x10]
push str.API:FindLatestEngineOnTarget_Found:__s__Ver_d
push 2
push eax
call fcn.00401e6a
add esp, 0x14
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.004012b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004036b2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x334]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc