Function at 0x482520
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
mov eax, 0x4c8ef0
call fcn.004afb5c
mov dword [ebp - 0x58], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004b9bd8
inc dword [ebp - 0x58]
mov word [ebp - 0x64], 8
mov word [ebp - 0x64], 0x14
lea eax, [ebp - 4]
call fcn.00401790
mov edx, eax
inc dword [ebp - 0x58]
lea eax, [ebp + 0xc]
call fcn.004ba014
mov word [ebp - 0x64], 8
mov word [ebp - 0x64], 0x20
mov edx, str._WINDIR_
lea eax, [ebp - 8]
call fcn.004b9ba0
inc dword [ebp - 0x58]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004ba258
mov dword [ebp - 0x78], eax
dec dword [ebp - 0x58]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
cmp dword [ebp - 0x78], 0
jle 0x4826d4
mov word [ebp - 0x64], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
mov ecx, dword [ebp - 0x78]
dec ecx
lea eax, [ebp + 0xc]
mov edx, 1
call fcn.004ba124
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
lea eax, [ebp - 0x10]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
call fcn.0040ac9c
pop ecx
lea edx, [ebp - 0x10]
pop ecx
pop eax
call fcn.004b9d58
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x78]
add ecx, 8
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
call fcn.0040ada4
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x58]
pop edx
pop eax
call fcn.004b9d58
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x64], 0x38
push eax
dec dword [ebp - 0x58]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x64], 0x2c
inc dword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
jmp 0x482a2c
mov word [ebp - 0x64], 0x44
mov edx, str._SYSPART_
lea eax, [ebp - 0x20]
call fcn.004b9ba0
inc dword [ebp - 0x58]
lea edx, [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.004ba258
mov dword [ebp - 0x78], eax
dec dword [ebp - 0x58]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004b9d00
cmp dword [ebp - 0x78], 0
jle 0x482869
mov word [ebp - 0x64], 0x50
lea eax, [ebp - 0x2c]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
lea eax, [ebp - 0x28]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
call fcn.0040ac9c
pop ecx
lea eax, [ebp - 0x28]
mov ecx, 2
mov edx, 1
call fcn.004ba124
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
mov ecx, dword [ebp - 0x78]
dec ecx
lea eax, [ebp + 0xc]
mov edx, 1
call fcn.004ba124
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x30]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x58]
pop eax
pop edx
call fcn.004b9d58
lea ecx, [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x78]
add eax, 9
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
call fcn.0040ada4
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x38]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x58]
pop edx
pop eax
call fcn.004b9d58
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x64], 0x5c
push eax
dec dword [ebp - 0x58]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x64], 0x50
inc dword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
jmp 0x482a2c
mov word [ebp - 0x64], 0x68
mov edx, str._PROGRAMFILES_
lea eax, [ebp - 0x3c]
call fcn.004b9ba0
inc dword [ebp - 0x58]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.004ba258
mov dword [ebp - 0x78], eax
dec dword [ebp - 0x58]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004b9d00
cmp dword [ebp - 0x78], 0
jle 0x4829dd
lea ecx, [ebp - 0x17c]
push ecx
push 0
push 0
push 0x26
push 0
call sub.SHFOLDER.DLL_SHGetFolderPathA
mov word [ebp - 0x64], 0x74
lea eax, [ebp - 0x40]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
mov ecx, dword [ebp - 0x78]
dec ecx
lea eax, [ebp + 0xc]
mov edx, 1
call fcn.004ba124
lea ecx, [ebp - 0x40]
push ecx
lea eax, [ebp - 0x48]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0x44]
call fcn.004b9ba0
mov edx, eax
inc dword [ebp - 0x58]
pop ecx
pop eax
call fcn.004b9d58
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x78]
add ecx, 0xe
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
call fcn.00401790
push eax
inc dword [ebp - 0x58]
call fcn.0040ada4
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x58]
pop edx
pop eax
call fcn.004b9d58
lea edx, [ebp - 0x50]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x64], 0x80
push eax
dec dword [ebp - 0x58]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x64], 0x74
inc dword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
jmp 0x482a2c
mov word [ebp - 0x64], 0x8c
lea edx, [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x64], 0x98
push eax
dec dword [ebp - 0x58]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x58]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x64], 0x8c
inc dword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret