Function at 0x4e2850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575c5e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0x10], 0
je 0x4e289b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
cmp dword [ebp + 0x14], 0
je 0x4e28b5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], eax
cmp dword [ebp + 0x18], 0
je 0x4e28cf
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x23c]
add ecx, 0x24
call fcn.0041a580
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 8], 0xffffffff
jne 0x4e2b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jne 0x4e2b65
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041a130
mov dword [ebp - 4], 0
push 0x5f
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.004dfd20
mov dword [ebp - 0x220], eax
push 0x5f
push 0x7c
lea ecx, [ebp - 0x10]
call fcn.004dfd20
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
push 0x5f
push 0x3c
lea ecx, [ebp - 0x10]
call fcn.004dfd20
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
push 0x5f
push 0x3e
lea ecx, [ebp - 0x10]
call fcn.004dfd20
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
push 0x5f
push 0x3f
lea ecx, [ebp - 0x10]
call fcn.004dfd20
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e2b0d
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
and eax, 0x10
jne 0x4e2b0d
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
push edx
lea ecx, [ebp - 0x22c]
call fcn.0041a130
mov byte [ebp - 4], 1
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x234], 0
jmp 0x4e2a63
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x3e8
jge 0x4e2afe
lea ecx, [ebp - 0x238]
call fcn.00438030
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
push ecx
push str._03d
lea edx, [ebp - 0x238]
push edx
call fcn.004386c0
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x238]
call fcn.0048d3e0
lea ecx, [ebp - 0x238]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e2aea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.0044fc20
jmp 0x4e2afe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.0044fc20
jmp 0x4e2a54
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.0044fc20
push 0
mov eax, dword [ebp + 0xc]
push eax
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x23c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 8], 0xffffffff
je 0x4e2b56
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044fc20
mov eax, dword [ebp - 0x23c]
xor ecx, ecx
cmp dword [eax + 8], 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 0x14