Function at 0x402d30
Capabilities:
Check if file exists
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x542d7c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
call fcn.00414031
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402d77
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
mov dword [esp + 0x38], esi
call fcn.00414031
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402da5
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 + 0x20], eax
mov byte [esp + 0x38], 1
call fcn.00414031
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402dd4
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 + 0x24], eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x3c], 2
call fcn.0040e7d0
add esp, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call fcn.00409990
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040e6d0
add esp, 4
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 4
call fcn.00409990
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040e750
add esp, 4
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 5
call fcn.00409990
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040b9c0
push str.Close_browser
push 0x158
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
call fcn.00404f40
test al, al
jne 0x402ef4
push str.close_BootStrap_failed_r_n
call fcn.00513704
add esp, 4
push str.close_BootStrap_failed
push 0x15e
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x402f08
push str.close_BootStrap_successfully
push 0x162
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push str.QuickPrintBHO.dll
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00409c60
add esp, 0xc
mov byte [esp + 0x38], 6
mov eax, dword [eax]
mov ebx, 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.0040d750
add esp, 4
test eax, eax
je 0x402f7a
push str.QuickPrintBHO.dll
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00409c60
add esp, 0xc
mov dword [esp + 0x38], 7
mov ebx, eax
mov dword [esp + 0x18], 3
call fcn.0040e940
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x17], 1
test eax, eax
je 0x402f7f
mov byte [esp + 0x17], 0
mov dword [esp + 0x38], 6
test bl, 2
je 0x402fb3
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402fb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 2
test bl, 1
je 0x402fe3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x40300d
push str.unregistry_BHO_failed_r_n
call fcn.00513704
add esp, 4
push str.unregistry_BHO_failed
push 0x16b
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x403021
push str.unregistry_BHO_successfully
push 0x16f
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push str.IEWebPrint.dll
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00409c60
add esp, 0xc
mov byte [esp + 0x38], 8
mov eax, dword [eax]
or ebx, 4
push eax
mov dword [esp + 0x1c], ebx
call fcn.0040d750
add esp, 4
test eax, eax
je 0x403090
push str.IEWebPrint.dll
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00409c60
add esp, 0xc
or ebx, 8
mov dword [esp + 0x38], 9
mov dword [esp + 0x18], ebx
mov ebx, eax
call fcn.0040e940
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x17], 1
test eax, eax
je 0x403095
mov byte [esp + 0x17], 0
mov dword [esp + 0x38], 8
test bl, 8
je 0x4030c9
mov eax, dword [esp + 0x2c]
and ebx, 0xfffffff7
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4030c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 2
test bl, 4
je 0x4030f6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x403120
push str.unregistry_IEWebPrint.dll_failed_r_n
call fcn.00513704
add esp, 4
push str.unregistry_IEWebPrint.dll_failed
push 0x177
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x403134
push str.unregistry_IEWebPrint.dll_successfully
push 0x17b
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4031ce
push ebx
call fcn.0040e2b0
add esp, 4
test eax, eax
jne 0x4031ce
push ebx
push str.delete_dir__s_failed_r_n
call fcn.00513704
mov edi, dword [ebx - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 8
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 0
call esi
lea ecx, [edi + 1]
push ecx
push 0
push 0x5a1780
mov ebp, eax
call fcn.00515e10
add esp, 0xc
push 0
push 0
push ebp
push 0x5a1780
push edi
push ebx
push 0
push 1
call esi
push 0x5a1780
push str.delete_dir__s_failed
push 0x184
mov ecx, str..Setup.cpp
mov byte [ebp + 0x5a1780], 0
call fcn.0040f7c0
jmp 0x40322e
mov edi, dword [ebx - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 0
call esi
lea edx, [edi + 1]
push edx
push 0
push 0x5a1780
mov ebp, eax
call fcn.00515e10
add esp, 0xc
push 0
push 0
push ebp
push 0x5a1780
push edi
push ebx
push 0
push 1
call esi
push 0x5a1780
push str.delete_dir__s_successfully
push 0x188
mov ecx, str..Setup.cpp
mov byte [ebp + 0x5a1780], 0
call fcn.0040f630
mov ebp, dword [esp + 0x2c]
add esp, 0xc
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40324d
push ebp
call fcn.0040e2b0
add esp, 4
test eax, eax
je 0x4032b4
mov edi, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
push edi
push ebp
push 0
push 0
call esi
mov dword [esp + 0x18], eax
lea eax, [edi + 1]
push eax
push 0
push 0x5a1780
call fcn.00515e10
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push ecx
push 0x5a1780
push edi
push ebp
push 0
push 1
call esi
mov edx, dword [esp + 0x18]
push 0x5a1780
push str.delete_dir__s_successfully
push 0x193
mov ecx, str..Setup.cpp
mov byte [edx + 0x5a1780], 0
call fcn.0040f630
add esp, 0xc
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403348
push edi
call fcn.0040e2b0
add esp, 4
test eax, eax
jne 0x403348
push edi
push str.delete_dir__s_failed_r_n
call fcn.00513704
mov ebp, dword [edi - 0xc]
add esp, 8
push 0
push 0
push 0
push 0
push ebp
push edi
push 0
push 0
call esi
mov dword [esp + 0x18], eax
lea eax, [ebp + 1]
push eax
push 0
push 0x5a1780
call fcn.00515e10
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push ecx
push 0x5a1780
push ebp
push edi
push 0
push 1
call esi
mov edx, dword [esp + 0x18]
push 0x5a1780
push str.delete_dir__s_failed
push 0x199
mov ecx, str..Setup.cpp
mov byte [edx + 0x5a1780], 0
call fcn.0040f7c0
jmp 0x4033ac
mov ebp, dword [edi - 0xc]
push 0
push 0
push 0
push 0
push ebp
push edi
push 0
push 0
call esi
mov dword [esp + 0x18], eax
lea eax, [ebp + 1]
push eax
push 0
push 0x5a1780
call fcn.00515e10
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push ecx
push 0x5a1780
push ebp
push edi
push 0
push 1
call esi
mov edx, dword [esp + 0x18]
push 0x5a1780
push str.delete_dir__s_successfully
push 0x19d
mov ecx, str..Setup.cpp
mov byte [edx + 0x5a1780], 0
call fcn.0040f630
add esp, 0xc
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREHewlett_PackardHP_Quick_Print
call fcn.0040a380
call fcn.0040d970
add esp, 4
test eax, eax
jne 0x4033ef
push str.delete_Reposity_SOFTWAREHewlett_PackardHP_Quick_Print_failed_r_n
call fcn.00513704
add esp, 4
push str.delete_Reposity_SOFTWAREHewlett_PackardHP_Quick_Print_failed
push 0x1a4
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x403403
push str.delete_Reposity_SOFTWAREHewlett_PackardHP_Quick_Print_successfully
push 0x1a8
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.quickprint_hp.com
call fcn.0040a380
push ecx
mov byte [esp + 0x40], 0xa
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMozillaFirefoxextensions
call fcn.0040a380
mov byte [esp + 0x40], 2
call fcn.0040da40
add esp, 8
test eax, eax
jne 0x403461
push str.delete_Reposity__SOFTWAREMozillaFirefoxextensions_quickprint_hp.com_failed_r_n
call fcn.00513704
add esp, 4
push str.delete_Reposity__SOFTWAREMozillaFirefoxextensions_quickprint_hp.com__failed
push 0x1af
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x403475
push str.delete_Reposity__SOFTWAREMozillaFirefoxextensions_quickprint_hp.com__successfully
push 0x1b3
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162
call fcn.0040a380
call fcn.0040d970
add esp, 4
test eax, eax
jne 0x4034b8
push str.delete_Reposity__SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162__failed_r_n
call fcn.00513704
add esp, 4
push str.delete_Reposity__SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162___failed
push 0x1ba
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x4034cc
push str.delete_Reposity__SoftwareMicrosoftInternet_ExplorerExtensions22CC3EBD_C286_43aa_B8E6_06B115F74162___successfully
push 0x1be
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall4E5FDDEE_30DF_4E4F_BF77_4D7DB4B51B9E
call fcn.0040a380
call fcn.0040d970
add esp, 4
test eax, eax
jne 0x40350f
push str.delete_Reposity__SOFTWAREMicrosoftWindowsCurrentVersionUninstall4E5FDDEE_30DF_4E4F_BF77_4D7DB4B51B9E__failed_r_n
call fcn.00513704
add esp, 4
push str.delete_Reposity__SOFTWAREMicrosoftWindowsCurrentVersionUninstall4E5FDDEE_30DF_4E4F_BF77_4D7DB4B51B9E___failed
push 0x1c5
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x403523
push str.delete_Reposity__SOFTWAREMicrosoftWindowsCurrentVersionUninstall4E5FDDEE_30DF_4E4F_BF77_4D7DB4B51B9E___successfully
push 0x1c9
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallCAF5658F_F3DE_4F19_80ED_D5B43FED1F89
call fcn.0040a380
call fcn.0040d970
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallDC65A6E6_626D_4B58_AC4C_8F16DB78DCC2
call fcn.0040a380
call fcn.0040d970
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall99B6FE2D_D496_44D7_9E27_EEA93B68887A
call fcn.0040a380
call fcn.0040d970
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallC1B82CC2_9A13_426B_91B3_C970DDA484C7
call fcn.0040a380
call fcn.0040d970
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallDC65A6E6_626D_4B58_AC4C_8F16DB78DCC2
call fcn.0040a380
call fcn.0040d970
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall99B6FE2D_D496_44D7_9E27_EEA93B68887A
call fcn.0040a380
call fcn.0040d970
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallABF09CA6_4114_483E_BDD0_548C3A4BEE99
call fcn.0040a380
call fcn.0040d970
mov ecx, esp
mov dword [esp + 0x30], esp
push str.http:__www.hp.com_go_quickprint
call fcn.0040a380
push ecx
mov byte [esp + 0x40], 0xb
mov ecx, esp
mov dword [esp + 0x30], esp
push str.installDir
call fcn.0040a380
push ecx
mov byte [esp + 0x44], 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SOFTWAREHewlett_PackardHP_Quick_PrintLauncher
call fcn.0040a380
mov byte [esp + 0x44], 2
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x40362a
push str.create_Reposity__SOFTWAREHewlett_PackardHP_Quick_PrintLauncher_installDirhttp:__www.hp.com_go_quickprint_failed_r_n
call fcn.00513704
add esp, 4
push str.create_Reposity__SOFTWAREHewlett_PackardHP_Quick_PrintLauncher_installDirhttp:__www.hp.com_go_quickprint__failed
push 0x1d7
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x40363e
push str.create_Reposity__SOFTWAREHewlett_PackardHP_Quick_PrintLauncher_installDirhttp:__www.hp.com_go_quickprint__successfully
push 0x1db
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 8
push str.InstallerProductsEEDDF5E4FD03F4E4FB77D4D74B5BB1E9
lea ecx, [esp + 0x2c]
call fcn.0040a380
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push eax
push SysReAllocStringLen
xor esi, esi
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40367a
push ebp
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x28]
xor edx, edx
test esi, esi
sete dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4036cc
push str.delete_Reposity__HKEY_CLASSES_ROOTInstallerProductsEEDDF5E4FD03F4E4FB77D4D74B5BB1E9__failed_r_n
call fcn.00513704
add esp, 4
push str.delete_Reposity__HKEY_CLASSES_ROOTInstallerProductsEEDDF5E4FD03F4E4FB77D4D74B5BB1E9___failed
push 0x1e2
mov ecx, str..Setup.cpp
call fcn.0040f7c0
jmp 0x4036e0
push str.delete_Reposity__HKEY_CLASSES_ROOTInstallerProductsEEDDF5E4FD03F4E4FB77D4D74B5BB1E9___successfully
push 0x1e6
mov ecx, str..Setup.cpp
call fcn.0040f630
add edi, 0xfffffff0
add esp, 8
mov byte [esp + 0x38], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403704
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x38], 0
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 0x403729
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40374d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret