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

Disassembly:
push ebp
sub esp, 0x320
lea ebp, [esp - 4]
mov eax, dword [0x7990a8]
xor eax, ebp
mov dword [ebp + 0x320], eax
push 0x10
mov eax, 0x69621e
call fcn.00637bf1
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebx + 0x44]
lea edx, [ebp + 0xa8]
push edx
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [ebx + 0x44]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ecx]
call dword [eax + 0x20]
lea ecx, [ebp + 0x38]
mov byte [ebp - 0x11], al
call fcn.00446045
xor ebx, ebx
lea ecx, [ebp + 0x54]
inc ebx
mov byte [ebp - 4], bl
call fcn.00446045
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00447f20
mov edi, eax
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.0043fec1
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.0043fec1
lea ecx, [ebp + 0x8c]
call fcn.004460a6
lea ecx, [ebp + 0x70]
call fcn.004460a6
push 0x104
lea eax, [ebp + 0x118]
mov dword [ebp - 4], 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp]
call fcn.00446021
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 4]
mov dword [ebp - 0x18], 0x5c
call fcn.0043e128
inc eax
lea ecx, [ebp + 4]
push eax
push esi
lea eax, [ebp + 0x100]
push eax
call fcn.0043ed9c
push eax
mov eax, dword [ebp]
lea ecx, [ebp]
mov byte [ebp - 4], 0xa
call dword [eax + 0x50]
push esi
push ebx
lea ecx, [ebp + 0x100]
mov byte [ebp - 4], 9
call fcn.004267c2
push ebx
push 0x1a
lea eax, [ebp + 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x451c97
push 0x73938c
lea ecx, [ebp + 0x100]
call fcn.0040d4cf
push str.cannotGetAppDataPath
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 0xb
call fcn.0040d4cf
push str.failGeneral
lea ecx, [ebp + 0xe4]
mov byte [ebp - 4], 0xc
call fcn.0040d4cf
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp + 0x90]
mov byte [ebp - 4], 0xd
push eax
push esi
lea eax, [ebp + 0xe4]
push eax
call fcn.0044f451
push esi
push ebx
lea ecx, [ebp + 0xe4]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp + 0x90]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp + 0x100]
call fcn.0040daff
jmp 0x451e5a
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00446021
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
mov edi, 0x6bdb00
mov byte [ebp - 4], 0xe
push edi
call dword [eax + 0x24]
lea ecx, [ebp + 0x38]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp + 4]
call fcn.00437447
cmp dword [ebp + 0xbc], 0
mov dword [ebp - 0x18], eax
je 0x451d75
mov edx, dword [ebp]
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp + 0xfc]
push eax
lea ecx, [ebp]
call dword [edx + 0x3c]
cmp dword [ebp + 0x114], 8
mov eax, dword [ebp + 0x100]
jae 0x451d14
lea eax, [ebp + 0x100]
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x451d62
cmp dword [ebp - 0x18], 0
jne 0x451d42
lea ecx, [ebp + 0xfc]
call fcn.004460a6
lea ecx, [ebp + 0x1c]
call fcn.004460a6
mov ebx, esi
jmp 0x451e5a
cmp byte [ebp - 0x11], 0
je 0x451d68
lea ecx, [ebp + 0xfc]
call fcn.004460a6
lea ecx, [ebp + 0x1c]
call fcn.004460a6
push 2
jmp 0x451e59
cmp dword [ebp - 0x18], 0
je 0x451d28
lea ecx, [ebp + 0xfc]
call fcn.004460a6
jmp 0x451d85
cmp byte [ebp - 0x11], 0
jne 0x451d53
test eax, eax
je 0x451d33
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0xe0]
push eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
call dword [eax + 0x3c]
mov edx, dword [eax]
lea ecx, [ebp + 0xc4]
push 0x6bf124
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call dword [edx + 0x34]
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x11
call fcn.004460a6
cmp dword [ebp + 0xdc], 8
mov eax, dword [ebp + 0xc8]
jae 0x451dd4
lea eax, [ebp + 0xc8]
push eax
call edi
cmp eax, 0xffffffff
jne 0x451df1
lea ecx, [ebp + 0xc4]
call fcn.004460a6
lea ecx, [ebp + 0x1c]
call fcn.004460a6
jmp 0x451e5a
cmp dword [ebp + 0xbc], 0
je 0x451e84
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp + 0x8c]
push eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
call dword [eax + 0x3c]
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x451e2a
lea eax, [ebp + 0x90]
push eax
call edi
lea ecx, [ebp + 0x8c]
cmp eax, 0xffffffff
jne 0x451e3f
call fcn.004460a6
jmp 0x451ddc
call fcn.004460a6
lea ecx, [ebp + 0xc4]
call fcn.004460a6
lea ecx, [ebp + 0x1c]
call fcn.004460a6
push 3
pop ebx
lea ecx, [ebp]
call fcn.004460a6
lea ecx, [ebp + 0x54]
call fcn.004460a6
lea ecx, [ebp + 0x38]
call fcn.004460a6
lea ecx, [ebp + 0xa8]
call fcn.004460a6
mov eax, ebx
jmp 0x451f6c
lea ecx, [ebp + 0xc4]
call fcn.004460a6
lea ecx, [ebp + 0x1c]
call fcn.004460a6
lea ecx, [ebp]
call fcn.004460a6
lea ecx, [ebp + 0x54]
call fcn.004460a6
lea ecx, [ebp + 0x38]
call fcn.004460a6
lea ecx, [ebp + 0xa8]
call fcn.004460a6
push 3
pop eax
jmp 0x451f6c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x320]
xor ecx, ebp
call fcn.00637b3e
lea esp, [ebp + 0x324]
pop ebp
ret