Function at 0x40ff10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609a4e
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x298], ecx
call fcn.00478bf0
mov dword [ebp - 0x29c], eax
push 1
mov eax, dword [ebp - 0x29c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x29c]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x2b0], al
cmp byte [ebp - 0x2b0], 1
je 0x40ff75
jmp 0x41006b
push 0x619138
lea ecx, [ebp - 0x248]
call fcn.00408710
mov dword [ebp - 4], 0
push 0x619134
lea ecx, [ebp - 0x230]
call fcn.00408710
mov byte [ebp - 4], 1
call fcn.00478bf0
mov dword [ebp - 0x2a0], eax
push str.CConfigMgr::InitSetFile
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x2b4], eax
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2b8]
push eax
push 0x25
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x384]
call fcn.0040d3b0
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c0]
call fcn.0040b2d0
push eax
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x384]
call fcn.0040e140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.00405df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00405e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405e70
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.0040f510
mov ecx, eax
call fcn.00415ad0
pop edx
add byte [eax], al
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x2ac]
push edx
push str._sLockHomePage.ini
mov eax, dword [ebp - 0x298]
push eax
call fcn.00407610
add esp, 0xc
mov ecx, dword [ebp - 0x298]
add ecx, 4
call fcn.00410370
movzx ecx, al
test ecx, ecx
je 0x410148
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.005b1170
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
mov byte [ebp - 0x291], cl
lea ecx, [ebp - 0x291]
call fcn.0040eb20
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor ecx, ecx
mov byte [ebp - 0x292], cl
lea ecx, [ebp - 0x292]
call fcn.0040ea00
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x298]
add ecx, 4
call fcn.00402800
push 0
lea ecx, [ebp - 0x290]
push ecx
call fcn.00410330
mov ecx, eax
call fcn.00402cf0
mov ecx, eax
call fcn.0053a750
mov dword [ebp - 0x2c8], eax
mov edx, dword [ebp - 0x2c8]
push edx
mov ecx, dword [ebp - 0x298]
add ecx, 0x30
call fcn.0040e550
lea ecx, [ebp - 0x290]
call fcn.0040df90
call fcn.00478bf0
mov dword [ebp - 0x2a4], eax
push 1
mov eax, dword [ebp - 0x2a4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2a4]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x2cc], al
cmp byte [ebp - 0x2cc], 1
je 0x4101be
jmp 0x4102f8
push 0x6191d8
lea ecx, [ebp - 0x278]
call fcn.00408710
mov byte [ebp - 4], 5
push 0x619220
lea ecx, [ebp - 0x260]
call fcn.00408710
mov byte [ebp - 4], 6
call fcn.00478bf0
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x298]
add ecx, 0x30
call fcn.00413b20
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2e4], esp
mov edx, dword [ebp - 0x298]
add edx, 4
push edx
call fcn.00405c20
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x2ec], esp
mov eax, dword [ebp - 0x298]
push eax
call fcn.00405c20
push str.m_szSetFile:_s__m_szAppdataFileName:_s__appdata_product_set_file_:_s
lea ecx, [ebp - 0x2e0]
push ecx
mov byte [ebp - 4], 6
call fcn.0040b8a0
add esp, 0x14
mov dword [ebp - 0x2d0], eax
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2d4]
push eax
push 0x36
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x41c]
call fcn.0040d3b0
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2dc]
call fcn.0040b2d0
push eax
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2a8]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x41c]
call fcn.0040e140
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2e0]
call fcn.00405df0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x260]
call fcn.00405e70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.00405e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.00405df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret