Function at 0x52db6a
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, 0x5aed31
call fcn.00591b5c
sub esp, 0x98
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebp - 0xa4]
and byte [eax + 8], 0
push 8
push 0
mov eax, dword [ebp - 0xa4]
add eax, 0x44
push eax
call fcn.0058ee10
add esp, 0xc
push 8
push 0
mov eax, dword [ebp - 0xa4]
add eax, 0x4c
push eax
call fcn.0058ee10
add esp, 0xc
push 8
push 0
mov eax, dword [ebp - 0xa4]
add eax, 0x3c
push eax
call fcn.0058ee10
add esp, 0xc
mov eax, dword [ebp - 0xa4]
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0xa4]
and byte [eax + 0x28], 0
mov eax, dword [ebp - 0xa4]
and dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0xa4]
add ecx, 0xc
call fcn.004cd0cb
mov eax, dword [ebp - 0xa4]
and byte [eax + 0x29], 0
cmp dword [ebp + 8], 0
jne 0x52dc0f
xor al, al
jmp 0x52de22
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x52dc78
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 8]
call fcn.004d6b05
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x52dc71
mov eax, dword [ebp - 0xa4]
mov byte [eax + 8], 1
cmp dword [ebp + 0xc], 0
je 0x52dc71
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]
xor al, al
jmp 0x52de22
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x38]
and eax, 0x10
test eax, eax
setne al
mov ecx, dword [ebp - 0xa4]
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.004d0534
lea ecx, [ebp - 0x94]
call fcn.004d1049
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0xc
call fcn.004cf872
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax + 0x28]
test eax, eax
je 0x52dcfd
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.004d5c2c
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x52dd11
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 0x52dd38
and byte [ebp - 0x9d], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004d018e
mov al, byte [ebp - 0x9d]
jmp 0x52de22
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 0x52dd89
push 0
push dword [ebp - 0x18]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0x9e], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004d018e
mov al, byte [ebp - 0x9e]
jmp 0x52de22
mov eax, dword [ebp - 0xa4]
add eax, 0x44
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [ebp - 0xa4]
add eax, 0x4c
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [ebp - 0xa4]
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 - 0xa4]
mov dword [ecx + 0x2c], eax
push dword [ebp - 0x30]
mov eax, dword [ebp - 0xa4]
push dword [eax + 0x2c]
call fcn.004e80f0
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
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 - 0x9f], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004d018e
mov al, byte [ebp - 0x9f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8