Function at 0x4011e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov edi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40120a
and byte [ebp - 0x118], al
lea eax, [ebp - 0x118]
push 0x417390
push eax
call fcn.0040bc30
pop ecx
lea eax, [ebp - 0x118]
pop ecx
push eax
mov ecx, edi
call fcn.0040324b
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
push 0xdb
call fcn.0040328a
lea eax, [ebp - 0x118]
push eax
call fcn.004051fb
xor ecx, ecx
cmp eax, 0x20
setne cl
add ecx, 0xdc
push ecx
mov ecx, edi
call fcn.0040328a
mov ebx, dword [ebp + 8]
mov esi, str.bushound.exe
cmp byte [ebx], 0
je 0x401308
push ebx
mov ecx, edi
call fcn.004031c2
push 0
lea eax, [ebp - 0x118]
push esi
push eax
push ebx
mov ecx, edi
call fcn.0040331f
push 0
lea eax, [ebp - 0x118]
push str.bhuninst.exe
push eax
push ebx
mov ecx, edi
call fcn.0040331f
push 0
lea eax, [ebp - 0x118]
push str.buscmdr.exe
push eax
push ebx
mov ecx, edi
call fcn.0040331f
push 0
lea eax, [ebp - 0x118]
push str.help.rtf
push eax
push ebx
mov ecx, edi
call fcn.0040331f
cmp dword [ebp + 0xc], 0
je 0x4012e9
push 0
lea eax, [ebp - 0x118]
push str.bhlog.exe
push eax
push ebx
mov ecx, edi
call fcn.0040331f
call fcn.00405116
test al, 0x1f
je 0x401308
push 0
lea eax, [ebp - 0x118]
push str.bhound5.sys
push eax
push ebx
mov ecx, edi
call fcn.0040331f
mov ebx, str.Bus_Hound
mov ecx, edi
push ebx
call fcn.00403141
push str.SystemCurrentControlSetControlBusHound
push 0x80000002
mov ecx, edi
call fcn.004034ea
push str.SoftwareBus_Commander
push 0x80000001
mov ecx, edi
call fcn.004034ea
push 0x1f4
push str.Version
push str.SystemCurrentControlSetControlBusHound
mov ecx, edi
call fcn.0040359b
push ebx
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004038a3
push ebx
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00403a2f
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push str._s_bhuninst.exe
push eax
call fcn.0040bb40
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push 5
push str._d._02d
push eax
call fcn.0040bb40
add esp, 0x10
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstallBusHound
mov ecx, edi
push esi
push 0x80000002
call fcn.004034ea
push ebx
push str.DisplayName
push esi
mov ecx, edi
call fcn.004035de
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
push str.UninstallString
push esi
call fcn.004035de
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push str.DisplayVersion
push esi
call fcn.004035de
push 1
push str.NoModify
push esi
mov ecx, edi
call fcn.0040359b
push 5
push str.VersionMajor
push esi
mov ecx, edi
call fcn.0040359b
push 0
push str.VersionMinor
push esi
mov ecx, edi
call fcn.0040359b
push dword [ebp + 8]
mov ecx, edi
push str.InstallLocation
push esi
call fcn.004035de
push str.Perisoft
push str.Publisher
push esi
mov ecx, edi
call fcn.004035de
mov ebx, str.http:__www.perisoft.net
mov ecx, edi
push ebx
push str.URLInfoAbout
push esi
call fcn.004035de
push ebx
push str.URLUpdateInfo
push esi
mov ecx, edi
call fcn.004035de
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x401533
lea eax, [ebp - 0x21c]
push str._system32
push eax
call fcn.0040bc30
pop ecx
lea eax, [ebp - 0x21c]
pop ecx
push eax
mov ecx, edi
call fcn.004031c2
lea eax, [ebp - 0x21c]
push str.drivers
push eax
call fcn.0040bc30
pop ecx
lea eax, [ebp - 0x21c]
pop ecx
push eax
mov ecx, edi
call fcn.004031c2
call fcn.00405116
test al, 0x10
push 0
je 0x4014dd
lea eax, [ebp - 0x118]
push str.bhound4.sys
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.0040331f
push 4
push str.port
push 0
push str.Bus_Hound_Analyzer
push str.bhound4
jmp 0x40152c
mov ebx, str.bhound5.sys
lea eax, [ebp - 0x118]
push ebx
push eax
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.0040331f
call fcn.00405116
test al, 0xf0
je 0x401508
push str.bhound5
jmp 0x401509
push ebx
mov ecx, edi
call fcn.00401039
call fcn.00405116
test al, 0xf0
je 0x401533
push 4
push str.System_Bus_Extender
push 0
push str.Bus_Hound_Analyzer
push str.bhound5
mov ecx, edi
call fcn.00403791
call fcn.00405116
test al, 0xf
je 0x401599
lea eax, [ebp - 0x21c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401599
push 5
lea eax, [ebp - 0x118]
push str.comctl32.dll
push eax
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.0040331f
lea eax, [ebp - 0x21c]
push str.iosubsys
push eax
call fcn.0040bc30
pop ecx
lea eax, [ebp - 0x118]
pop ecx
push 0
push str.bhound3.vxd
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.0040331f
pop edi
pop esi
pop ebx
leave
ret 8