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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41eed2
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 0x42070c
push 0x4215f0
push str.Explorer
call edi
call fcn.0040ab90
test eax, eax
jne 0x40b1e2
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.00418742
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 0x80000002
mov byte [esp + 0xa38], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b278
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.00403cc0
test eax, eax
jne 0x40b278
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0xc]
call fcn.00403520
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 0x40b2f1
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b2a0
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push ecx
call fcn.0040e33e
add esp, 0xc
test eax, eax
jne 0x40b2f1
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.00403520
push str.TheWorld
lea ecx, [esp + 0x10]
call fcn.00403560
call fcn.00418742
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.0040ad30
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xa2c], 3
call fcn.0040acc0
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 0x40b35b
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 0x40b390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00418742
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.0040ad30
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xa2c], 5
call fcn.0040acc0
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 0x40b3fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 8]
push esi
push 0x42070c
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 0x40b433
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 0x40b459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b468
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