Function at 0x402820
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x542a80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402860
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 + 0x10], eax
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.0040e5a0
push str.Hewlett_PackardSmartPrint_
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x3c], 1
call fcn.00409c60
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.00409990
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
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 0x4028f2
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 0x40290c
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 eax, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.0040d640
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 4
call fcn.00409990
mov byte [esp + 0x30], 3
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 0x40295e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040dfc0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add esp, 4
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004098a0
lea eax, [esp + 0x10]
call fcn.0040d660
test eax, eax
jne 0x4029b2
push str.Error_1:setup_path_is_not_validate_r_n
call fcn.00513704
push str.Error_1:setup_path_is_not_validate
push 0x11f
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 0xc
push 1
call fcn.00513a88
mov ebp, dword [esp + 0x10]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00409bd0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x38], 5
mov ecx, esp
mov dword [esp + 0x20], esp
push str.installDir
call fcn.0040a380
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREHewlett_PackardHP_Quick_PrintLauncher
mov byte [esp + 0x40], 6
call fcn.0040a380
mov byte [esp + 0x3c], 3
call fcn.0040d7c0
add esp, 0xc
test eax, eax
jne 0x402a2f
push str.Error_2:write_registry_key_failed_r_n
call fcn.00513704
push str.Error_2:write_registry_key_failed
push 0x126
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 0xc
push 2
call fcn.00513a88
lea eax, [esp + 0x1c]
call fcn.0040d640
mov edi, eax
lea esi, [esp + 0x18]
mov byte [esp + 0x30], 7
call fcn.0040d420
push edi
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x3c], 8
call fcn.00404f90
add esp, 0xc
mov byte [esp + 0x30], 0xa
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 0x402a81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0xb
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 0x402aa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push 1
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402ae0
push str.Error_3:copy_setup.exe_failed_r_n
call fcn.00513704
push str.Error_3:copy_setup.exe_failed
push 0x12f
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 0xc
push 3
call fcn.00513a88
push 0
call fcn.00513a88
int3