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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550235
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
lea esi, [eax + 0x20c]
mov dword [ebp - 4], 0
lea edi, [esi + 0x10]
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
add eax, 0x13
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x30], 8
call fcn.00409fe0
cmp dword [esi + 0x14], 0x10
jb 0x40f745
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00409bf0
push 0x13
push str.Secure_Preferences
lea ecx, [ebp - 0x2c]
call fcn.00409bf0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
lea esi, [edi + 0x134]
cmp esi, eax
je 0x40f79c
mov ecx, esi
call fcn.00409830
movups xmm0, xmmword [ebp - 0x2c]
mov eax, 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
jmp 0x40f79f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x40f7d9
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f915
push edx
push ecx
call fcn.005150f8
add esp, 8
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409940
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov edx, dword [ebp - 0x18]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0x11], al
cmp edx, 0x10
jb 0x40f834
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f827
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f91a
push edx
push ecx
call fcn.005150f8
mov al, byte [ebp - 0x11]
add esp, 8
test al, al
jne 0x40f8f8
push 4
push 0x57037c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
call fcn.00409ab0
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x30], 1
call fcn.00425e70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40f8ae
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f8a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f91f
push edx
push ecx
call fcn.005150f8
add esp, 8
sub esp, 8
mov dword [ebp - 4], 2
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 6
mov ecx, esp
lea edx, [ebp - 0x64]
push eax
push edx
call fcn.00419d30
mov ecx, dword [edi + 0x5c]
push 6
call fcn.0044d0b0
push fcn.0040e2f0
push 1
push 0x30
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.0051510b
mov eax, 0xffffff9c
jmp 0x40f8fa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
int3