Function at 0x40e1a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x270], ax
lea eax, [ebp - 0x26e]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x270]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.bfAppStoreprofilesconfig.ini
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x60]
call fcn.00401000
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e220
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ea0
push ecx
push 0x458b48
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.004010c0
push ecx
push str.DefAppID
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004010c0
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 4
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
mov dword [ebp - 0x28], eax
add eax, 0x10
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 6
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 4
push 0x458ce0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00401ea0
push 0x60
lea eax, [ebp - 0x24]
push 0x458bd0
push eax
call fcn.0040a530
add esp, 0xc
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
mov ecx, 0x60
mov byte [ebp - 4], 9
call fcn.0040f620
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40e335
push edi
lea ecx, [ebp - 0x20]
call fcn.00401f60
mov esi, dword [ebp - 0x20]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40e35d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
push ecx
push 0x458b48
lea ecx, [ebp - 0x60]
je 0x40e383
push eax
call fcn.00401180
push ecx
push str.DefAppID
push dword [ebp - 0x14]
jmp 0x40e390
push edi
call fcn.00401180
push ecx
push str.DefAppID
push esi
lea ecx, [ebp - 0x60]
call fcn.00401180
mov eax, dword [ebp - 0x28]
add eax, 0x10
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c50
push 0x457cd4
push 0x457cd0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004012e0
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push str.DefAppMID
push str.Product
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 0x30], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e3f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401c50
push 0x457cd4
push 0x457cd0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.004012e0
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push str.DefAppName
push str.Product
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 0x30], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e450
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e470
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e48d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e4aa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e4c7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e4e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e507
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40e528
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.00401660
lea ecx, [ebp - 0x48]
call fcn.00401660
lea ecx, [ebp - 0x54]
call fcn.00401660
lea ecx, [ebp - 0x60]
call fcn.00401660
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret