Function at 0x40d480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5497a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x104
mov esi, ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40d501
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x120]
push str.idmmbc.dll
push edx
lea eax, [ebp - 0x1c]
push 0x5987d4
push eax
mov byte [ebp - 4], 1
call fcn.0053091a
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0040d840
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00537b04
lea edx, [ebp - 0x120]
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40d76a
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x320]
push eax
lea edx, [ebp - 0x220]
push ecx
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x120]
push eax
push ecx
call fcn.0051d13a
add esp, 0x14
lea edx, [ebp - 0x220]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x120]
push str.IDMIECC.dll
push edx
push eax
push 0x59879c
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x120]
mov ecx, esi
push edx
call fcn.0040d840
lea eax, [ebp - 0x220]
push str.IDMGetAll.dll
lea ecx, [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x120]
push 0x59879c
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.0040d840
lea ecx, [ebp - 0x220]
push str.idmmkb.dll
lea edx, [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x120]
push 0x59879c
push eax
call fcn.0051d0e8
add esp, 0x14
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.0040d840
lea edx, [ebp - 0x220]
push str.IDMan.exe
lea eax, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x120]
push 0x59879c
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x120]
mov ecx, esi
push edx
call fcn.0040d840
lea eax, [ebp - 0x220]
push 0x599514
lea ecx, [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x120]
push 0x59879c
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.0040d840
lea ecx, [ebp - 0x220]
push str.Uninstall.exe
lea edx, [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x120]
push 0x59879c
push eax
call fcn.0051d0e8
add esp, 0x14
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.0040d840
lea edx, [ebp - 0x220]
push str.idmmbc.dll
lea eax, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x120]
push 0x59879c
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x120]
mov ecx, esi
push edx
call fcn.0040d840
lea eax, [ebp - 0x220]
push str.IEExt.htm
lea ecx, [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x120]
push 0x59879c
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.0040d840
lea ecx, [ebp - 0x220]
push str.IEGetAll.htm
lea edx, [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x120]
push 0x59879c
push eax
call fcn.0051d0e8
add esp, 0x14
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.0040d840
lea edx, [ebp - 0x220]
push str.idmmzcc.xpi
lea eax, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x120]
push 0x59879c
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x120]
mov ecx, esi
push edx
call fcn.0040d840
lea eax, [ebp - 0x220]
push str.NP_IDM.dll
lea ecx, [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x120]
push 0x59879c
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.0040d840
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x18]
push str._s_scomponentsidmmzcc.dll
push eax
mov byte [ebp - 4], 2
call fcn.0053091a
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0040d840
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x18]
push str._s_scomponentsiIDMMzCC.xpt
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0040d840
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x18]
push str._s_schromeidmmzcc.jar
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0040d840
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x18]
push str._s_schrome.manifest
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0040d840
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret