Function at 0x52d7be
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size

Disassembly:
mov eax, 0x5aed31
call fcn.00591b5c
sub esp, 0x3c8
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x3d4], ecx
mov eax, dword [ebp - 0x3d4]
and byte [eax + 8], 0
push 8
push 0
mov eax, dword [ebp - 0x3d4]
add eax, 0x44
push eax
call fcn.0058ee10
add esp, 0xc
push 8
push 0
mov eax, dword [ebp - 0x3d4]
add eax, 0x4c
push eax
call fcn.0058ee10
add esp, 0xc
push 8
push 0
mov eax, dword [ebp - 0x3d4]
add eax, 0x3c
push eax
call fcn.0058ee10
add esp, 0xc
mov eax, dword [ebp - 0x3d4]
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0x3d4]
and byte [eax + 0x28], 0
mov eax, dword [ebp - 0x3d4]
and dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x3d4]
add ecx, 0xc
call fcn.004cd0cb
mov eax, dword [ebp - 0x3d4]
and byte [eax + 0x29], 0
cmp dword [ebp + 8], 0
jne 0x52d887
cmp dword [ebp + 0xc], 0
je 0x52d880
push str.loadFileInfoAnsi_failed:_no_filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
xor al, al
jmp 0x52db4e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x52d952
cmp dword [ebp + 0xc], 0
je 0x52d8cc
lea eax, [ebp - 0x3cc]
push eax
push 0x320
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x3cc]
push eax
push str.curDir
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
cmp dword [ebp + 0xc], 0
je 0x52d8e2
push str.loadFileInfoAnsi_failed:_cannot_get_attributes
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 8]
call fcn.004d6a3c
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x52d932
mov eax, dword [ebp - 0x3d4]
mov byte [eax + 8], 1
cmp dword [ebp + 0xc], 0
je 0x52d932
push dword [ebp - 0x9c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x38]
push str.File_does_not_exist.
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
cmp dword [ebp + 0xc], 0
je 0x52d94b
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
xor al, al
jmp 0x52db4e
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 0x3d4]
mov eax, dword [eax + 0x38]
and eax, 0x10
test eax, eax
setne al
mov ecx, dword [ebp - 0x3d4]
mov byte [ecx + 0x28], al
lea ecx, [ebp - 0x94]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x94]
call fcn.004d03d5
lea ecx, [ebp - 0x94]
call fcn.004d1049
push eax
mov ecx, dword [ebp - 0x3d4]
add ecx, 0xc
call fcn.004cf872
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x3d4]
movzx eax, byte [eax + 0x28]
test eax, eax
je 0x52d9d7
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.004d5c2c
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x52d9eb
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.004d5a6a
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x52da3b
cmp dword [ebp + 0xc], 0
je 0x52da1a
push str.loadFileInfoAnsi_failed:_cannot_open_for_reading
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
and byte [ebp - 0x3cd], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004d018e
mov al, byte [ebp - 0x3cd]
jmp 0x52db4e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x52dab5
cmp dword [ebp + 0xc], 0
je 0x52da88
push str.loadFileInfoAnsi_failed:_cannot_get_file_time
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
push 0
push dword [ebp - 0x18]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0x3ce], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004d018e
mov al, byte [ebp - 0x3ce]
jmp 0x52db4e
mov eax, dword [ebp - 0x3d4]
add eax, 0x44
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [ebp - 0x3d4]
add eax, 0x4c
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [ebp - 0x3d4]
add eax, 0x3c
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x3d4]
mov dword [ecx + 0x2c], eax
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x3d4]
push dword [eax + 0x2c]
call fcn.004e80f0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3d4]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
push 0
push dword [ebp - 0x18]
call fcn.004e81eb
pop ecx
pop ecx
mov byte [ebp - 0x3cf], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004d018e
mov al, byte [ebp - 0x3cf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0xa0]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret 8