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

Disassembly:
mov eax, 0x4a0224
call fcn.0047d43c
sub esp, 0x47c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x487]
mov byte [ebp - 0x488], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
mov byte [ebp - 0xe], 1
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x458942
lea eax, [ebp - 0x488]
mov byte [ebp - 0xe], bl
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x458942
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x15]
push ebx
push eax
lea eax, [ebp - 0x488]
mov edi, 0x4a4238
mov esi, 0x4a4230
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x78], esi
call fcn.00402d70
push 0x4bd790
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 1
call fcn.0044fb94
lea ecx, [ebp - 0x98]
call fcn.00459262
cmp dword [ebp + 0xc], 0x2b
je 0x45899d
cmp dword [ebp + 0xc], 0x26
jne 0x4589e9
lea ecx, [ebp - 0x98]
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
cmp al, bl
je 0x4589e5
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x98]
push eax
call fcn.0045908e
cmp dword [eax + 0xc], ebx
lea ecx, [ebp - 0xcc]
setne byte [ebp - 0xd]
call fcn.00402438
cmp byte [ebp - 0xd], bl
mov byte [ebp - 0xd], bl
jne 0x4589e9
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xe], bl
jne 0x4589f3
cmp byte [ebp - 0xd], bl
je 0x458a53
lea eax, [ebp - 0xe]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x28], esi
call fcn.00403cd9
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
sub eax, 5
je 0x458e49
sub eax, 0xf
je 0x458dd6
sub eax, 6
je 0x458c4a
dec eax
dec eax
je 0x458c4a
sub eax, 7
je 0x458c4a
sub eax, 3
je 0x458b43
sub eax, 5
je 0x458a74
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402438
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], 1
jmp 0x458fa6
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.0045961d
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xd
call fcn.00459262
lea ecx, [ebp - 0x70]
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
cmp al, bl
je 0x458acc
lea eax, [ebp - 0x2b4]
lea ecx, [ebp - 0x70]
push eax
call fcn.0045908e
cmp dword [eax + 0xc], ebx
lea ecx, [ebp - 0x2b4]
sete byte [ebp + 0xf]
call fcn.00402438
cmp byte [ebp + 0xf], bl
je 0x458b1e
lea eax, [ebp - 0x1e4]
push 0x26
push eax
call fcn.004588c8
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00458fc6
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00405b19
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 0xd
call fcn.00402438
push str.Common_Files_
lea ecx, [ebp - 0x70]
call fcn.0044fb94
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
jmp 0x458e3f
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0045961d
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xf
call fcn.00459262
lea ecx, [ebp - 0x70]
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
cmp al, bl
je 0x458b9e
lea eax, [ebp - 0x31c]
lea ecx, [ebp - 0x70]
push eax
call fcn.0045908e
cmp dword [eax + 0xc], ebx
lea ecx, [ebp - 0x31c]
sete byte [ebp + 0xf]
call fcn.00402438
cmp byte [ebp + 0xf], bl
je 0x458c25
lea eax, [ebp - 0x144]
push ebx
push eax
call fcn.0044fa57
pop ecx
pop ecx
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0x10
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00405b19
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xf
call fcn.00402438
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x70]
push eax
call fcn.0045908e
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0x11
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00405b19
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xf
call fcn.00402438
push str.Program_Files
lea ecx, [ebp - 0x70]
call fcn.0044fb94
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
jmp 0x458e3f
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x458c94
lea eax, [ebp - 0x1bc]
push ebx
push eax
call fcn.0044fa57
pop ecx
pop ecx
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 8
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405b19
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1bc]
jmp 0x458d68
lea eax, [ebp - 0x16c]
push 5
push eax
call fcn.004588c8
pop ecx
pop ecx
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 9
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405b19
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.00402438
cmp dword [ebp - 0x3c], ebx
je 0x458d6d
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x48]
push eax
call fcn.00458fc6
mov ecx, eax
call fcn.00458feb
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xa
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405b19
lea ecx, [ebp - 0x384]
mov byte [ebp - 4], 2
call fcn.00402438
cmp dword [ebp + 0xc], 0x23
jne 0x458dab
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x48]
push eax
call fcn.00458fc6
mov ecx, eax
call fcn.00458feb
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xb
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405b19
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00402438
cmp dword [ebp + 0xc], 0x23
jne 0x458dab
lea eax, [ebp - 0xd]
push 1
push eax
push str.All_Users_
lea ecx, [ebp - 0xf4]
call fcn.00402d70
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xc
call fcn.00459190
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.00402438
push str.Application_Data_
lea ecx, [ebp - 0x48]
call fcn.0044fb94
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], 1
jmp 0x458f9a
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.0044fa57
pop ecx
pop ecx
lea eax, [ebp - 0x16]
push 1
push eax
push str.Fonts
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x12
call fcn.00402d70
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 0x13
call fcn.00459190
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x12
call fcn.00402438
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00402438
jmp 0x458f9a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x458eb9
lea eax, [ebp - 0x194]
push ebx
push eax
call fcn.0044fa57
pop ecx
pop ecx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.0045908e
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 4
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405b19
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00402438
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 2
call fcn.00402438
jmp 0x458f6d
lea eax, [ebp - 0xc0]
push 2
push eax
call fcn.004588c8
pop ecx
pop ecx
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00458fc6
mov ecx, eax
call fcn.00458feb
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 6
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405b19
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 5
call fcn.00402438
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00402438
lea eax, [ebp - 0x350]
lea ecx, [ebp - 0x48]
push eax
call fcn.00458fc6
mov ecx, eax
call fcn.00458feb
push dword [0x4a36c0]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 7
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405b19
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 2
call fcn.00402438
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x458f74
push str.My_Documents_
jmp 0x458f79
push str.Personal_
lea ecx, [ebp - 0x48]
call fcn.0044fb94
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402438
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], bl
call fcn.00402438
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret