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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4172c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
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.0040b970
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 0x4190c0
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.Aolrev
mov byte [ebp - 4], 4
call edi
push 0x41b8a0
lea ecx, [ebp - 0x14]
call edi
push 0x41bdc8
lea ecx, [ebp - 0x14]
call edi
push 0x41bdcc
lea ecx, [ebp - 0x14]
call edi
push 0x41bdc8
lea ecx, [ebp - 0x14]
call edi
push 0x41bdd0
lea ecx, [ebp - 0x14]
call edi
push 0x41bb74
lea ecx, [ebp - 0x14]
call edi
push 0x41bdd4
lea ecx, [ebp - 0x14]
call edi
push 0x41bdd8
lea ecx, [ebp - 0x14]
call edi
push 0x41bddc
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 0x40c65a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c67d
push dword [esi + 4]
call fcn.0040d270
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 [0x426274], 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 [sym.imp.FSUTIL.dll_public:_class_AString_const____thiscall_AString::operator_class_AString_const__]
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.0040cb90
push dword [ebp - 0x24]
mov ebx, eax
call fcn.0040d1c0
add esp, 4
cmp dword [0x426274], 0
je 0x40c6fb
test ebx, ebx
jne 0x40c702
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