Function at 0x408320
Capabilities:
Check if file exists
Copy file
Create directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bd38
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x57a898]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x55ab10
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
je 0x408719
lea ecx, [ebp - 0x78]
push ecx
call fcn.0040d3b0
add esp, 4
lea esi, [ebp - 0x6c]
mov dword [ebp - 4], 0
call fcn.0040c920
mov edx, esi
push edx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.004074f0
push 0x13
push 0x55ab60
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.004073f0
mov eax, dword [ebp - 0x6c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x40840d
push ecx
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x70], esp
mov ecx, esp
push edx
call fcn.004074f0
lea eax, [ebp - 0x64]
push eax
call fcn.0040d560
mov ecx, dword [ebp - 0x64]
add esp, 8
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4083e6
mov edx, dword [ebp - 0x64]
push 0
push edx
call esi
mov eax, dword [ebp - 0x6c]
push 0
push eax
call esi
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40840d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.SmartPrint.ico
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.0040b280
add esp, 0xc
mov bl, 3
push 0x55aba8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0040b690
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.00408900
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408476
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.ButtonText
mov esi, 0x55abb0
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
add esp, 4
push 0x55b128
mov esi, str.1FBA04EE_3024_11d2_8F1F_0000F87ABD16
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
add esp, 4
push str.Default_Visible
mov esi, 0x55ace8
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
mov esi, dword [ebp - 0x68]
add esp, 4
push str.HotIcon
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
mov esi, dword [ebp - 0x68]
add esp, 4
push str.Icon
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
add esp, 4
push str.MenuText
mov esi, 0x55abb0
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
add esp, 4
push str.MenuStatusBar
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
add esp, 4
push str.ButtonText
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
add esp, 4
push 0x55b128
mov esi, str.1FBA04EE_3024_11d2_8F1F_0000F87ABD16
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
add esp, 4
push str.Default_Visible
mov esi, 0x55ace8
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
mov esi, dword [ebp - 0x68]
add esp, 4
push str.HotIcon
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
mov esi, dword [ebp - 0x68]
add esp, 4
push str.Icon
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
add esp, 4
push str.MenuText
mov esi, 0x55abb0
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
add esp, 4
push str.MenuStatusBar
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
add esp, 4
push str.Exec
mov esi, edi
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d480
add esp, 4
push str.Exec
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040d4f0
add esp, 4
push 0
lea ecx, [ebp - 0x64]
push ecx
mov dword [ebp - 0x70], 1
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 2
push 0
push 0
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMINIE
push SysReAllocStringLen
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40861d
mov eax, dword [ebp - 0x64]
push 4
lea edx, [ebp - 0x70]
push edx
push 4
push 0
push str.CommandBarEnabled
push eax
call ebx
test eax, eax
jne 0x40861d
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea edx, [ebp - 0x64]
push edx
push 0
push 2
push 0
push 0
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerCommandBar
push SysReAllocStringLen
mov dword [ebp - 0x70], 0x23c
call esi
test eax, eax
jne 0x408667
mov ecx, dword [ebp - 0x64]
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push 0
push str.ToolBandWidth
push ecx
call ebx
test eax, eax
jne 0x408667
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.installDir
mov esi, edi
mov ecx, str.SOFTWAREHewlett_PackardHP_Quick_PrintLauncher
call fcn.0040d480
add esp, 4
push str.installDir
mov ecx, str.SOFTWAREHewlett_PackardHP_Quick_PrintLauncher
call fcn.0040d4f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502eb5
mov esp, ebp
pop ebp
ret