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

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x48c170]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x4676b0
call fcn.0044baf9
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, dword [ebp + 0x110]
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jl 0x4050d3
call fcn.00429b92
push eax
lea ecx, [ebp - 0x18]
call fcn.0040720e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00403fc4
push 0x46fdcc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BhsqKjYzOTsuMzU0eh47Ljs
call fcn.004023a9
lea eax, [ebp - 0x20]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00403ba9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401268
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fxs2Ng8pPygpCig1PDM2P38
call fcn.004023a9
lea eax, [ebp - 0x20]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00403ba9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401268
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x26
push esi
call ebx
test eax, eax
jl 0x405148
call fcn.00429b92
push eax
lea ecx, [ebp - 0x18]
call fcn.0040720e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00403fc4
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fwooNT0oOzccMzY_KX8
call fcn.004023a9
lea eax, [ebp - 0x20]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00403ba9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401268
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x1c
push esi
call ebx
test eax, eax
jl 0x4052d3
call fcn.00429b92
push eax
lea ecx, [ebp - 0x18]
call fcn.0040720e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00403fc4
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.fxsqKh47LjsWNTk7NhY1LX8
push esi
call fcn.004023a9
lea eax, [ebp - 0x20]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov ecx, edi
call fcn.00403811
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x405248
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BhY1OTs2FjUt
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov byte [ebp - 4], 7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BhY1OTs2
call fcn.004023a9
lea eax, [ebp - 0x20]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00403ba9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401268
push dword [ebp - 0x18]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
add esp, 0x20
mov byte [ebp - 4], 9
jmp 0x4052a8
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.fxsqKh47LjsWNTk7Nn8
push esi
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov ecx, edi
call fcn.00403811
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x4052bc
push dword [ebp - 0x18]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
add esp, 0x20
mov byte [ebp - 4], 0xa
push dword [eax]
mov ecx, edi
call fcn.00403ba9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401268
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x1a
push esi
call ebx
test eax, eax
jl 0x405346
call fcn.00429b92
push eax
lea ecx, [ebp - 0x18]
call fcn.0040720e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.00403fc4
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fxsqKh47Ljt_
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00403ba9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401268
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.fw4fFwp_
push esi
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x20
push eax
push ecx
call fcn.0044cfae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x4053d9
lea eax, [ebp - 0x18]
push eax
call fcn.004044f6
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.00403ba9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401268
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fxwcCig1PDM2P38
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x20
push eax
push ecx
call fcn.0044cfae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x4055be
call fcn.00429b92
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040720e
lea eax, [ebp]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
mov byte [ebp - 4], 0xf
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4055b3
call fcn.00429b92
push eax
lea ecx, [ebp - 0x18]
call fcn.0040720e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.00403fc4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Bhc1IDM2NjsGHDMoPzw1IgYKKDU8MzY_KQY
call fcn.004023a9
lea eax, [ebp - 0x14]
push eax
call fcn.00404198
add esp, 0x20
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x11
call fcn.00403e03
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.00401268
lea ecx, [ebp - 0x38]
call fcn.0042d4b7
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.cHRw
mov byte [ebp - 4], 0x12
call fcn.004023a9
lea eax, [ebp - 0x20]
push eax
call fcn.00404198
add esp, 0x20
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x13
call fcn.00403f6d
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x14
call fcn.0042d52f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401268
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401268
cmp esi, ebx
je 0x405565
lea ecx, [ebp - 0x38]
call fcn.0042d1bb
mov esi, eax
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
cmp eax, ebx
je 0x40550f
lea ecx, [ebp - 0x38]
call fcn.0042d47c
cmp eax, ebx
jne 0x40550f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0042d769
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x15
call fcn.00403e03
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401268
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.fxwcCig1PDM2P38
call fcn.004023a9
lea eax, [ebp - 0x20]
push eax
call fcn.00404198
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0x16
call fcn.00403ba9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.0042d4dd
lea ecx, [esi - 0x10]
call fcn.00401268
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0044bab7
add ebp, 0x108
leave
ret