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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dc98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.004770a0
push 0xa
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [esi], vtable.LegacySecurity.0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AMapStringToPtr::constructor_int_]
mov ebx, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp - 0x18]
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 2
mov dword [esi + 0xc], 0
call ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetExecutableDir_void_]
push 0x490e40
lea ecx, [ebp - 0x14]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov edi, dword [sym.imp.FSUTIL.dll_public:_class_AString_const____thiscall_AString::operator_char_const__]
lea ecx, [ebp - 0x14]
push str.AColev
mov byte [ebp - 4], 4
call edi
push 0x4a5030
lea ecx, [ebp - 0x14]
call edi
push 0x4a5034
lea ecx, [ebp - 0x14]
call edi
push 0x4a5038
lea ecx, [ebp - 0x14]
call edi
push 0x4a5034
lea ecx, [ebp - 0x14]
call edi
push 0x495d7c
lea ecx, [ebp - 0x14]
call edi
push 0x4a1344
lea ecx, [ebp - 0x14]
call edi
push 0x4a503c
lea ecx, [ebp - 0x14]
call edi
push 0x4a5040
lea ecx, [ebp - 0x14]
call edi
push 0x4a5044
lea ecx, [ebp - 0x14]
call edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AString_const__]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
je 0x47807a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47809d
push dword [esi + 4]
call fcn.00478c70
add esp, 4
mov edi, eax
lea eax, [esi + 0xc]
push eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [0x4c0dc8], 0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], 0
call ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetExecutableDir_void_]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AFilePath::GetFullPath_void_]
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 6
call dword [0x48f52c]
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.00478590
push dword [ebp - 0x24]
mov ebx, eax
call fcn.00478bc0
add esp, 4
cmp dword [0x4c0dc8], 0
je 0x47811b
test ebx, ebx
jne 0x478122
mov dword [esi + 0x2c], 0x100000
lea ecx, [ebp - 0x20]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0x14]
call edi
lea ecx, [ebp - 0x18]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret