Function at 0x45369f
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 [0x7a6168]
xor eax, ebp
mov dword [ebp + 0x320], eax
push 0x10
mov eax, 0x69f098
call fcn.00640871
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.00447acd
xor ebx, ebx
lea ecx, [ebp + 0x54]
inc ebx
mov byte [ebp - 4], bl
call fcn.00447acd
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.004499e7
mov edi, eax
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.004418cd
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.004418cd
lea ecx, [ebp + 0x8c]
call fcn.00447b2e
lea ecx, [ebp + 0x70]
call fcn.00447b2e
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.00447aa9
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.0043fb86
inc eax
lea ecx, [ebp + 4]
push eax
push esi
lea eax, [ebp + 0x100]
push eax
call fcn.004407ff
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.004281f2
push ebx
push 0x1a
lea eax, [ebp + 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x45384e
push 0x74471c
lea ecx, [ebp + 0x100]
call fcn.0040eeff
push str.cannotGetAppDataPath
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 0xb
call fcn.0040eeff
push str.failGeneral
lea ecx, [ebp + 0xe4]
mov byte [ebp - 4], 0xc
call fcn.0040eeff
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.00451017
push esi
push ebx
lea ecx, [ebp + 0xe4]
call fcn.0040f52f
push esi
push ebx
lea ecx, [ebp + 0x90]
call fcn.0040f52f
push esi
push ebx
lea ecx, [ebp + 0x100]
call fcn.0040f52f
jmp 0x453a11
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00447aa9
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
mov edi, 0x6c7da8
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.00438e88
cmp dword [ebp + 0xbc], 0
mov dword [ebp - 0x18], eax
je 0x45392c
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 0x4538cb
lea eax, [ebp + 0x100]
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x453919
cmp dword [ebp - 0x18], 0
jne 0x4538f9
lea ecx, [ebp + 0xfc]
call fcn.00447b2e
lea ecx, [ebp + 0x1c]
call fcn.00447b2e
mov ebx, esi
jmp 0x453a11
cmp byte [ebp - 0x11], 0
je 0x45391f
lea ecx, [ebp + 0xfc]
call fcn.00447b2e
lea ecx, [ebp + 0x1c]
call fcn.00447b2e
push 2
jmp 0x453a10
cmp dword [ebp - 0x18], 0
je 0x4538df
lea ecx, [ebp + 0xfc]
call fcn.00447b2e
jmp 0x45393c
cmp byte [ebp - 0x11], 0
jne 0x45390a
test eax, eax
je 0x4538ea
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 0x6c9544
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.00447b2e
cmp dword [ebp + 0xdc], 8
mov eax, dword [ebp + 0xc8]
jae 0x45398b
lea eax, [ebp + 0xc8]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4539a8
lea ecx, [ebp + 0xc4]
call fcn.00447b2e
lea ecx, [ebp + 0x1c]
call fcn.00447b2e
jmp 0x453a11
cmp dword [ebp + 0xbc], 0
je 0x453a3b
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 0x4539e1
lea eax, [ebp + 0x90]
push eax
call edi
lea ecx, [ebp + 0x8c]
cmp eax, 0xffffffff
jne 0x4539f6
call fcn.00447b2e
jmp 0x453993
call fcn.00447b2e
lea ecx, [ebp + 0xc4]
call fcn.00447b2e
lea ecx, [ebp + 0x1c]
call fcn.00447b2e
push 3
pop ebx
lea ecx, [ebp]
call fcn.00447b2e
lea ecx, [ebp + 0x54]
call fcn.00447b2e
lea ecx, [ebp + 0x38]
call fcn.00447b2e
lea ecx, [ebp + 0xa8]
call fcn.00447b2e
mov eax, ebx
jmp 0x453b23
lea ecx, [ebp + 0xc4]
call fcn.00447b2e
lea ecx, [ebp + 0x1c]
call fcn.00447b2e
lea ecx, [ebp]
call fcn.00447b2e
lea ecx, [ebp + 0x54]
call fcn.00447b2e
lea ecx, [ebp + 0x38]
call fcn.00447b2e
lea ecx, [ebp + 0xa8]
call fcn.00447b2e
push 3
pop eax
jmp 0x453b23
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.006407be
lea esp, [ebp + 0x324]
pop ebp
ret