Function at 0x40a970
Capabilities:
Access peb ldr_data
Create thread
Delete file
Get ntdll base address
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.0040e6d0
add esp, 4
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x7c]
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00409990
or edi, 0xffffffff
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.0040dfc0
add esp, 4
push 0x5753b8
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00409c60
add esp, 0xc
add ebx, 0x78
push eax
mov ecx, ebx
mov dword [esp + 0x3c], 1
call fcn.00409990
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x40aa35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebx]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push edi
push eax
push 0
push 0
call esi
lea ecx, [edi + 1]
push ecx
push 0
push 0x5a1780
mov dword [esp + 0x24], eax
call fcn.00515e10
mov edx, dword [esp + 0x24]
mov eax, dword [ebx]
add esp, 0xc
push 0
push 0
push edx
push 0x5a1780
push edi
push eax
push 0
push 1
call esi
mov eax, dword [esp + 0x18]
push 0x5a1780
push str.delete__s
push 0x99
mov ecx, str..SetupDlg.cpp
mov byte [eax + 0x5a1780], 0
call fcn.0040f630
mov eax, dword [ebp + 8]
add esp, 0xc
push str.SmartPrint.msi
add eax, 0x7c
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00409c60
add esp, 0xc
mov dword [esp + 0x38], 2
mov eax, dword [esp + 0x14]
push 0x80
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
mov edi, dword [eax - 0xc]
push 0
push 0
push 0
push 0
push edi
push eax
push 0
push 0
call esi
lea edx, [edi + 1]
push edx
push 0
push 0x5a1780
mov dword [esp + 0x24], eax
call fcn.00515e10
add esp, 0xc
push 0
push 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push 0x5a1780
push edi
push ecx
push 0
push 1
call esi
mov edx, dword [esp + 0x18]
push 0x5a1780
push str.delete__s
push 0x9e
mov ecx, str..SetupDlg.cpp
mov byte [edx + 0x5a1780], 0
call fcn.0040f630
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0x7c
push str.setup.iss
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00409c60
add esp, 0xc
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x10]
push 0x80
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
mov edi, dword [eax - 0xc]
push 0
push 0
push 0
push 0
push edi
push eax
push 0
push 0
call esi
lea ecx, [edi + 1]
push ecx
push 0
push 0x5a1780
mov dword [esp + 0x24], eax
call fcn.00515e10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push edx
push 0x5a1780
push edi
push eax
push 0
push 1
call esi
mov ecx, dword [esp + 0x18]
push 0x5a1780
mov byte [ecx + 0x5a1780], 0
push str.delete__s
push 0xa3
mov ecx, str..SetupDlg.cpp
call fcn.0040f630
add esp, 0xc
call fcn.0040bd70
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.quickprint_hp.com
mov byte [edx + 0x84], al
call fcn.0040a380
mov byte [esp + 0x3c], 4
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SOFTWAREMozillaFirefoxExtensions
call fcn.0040a380
mov byte [esp + 0x40], 3
call fcn.0040da40
push str.delete_extenstion_ReposityKeyValue
push 0xa8
mov ecx, str..SetupDlg.cpp
call fcn.0040f630
add esp, 0x10
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40ac93
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x18], 0
je 0x40acff
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040dde0
add esp, 4
push eax
lea edx, [esp + 0x1c]
push str.http:__h30495.www3.hp.com_quickprint_InstallPackage1030.zip
push edx
mov byte [esp + 0x44], 5
call fcn.0040bf40
add esp, 0xc
push eax
mov ecx, 0x5a1724
mov byte [esp + 0x3c], 6
call fcn.00409990
mov byte [esp + 0x38], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40acf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x1c]
jmp 0x40ad62
lea ecx, [esp + 0x20]
push ecx
call fcn.0040dde0
add esp, 4
push eax
lea edx, [esp + 0x20]
push str.http:__h30495.www3.hp.com_quickprint_InstallPackage1030.zip
push edx
mov byte [esp + 0x44], 7
call fcn.0040bf40
add esp, 0xc
push eax
mov ecx, 0x5a1724
mov byte [esp + 0x3c], 8
call fcn.00409990
mov byte [esp + 0x38], 7
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 0x40ad59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
mov ecx, 0x5a1728
call fcn.00409990
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push 0x3e9
mov dword [0x5a172c], edx
call fcn.0041a1e9
push 0
push 0
mov dword [0x5a1730], eax
push 0
lea eax, [esp + 0x34]
mov dword [0x5a1744], eax
mov eax, dword [0x5a1724]
push 0
mov dword [0x5a1738], 0xbd1
mov dword [0x5a173c], 0x7530
mov dword [0x5a1740], 0xa
mov dword [0x5a1734], 0x32
mov edi, dword [eax - 0xc]
push edi
push eax
push 0
push 0
call esi
lea ecx, [edi + 1]
push ecx
push 0
push 0x5a1780
mov ebx, eax
call fcn.00515e10
mov edx, dword [0x5a1724]
add esp, 0xc
push 0
push 0
push ebx
push 0x5a1780
push edi
push edx
push 0
push 1
call esi
push 0x5a1780
push str.begin_download_from__s
push 0xc3
mov ecx, str..SetupDlg.cpp
mov byte [ebx + 0x5a1780], 0
call fcn.0040f630
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x40cff0
push 0
push 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aeaa
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 ebx
mov esp, ebp
pop ebp
ret 4