Function at 0x408410
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
mov eax, dword [esp + 0x1d8]
push ebx
imul eax, eax, 0xb0
push ebp
push esi
push edi
xor ebx, ebx
lea esi, [eax + ecx]
push 0xffffffffffffffff
mov dword [esp + 0x70], ecx
push ebx
lea ecx, [esi + 0x104]
push ecx
mov edi, 0xf
lea ecx, [esp + 0xa4]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
call fcn.00401580
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0x124]
push edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.00401580
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0xe8]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1ec], 1
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.00401580
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x1ec], 2
call fcn.00408110
mov ecx, dword [eax + 0x18]
mov ebp, 0x10
add esp, 0xc
cmp ecx, ebp
jb 0x4084fe
mov eax, dword [eax + 4]
jmp 0x408501
add eax, 4
push eax
push ebx
push str.Multi_User
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
cmp dword [esp + 0x4c], ebp
jb 0x408528
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x408536
lea eax, [esp + 0x54]
push str.Last_Install_Path
push eax
call fcn.0040e0b0
add esp, 8
test eax, eax
jne 0x408568
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x408556
lea eax, [esp + 0x54]
push str.Last_Beta_Install_Path
push eax
call fcn.0040e0b0
add esp, 8
test eax, eax
je 0x40856d
mov edi, 1
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp edi, ebx
mov byte [esp + 0x1e0], 3
jne 0x4085cc
push str.profile
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00404940
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1ec], 4
call fcn.00401580
cmp dword [esp + 0x4c], ebp
jb 0x408823
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x40881b
lea edx, [esp + 0x14]
push edx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0xd8]
push 0xf01ff
mov dword [esp + 0xbc], 0x104
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40869c
cmp dword [esp + 0x30], ebp
jb 0x40861d
mov eax, dword [esp + 0x1c]
push eax
call fcn.00418537
add esp, 4
cmp dword [esp + 0x68], ebp
mov esi, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x408641
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x88], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x408663
mov edx, dword [esp + 0x74]
push edx
call fcn.00418537
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x408743
mov eax, dword [esp + 0x9c]
push eax
call fcn.00418537
add esp, 4
mov eax, 1
jmp 0x408abd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0xd8]
push edx
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
test eax, eax
jne 0x40874d
cmp dword [esp + 0x30], ebp
jb 0x4086d2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x68], ebp
mov esi, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4086f6
mov edx, dword [esp + 0x54]
push edx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x88], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x408718
mov eax, dword [esp + 0x74]
push eax
call fcn.00418537
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x408743
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00418537
add esp, 4
mov eax, 1
jmp 0x408abd
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408757
sub eax, edx
push eax
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x20]
call fcn.00401d30
push 0x17
push str.Application_DataOpera
lea ecx, [esp + 0x20]
call fcn.00404830
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1c], 0x5c
call fcn.00406930
cmp eax, 0xffffffff
je 0x4087b0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xa0]
call fcn.00401390
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1c], 0x5c
call fcn.00406930
mov edx, dword [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xa4]
call fcn.00406b00
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1ec], 5
call fcn.00404740
push 0xffffffffffffffff
push ebx
add esi, 0x140
push esi
lea ecx, [esp + 0x24]
call fcn.00404740
cmp dword [esp + 0x4c], ebp
jb 0x408823
mov edx, dword [esp + 0x38]
push edx
call fcn.00418537
add esp, 4
mov esi, 0xf
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov edi, dword [esp + 0x6c]
cmp dword [edi + 0x38], ebp
mov ecx, dword [edi + 0x34]
mov byte [esp + 0x1e0], 6
jb 0x408856
mov eax, dword [edi + 0x24]
jmp 0x408859
lea eax, [edi + 0x24]
lea edx, [esp + 0xb8]
push edx
push ecx
push eax
call fcn.00408080
add esp, 0xc
push esi
push str.XLNonIESvr.exe
lea ecx, [esp + 0xc0]
call fcn.00404830
cmp dword [edi + 0xc4], ebx
mov dword [esp + 0x14], ebx
jle 0x408a0e
lea esi, [edi + 0x388]
cmp byte [esp + 0x1ec], bl
je 0x4089d1
xor eax, eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
push 0xa
lea ecx, [esp + 0x90]
mov byte [esp + 0x99], al
mov eax, dword [esi + 4]
push ecx
push eax
mov byte [esp + 0x98], bl
call fcn.0040d9c7
lea eax, [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4088f0
sub eax, edi
push eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x3c]
call fcn.00401d30
push 0x2c
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e8], 7
call fcn.00407cc0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x40]
call fcn.00404740
push 3
push 0x420020
lea ecx, [esp + 0x3c]
call fcn.00404830
mov ecx, dword [esi + 8]
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x408950
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00404830
push 2
push 0x42001c
lea ecx, [esp + 0x3c]
call fcn.00404830
cmp dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x1c]
jae 0x408982
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x408990
lea eax, [esp + 0x38]
push ecx
mov ecx, dword [esi]
push eax
push ecx
push str.File_Types
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x4c], ebp
mov byte [esp + 0x1e0], 6
jb 0x4089bb
mov edx, dword [esp + 0x38]
push edx
call fcn.00418537
add esp, 4
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jmp 0x4089ef
cmp dword [esp + 0x30], ebp
mov eax, dword [esp + 0x1c]
jae 0x4089df
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi]
push ebx
push eax
push str.File_Types
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xc4]
inc eax
add esi, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x408893
mov esi, 0xf
cmp dword [esp + 0xd0], ebp
jb 0x408a27
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x30], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
jb 0x408a4f
mov edx, dword [esp + 0x1c]
push edx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x408a6e
mov eax, dword [esp + 0x54]
push eax
call fcn.00418537
add esp, 4
cmp dword [esp + 0x88], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x408a90
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x408abb
mov edx, dword [esp + 0x9c]
push edx
call fcn.00418537
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1d8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1d4
ret 8