Function at 0x40afb0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ed22
push eax
mov dword fs:[0], esp
sub esp, 0xa18
push edi
push 0x104
lea eax, [esp + 0x11c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.....Profilesexplorer.ini
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0x118]
push edx
push 0x41f6ec
push 0x420530
push str.Explorer
call edi
call fcn.0040a9e0
test eax, eax
jne 0x40b032
pop edi
mov ecx, dword [esp + 0xa18]
mov dword fs:[0], ecx
add esp, 0xa24
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0xa24], 0
call fcn.00418592
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall46AA30DF_ED7B_438a_9462_60AB9A6D57E4
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0xa38], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b0c8
mov ecx, dword [esp + 4]
lea edx, [esp + 4]
push edx
push str.InstallLocation
lea eax, [esp + 0x224]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0x400
call fcn.00403c70
test eax, eax
jne 0x40b0c8
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0xc]
call fcn.004034d0
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x26
push 0
call esi
call fcn.00401230
test eax, eax
je 0x40b141
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b0f0
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push ecx
call fcn.0040e18e
add esp, 0xc
test eax, eax
jne 0x40b141
lea edx, [esp + 0x620]
push edx
push eax
push eax
push 0x1a
push eax
call esi
lea eax, [esp + 0x620]
push eax
lea ecx, [esp + 0x10]
call fcn.004034d0
push str.TheWorld
lea ecx, [esp + 0x10]
call fcn.00403510
call fcn.00418592
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push str.extensionsExtDownloadExtDownload.ini
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0xa34], 2
call fcn.0040ab80
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xa2c], 3
call fcn.0040ab10
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa28], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b1ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 8]
push esi
push 0
push str.DownProgID
push str.Download
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0xa28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00418592
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push str.TheWorld.ini
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0xa34], 4
call fcn.0040ab80
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xa2c], 5
call fcn.0040ab10
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa28], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b24a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 8]
push esi
push 0x41f6ec
push str.889D2FEB_5411_4565_8998_1DD2C5261283
push str.IEBhoState
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0xa28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x40b283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0xa24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b2b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa1c]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xa24
ret