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

Disassembly:
push 0xffffffffffffffff
push 0x41eb98
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.004015d0
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.004015d0
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.004015d0
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.004082b0
mov ecx, dword [eax + 0x18]
mov ebp, 0x10
add esp, 0xc
cmp ecx, ebp
jb 0x40869e
mov eax, dword [eax + 4]
jmp 0x4086a1
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 0x4086c8
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x4086d6
lea eax, [esp + 0x54]
push str.Last_Install_Path
push eax
call fcn.0040e260
add esp, 8
test eax, eax
jne 0x408708
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x4086f6
lea eax, [esp + 0x54]
push str.Last_Beta_Install_Path
push eax
call fcn.0040e260
add esp, 8
test eax, eax
je 0x40870d
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 0x40876c
push str.profile
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00404ae0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1ec], 4
call fcn.004015d0
cmp dword [esp + 0x4c], ebp
jb 0x4089c3
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x4089bb
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 0x40883c
cmp dword [esp + 0x30], ebp
jb 0x4087bd
mov eax, dword [esp + 0x1c]
push eax
call fcn.004186e7
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 0x4087e1
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x88], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x408803
mov edx, dword [esp + 0x74]
push edx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x4088e3
mov eax, dword [esp + 0x9c]
push eax
call fcn.004186e7
add esp, 4
mov eax, 1
jmp 0x408c5d
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 0x4088ed
cmp dword [esp + 0x30], ebp
jb 0x408872
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004186e7
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 0x408896
mov edx, dword [esp + 0x54]
push edx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x88], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x4088b8
mov eax, dword [esp + 0x74]
push eax
call fcn.004186e7
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x4088e3
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004186e7
add esp, 4
mov eax, 1
jmp 0x408c5d
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4088f7
sub eax, edx
push eax
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x20]
call fcn.00401d80
push 0x17
push str.Application_DataOpera
lea ecx, [esp + 0x20]
call fcn.004049d0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1c], 0x5c
call fcn.00406ad0
cmp eax, 0xffffffff
je 0x408950
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xa0]
call fcn.004013e0
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1c], 0x5c
call fcn.00406ad0
mov edx, dword [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xa4]
call fcn.00406ca0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1ec], 5
call fcn.004048e0
push 0xffffffffffffffff
push ebx
add esi, 0x140
push esi
lea ecx, [esp + 0x24]
call fcn.004048e0
cmp dword [esp + 0x4c], ebp
jb 0x4089c3
mov edx, dword [esp + 0x38]
push edx
call fcn.004186e7
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 0x4089f6
mov eax, dword [edi + 0x24]
jmp 0x4089f9
lea eax, [edi + 0x24]
lea edx, [esp + 0xb8]
push edx
push ecx
push eax
call fcn.00408220
add esp, 0xc
push esi
push str.XLNonIESvr.exe
lea ecx, [esp + 0xc0]
call fcn.004049d0
cmp dword [edi + 0xc4], ebx
mov dword [esp + 0x14], ebx
jle 0x408bae
lea esi, [edi + 0x388]
cmp byte [esp + 0x1ec], bl
je 0x408b71
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.0040db77
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 0x408a90
sub eax, edi
push eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x3c]
call fcn.00401d80
push 0x2c
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e8], 7
call fcn.00407e60
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x40]
call fcn.004048e0
push 3
push 0x4210d8
lea ecx, [esp + 0x3c]
call fcn.004049d0
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 0x408af0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004049d0
push 2
push 0x4210d4
lea ecx, [esp + 0x3c]
call fcn.004049d0
cmp dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x1c]
jae 0x408b22
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x408b30
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 0x408b5b
mov edx, dword [esp + 0x38]
push edx
call fcn.004186e7
add esp, 4
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jmp 0x408b8f
cmp dword [esp + 0x30], ebp
mov eax, dword [esp + 0x1c]
jae 0x408b7f
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 0x408a33
mov esi, 0xf
cmp dword [esp + 0xd0], ebp
jb 0x408bc7
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x30], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
jb 0x408bef
mov edx, dword [esp + 0x1c]
push edx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x408c0e
mov eax, dword [esp + 0x54]
push eax
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x88], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x408c30
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x408c5b
mov edx, dword [esp + 0x9c]
push edx
call fcn.004186e7
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