Function at 0x414970
Capabilities:
Get common file path
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x490cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1f0]
imul eax, eax, 0xb0
lea esi, [eax + ecx]
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [esi + 0x104]
push ebx
mov dword [esp + 0x24], ecx
mov edi, 0xf
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.00402830
push 0xffffffffffffffff
lea eax, [esi + 0x124]
push ebx
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00402830
push 0xffffffffffffffff
lea eax, [esi + 0xe8]
push ebx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1f4], 1
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00402830
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x1f4], 2
call fcn.00414660
mov ebp, 0x10
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x414a7b
mov eax, dword [eax + 4]
jmp 0x414a7e
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 + 0x74], ebp
jb 0x414aa5
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00418a35
add esp, 4
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], ebp
jae 0x414ab3
lea eax, [esp + 0x44]
push str.Last_Install_Path
push eax
call fcn.0044f9c0
add esp, 8
test eax, eax
jne 0x414ae5
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], ebp
jae 0x414ad3
lea eax, [esp + 0x44]
push str.Last_Beta_Install_Path
push eax
call fcn.0044f9c0
add esp, 8
test eax, eax
je 0x414aea
mov edi, 1
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x1e8], 3
cmp edi, ebx
jne 0x414b3a
push str.profile
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.004103a0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f4], 4
call fcn.00402830
jmp 0x414d7e
push 0x104
lea edx, [esp + 0xdc]
push ebx
push edx
mov dword [esp + 0x2c], 0x104
call fcn.0044c250
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0xf01ff
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x414c09
cmp dword [esp + 0x3c], ebp
jb 0x414b8e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00418a35
add esp, 4
mov esi, 0xf
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x58], ebp
jb 0x414bb2
mov edx, dword [esp + 0x44]
push edx
call fcn.00418a35
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x90], ebp
jb 0x414bd4
mov eax, dword [esp + 0x7c]
push eax
call fcn.00418a35
add esp, 4
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
cmp dword [esp + 0xac], ebp
jb 0x414bff
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00418a35
add esp, 4
mov eax, 1
jmp 0x414ffb
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xdc]
push eax
push ecx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
test eax, eax
jne 0x414cbb
cmp dword [esp + 0x3c], ebp
jb 0x414c3c
mov edx, dword [esp + 0x28]
push edx
call fcn.00418a35
add esp, 4
mov esi, 0xf
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x58], ebp
jb 0x414c60
mov eax, dword [esp + 0x44]
push eax
call fcn.00418a35
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x90], ebp
jb 0x414c82
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00418a35
add esp, 4
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
cmp dword [esp + 0xac], ebp
jb 0x414bff
mov edx, dword [esp + 0x98]
push edx
call fcn.00418a35
add esp, 4
mov eax, 1
jmp 0x414ffb
lea eax, [esp + 0xd8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414cc5
sub eax, edx
push eax
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402910
push 0x17
push str.Application_DataOpera
lea ecx, [esp + 0x2c]
call fcn.00409600
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x20], 0x5c
call fcn.004117b0
cmp eax, 0xffffffff
je 0x414d1e
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x9c]
call fcn.004020a0
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x20], 0x5c
call fcn.004117b0
mov ecx, dword [esp + 0xa8]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0xa0]
call fcn.00411eb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f4], 5
call fcn.00409120
push 0xffffffffffffffff
push ebx
add esi, 0x140
push esi
lea ecx, [esp + 0x30]
call fcn.00409120
cmp dword [esp + 0x74], ebp
jb 0x414d91
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00418a35
add esp, 4
mov esi, 0xf
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x34]
mov byte [esp + 0x1e8], 6
cmp dword [edi + 0x38], ebp
jb 0x414dc4
mov eax, dword [edi + 0x24]
jmp 0x414dc7
lea eax, [edi + 0x24]
lea edx, [esp + 0xb0]
push edx
push ecx
push eax
call fcn.00403040
add esp, 0xc
push esi
push str.XLNonIESvr.exe
lea ecx, [esp + 0xb8]
call fcn.00409600
cmp dword [edi + 0xc4], ebx
mov dword [esp + 0x18], ebx
jle 0x414f4c
lea esi, [edi + 0x388]
cmp byte [esp + 0x1f4], bl
je 0x415025
xor eax, eax
push 0xa
lea ecx, [esp + 0xd0]
mov dword [esp + 0xd1], eax
mov dword [esp + 0xd5], eax
mov byte [esp + 0xd9], al
mov eax, dword [esi + 4]
push ecx
push eax
mov byte [esp + 0xd8], bl
call fcn.0044d2c6
lea eax, [esp + 0xd8]
add esp, 0xc
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414e60
sub eax, edi
push eax
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x64]
call fcn.00402910
push 0x2c
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x1f0], 7
call fcn.00409430
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x68]
call fcn.00409120
push 3
push 0x49924c
lea ecx, [esp + 0x64]
call fcn.00409600
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 0x414ec0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.00409600
push 2
push 0x499248
lea ecx, [esp + 0x64]
call fcn.00409600
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebp
jae 0x414ef2
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], ebp
jae 0x414f00
lea eax, [esp + 0x60]
push ecx
mov ecx, dword [esi]
push eax
push ecx
push str.File_Types
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [esp + 0x1e8], 6
cmp dword [esp + 0x74], ebp
jb 0x414f2b
mov edx, dword [esp + 0x60]
push edx
call fcn.00418a35
add esp, 4
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
add esi, 0xc
cmp eax, dword [edi + 0xc4]
mov dword [esp + 0x18], eax
jl 0x414e01
mov esi, 0xf
cmp dword [esp + 0xc8], ebp
jb 0x414f65
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00418a35
add esp, 4
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp dword [esp + 0x3c], ebp
jb 0x414f8d
mov edx, dword [esp + 0x28]
push edx
call fcn.00418a35
add esp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x58], ebp
jb 0x414fac
mov eax, dword [esp + 0x44]
push eax
call fcn.00418a35
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x90], ebp
jb 0x414fce
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00418a35
add esp, 4
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
cmp dword [esp + 0xac], ebp
jb 0x414ff9
mov edx, dword [esp + 0x98]
push edx
call fcn.00418a35
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0044c23d
add esp, 0x1d8
ret 8
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebp
jae 0x415033
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi]
push ebx
push eax
push str.File_Types
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x414f2f