Function at 0x401fa0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x542eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401fe0
push 0x80004005
call fcn.0040a200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x48], 0
call fcn.0040e5a0
push str.Hewlett_PackardSmartPrint_
push eax
lea ecx, [esp + 0x28]
mov ebx, 1
push ecx
mov byte [esp + 0x54], bl
call fcn.00409c60
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call fcn.00409990
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402075
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40208f
push 0x80004005
call fcn.0040a200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 3
call fcn.00409990
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4020cc
push 0x80004005
call fcn.0040a200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov byte [esp + 0x48], 4
call fcn.0040d640
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 5
call fcn.00409990
mov byte [esp + 0x48], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40211e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040dfc0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 4
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004098a0
lea eax, [esp + 0x18]
call fcn.0040d660
test eax, eax
jne 0x402174
push str.Error_1:setup_path_is_not_validate_r_n
call fcn.00513704
add esp, 4
push str.Error_1:setup_path_is_not_validate
push 0x96
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push ebx
call fcn.00513a88
lea esi, [esp + 0x20]
call fcn.0040d420
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x54], 6
call fcn.00404f90
add esp, 0xc
mov ebx, 8
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4021ff
push str.Error_2:copy_setup.exe_failed_r_n
call fcn.00513704
add esp, 4
push str.Error_2:copy_setup.exe_failed
push 0xa0
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 2
call fcn.00513a88
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x56fa10
call fcn.0040a380
push ecx
mov byte [esp + 0x50], 9
mov ecx, esp
mov dword [esp + 0x40], esp
push str.ButtonText
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0xa
mov ecx, esp
mov dword [esp + 0x48], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x402277
push str.Error_3:write_registry_key_ButtonText__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_3:write_registry_key_ButtonText__failed
push 0xaa
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 3
call fcn.00513a88
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.1FBA04EE_3024_11d2_8F1F_0000F87ABD16
call fcn.0040a380
push ecx
mov byte [esp + 0x50], 0xb
mov ecx, esp
mov dword [esp + 0x40], esp
push str.CLSID
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x4022ef
push str.Error_4:write_registry_key_CLSID__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_4:write_registry_key_CLSID__failed
push 0xb2
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 4
call fcn.00513a88
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x56fc00
call fcn.0040a380
push ecx
mov byte [esp + 0x50], 0xd
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Default_Visible
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0xe
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x402367
push str.Error_5:write_registry_key_Default_Visible__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_5:write_registry_key_Default_Visible__failed
push 0xba
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 5
call fcn.00513a88
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00409c40
push ecx
mov byte [esp + 0x50], 0xf
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Exec
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x4023df
push str.Error_6:write_registry_key_Default_Visible__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_6:write_registry_key_Default_Visible__failed
push 0xc2
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 6
call fcn.00513a88
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.smartprint.ico
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00409c60
add esp, 8
mov byte [esp + 0x50], 0x11
mov ecx, esp
mov dword [esp + 0x40], esp
push str.HotIcon
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0x12
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x40245f
push str.Error_7:write_registry_key_HotIcon__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_7:write_registry_key_HotIcon__failed
push 0xca
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 7
call fcn.00513a88
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
push str.smartprint.ico
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00409c60
add esp, 8
mov byte [esp + 0x50], 0x13
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Icon
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0x14
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x4024de
push str.Error_8:write_registry_key_HotIcon__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_8:write_registry_key_HotIcon__failed
push 0xd2
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push ebx
call fcn.00513a88
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SmartPrint
call fcn.0040a380
push ecx
mov byte [esp + 0x50], 0x15
mov ecx, esp
mov dword [esp + 0x40], esp
push str.MenuText
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0x16
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x402556
push str.Error_9:write_registry_key_MenuText__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_9:write_registry_key_MenuText__failed
push 0xda
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 9
call fcn.00513a88
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SmartPrint
call fcn.0040a380
push ecx
mov byte [esp + 0x50], 0x17
mov ecx, esp
mov dword [esp + 0x40], esp
push str.MenuStatusBar
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0x18
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x4025ce
push str.Error_10:write_registry_key_MenuStatusBar__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_10:write_registry_key_MenuStatusBar__failed
push 0xe2
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 0xa
call fcn.00513a88
push ecx
mov edx, esp
mov dword [esp + 0x40], esp
push str.QPExtension
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00409c60
add esp, 8
mov byte [esp + 0x50], 0x19
mov ecx, esp
mov dword [esp + 0x40], esp
push str.quickprint_hp.com
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0x1a
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SOFTWAREMozillaFirefoxextensions
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x40264e
push str.Error_11:write_registry_key_quickprint_hp.com__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_11:write_registry_key_quickprint_hp.com__failed
push 0xeb
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 0xb
call fcn.00513a88
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00409c40
push ecx
mov byte [esp + 0x50], 0x1b
mov ecx, esp
mov dword [esp + 0x40], esp
push str.installDir
call fcn.0040a380
push ecx
mov byte [esp + 0x54], 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push str.SOFTWAREHewlett_PackardHP_Quick_PrintLauncher
call fcn.0040a380
mov byte [esp + 0x54], bl
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x4026c6
push str.Error_13:write_registry_key_installDir__failed_r_n
call fcn.00513704
add esp, 4
push str.Error_13:write_registry_key_installDir__failed
push 0xf4
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 0xd
call fcn.00513a88
push str.unzip32.dll
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00409c60
add esp, 0xc
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4c], 0x1d
call fcn.0040e6d0
add esp, 4
push str.QPExtension.zip
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x54], 0x1e
call fcn.00409c60
add esp, 0xc
mov bl, 0x1f
push 0x570118
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call fcn.0040a380
push 0x86
lea edx, [esp + 0x28]
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0x20
call fcn.00404d20
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.00409d50
push 0x570118
lea ecx, [esp + 0x24]
call fcn.0040a380
push 0x87
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0x21
call fcn.00404d20
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.00409d50
push 0x570118
lea ecx, [esp + 0x24]
call fcn.0040a380
push str.smartprint.ico
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x54], 0x22
call fcn.00409c60
add esp, 0xc
push 0x85
mov edx, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0x23
call fcn.00404d20
add esp, 4
lea ecx, [esp + 0x34]
call fcn.00409d50
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.00409d50
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x2c]
call fcn.0040df00
add esp, 4
test eax, eax
jne 0x4027f2
push eax
call fcn.00513a88
push str.Error_12:_unzip_failed_r_n
call fcn.00513704
add esp, 4
push str.Error_12:unzip_failed
push 0x109
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 0xc
call fcn.00513a88
int3