Function at 0x4504c1
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 [0x759e6c]
xor eax, ebp
mov dword [ebp + 0x320], eax
push 0xc
mov eax, 0x66bbe1
call fcn.0063640e
mov edi, ecx
mov ecx, dword [edi + 0x44]
lea edx, [ebp + 0x8c]
push edx
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [edi + 0x44]
and dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp + 0x38]
mov byte [ebp - 0x11], al
call fcn.004442cc
xor ebx, ebx
lea ecx, [ebp + 0x54]
inc ebx
mov byte [ebp - 4], bl
call fcn.004442cc
lea eax, [ebp + 0xc4]
mov byte [ebp - 4], 3
push eax
call fcn.0044639c
mov esi, eax
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.0043e041
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.0043e041
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 3
call fcn.004496bd
push 0x104
lea eax, [ebp + 0x118]
mov dword [ebp - 4], 2
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp]
call fcn.004442b1
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.0043c659
inc eax
lea ecx, [ebp + 4]
push eax
push esi
lea eax, [ebp + 0xe4]
push eax
call fcn.0043d03a
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 + 0xe4]
mov byte [ebp - 4], 9
call fcn.0042341c
push ebx
push 0x1a
lea eax, [ebp + 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x45065f
push 0x70522c
lea ecx, [ebp + 0xe4]
call fcn.00409ba7
push str.cannotGetAppDataPath
lea ecx, [ebp + 0x100]
mov byte [ebp - 4], 0xb
call fcn.00409ba7
push str.failGeneral
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 0xc
call fcn.00409ba7
lea eax, [ebp + 0xe4]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0x100]
mov ecx, edi
push eax
push esi
lea eax, [ebp + 0x74]
push eax
call fcn.0044dc4e
push esi
push ebx
lea ecx, [ebp + 0x74]
call fcn.0040a0e9
push esi
push ebx
lea ecx, [ebp + 0x100]
call fcn.0040a0e9
push esi
push ebx
lea ecx, [ebp + 0xe4]
call fcn.0040a0e9
jmp 0x45084a
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004442b1
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
mov edi, 0x6909c0
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.00434b9c
neg eax
sbb al, al
inc al
cmp dword [ebp + 0xa0], 0
mov dword [ebp - 0x18], eax
je 0x450757
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xe0]
push eax
mov eax, dword [ebp]
lea ecx, [ebp]
call dword [eax + 0x3c]
cmp dword [ebp + 0xf8], 8
mov eax, dword [ebp + 0xe4]
jae 0x4506e2
lea eax, [ebp + 0xe4]
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x450740
cmp byte [ebp - 0x18], 0
je 0x450718
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xe
call fcn.00444328
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.00444328
mov ebx, esi
jmp 0x45084a
cmp byte [ebp - 0x11], 0
je 0x450746
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xe
call fcn.00444328
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.00444328
push 2
jmp 0x450849
cmp byte [ebp - 0x18], 0
jne 0x4506f6
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xe
call fcn.00444328
jmp 0x450767
cmp byte [ebp - 0x11], 0
jne 0x45072d
test al, al
jne 0x450705
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x70]
push eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
call dword [eax + 0x3c]
mov edx, dword [eax]
lea ecx, [ebp + 0xa8]
push 0x692014
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call dword [edx + 0x34]
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 0x12
call fcn.00444328
cmp dword [ebp + 0xc0], 8
mov eax, dword [ebp + 0xac]
jae 0x4507b0
lea eax, [ebp + 0xac]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4507d5
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0xe
call fcn.00444328
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.00444328
jmp 0x45084a
cmp dword [ebp + 0xa0], 0
je 0x450878
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xfc]
push eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
call dword [eax + 0x3c]
cmp dword [ebp + 0x114], 8
mov eax, dword [ebp + 0x100]
jae 0x45080e
lea eax, [ebp + 0x100]
push eax
call edi
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0xfc]
cmp eax, 0xffffffff
jne 0x450827
call fcn.00444328
jmp 0x4507b8
call fcn.00444328
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0xe
call fcn.00444328
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.00444328
push 3
pop ebx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00444328
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0
call fcn.004496bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x8c]
call fcn.00444328
mov eax, ebx
jmp 0x450965
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0xe
call fcn.00444328
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.00444328
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00444328
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0
call fcn.004496bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x8c]
call fcn.00444328
push 3
pop eax
jmp 0x450965
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.00636364
lea esp, [ebp + 0x324]
pop ebp
ret