Function at 0x40c290
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542c25
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.0040e6d0
add esp, 4
lea edi, [ebx + 0x78]
push eax
mov ecx, edi
mov dword [esp + 0x2a4], 0
call fcn.00409990
mov dword [esp + 0x2a0], 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 0x40c31d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
call fcn.0040d420
lea esi, [ebx + 0x74]
push eax
mov ecx, esi
mov dword [esp + 0x2a4], 1
call fcn.00409990
mov dword [esp + 0x2a0], 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 0x40c367
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.silent_installation.zip
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00409c60
add esp, 0xc
push str.BINARAY
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a4], 2
call fcn.0040a380
push str.unzip32.dll
lea edx, [esp + 0x18]
push esi
push edx
mov byte [esp + 0x2ac], 3
call fcn.00409c60
add esp, 0xc
push 0x86
mov edx, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a4], 4
call fcn.0040ca80
mov byte [esp + 0x2a0], 3
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 0x40c3ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 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 0x40c416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x14
push 0x402
push ecx
call esi
push str.BINARAY
lea ecx, [esp + 0x14]
call fcn.0040a380
push 0x82
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a4], 5
call fcn.0040ca80
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c47e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 0x20]
push 0
push 0x28
push 0x402
push ecx
call esi
push 0x575324
lea ecx, [esp + 0x14]
call fcn.0040a380
lea edx, [esp + 0x10]
push edx
lea esi, [esp + 0x1c]
call fcn.0040df00
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40c900
push str.Please_close_all_internet_explorer_browsers_to_continue_Smart_Print_configuration.
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041a23c
call fcn.0040cc80
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 0x20]
push esi
push 0x3c
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x575aa8
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041a23c
push str.unzip_files_successfully
push 0x57
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
push str.smartprintinstall.exe
lea edx, [esp + 0x34]
push edi
push edx
call fcn.00409c60
add esp, 0x14
push edi
lea eax, [esp + 0x34]
push str._s__f1_
push eax
mov byte [esp + 0x2ac], 6
call fcn.0040bf40
add esp, 0xc
push str.setup.iss___f2_
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x2ac], 7
call fcn.00409c60
add esp, 0xc
push edi
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x2ac], 8
call fcn.00404f90
add esp, 0xc
push str.setup.log_
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2ac], 9
call fcn.00409c60
add esp, 0xc
mov byte [esp + 0x2a0], 0xb
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 0x40c5c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 0xd
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c613
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push 0
push eax
mov eax, dword [ebx + 0x20]
push ecx
push edx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.setup.log
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00409c60
add esp, 0xc
xor esi, esi
mov byte [esp + 0x2a0], 0xe
lea edi, [esi + 0x1e]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40c676
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0040bc30
test al, al
jne 0x40c6dd
push esi
push str.__d__Sleep
push 0x77
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
mov eax, 0x2aaaaaab
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0xc
cmp eax, 0x1e
jle 0x40c6a5
mov eax, 0x1e
mov ecx, dword [ebx + 0x7c]
mov ecx, dword [ecx + 0x20]
push 0
add eax, 0x3c
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x1e
inc esi
cmp edi, 0xe2e
jl 0x40c651
jmp 0x40c81b
push esi
push str.__d__File_exsit
push 0x61
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x7c]
mov edx, dword [eax + 0x20]
push 0
push 0x50
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push eax
call fcn.00409bd0
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea eax, [esp + 0x24]
push eax
call fcn.00412e50
push 1
push ecx
mov byte [esp + 0x2a8], 0xf
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.ResultCode
call fcn.0040a380
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.ResponseResult
mov byte [esp + 0x2b0], 0x10
call fcn.0040a380
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x2b0], 0xf
call fcn.004130b0
test eax, eax
jne 0x40c7cb
push 0x7d0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push str.__d__ResultCode0
push 0x6a
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
mov byte [esp + 0x2ac], 0xe
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x20], vtable.CIniFile.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c80a
push eax
push esi
push str.__d__ResultCode_d
push 0x70
mov ecx, str..SetupDlg2.cpp
mov edi, 2
call fcn.0040f630
mov byte [esp + 0x2b0], 0xe
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x20], vtable.CIniFile.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c816
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0x78
jl 0x40c886
push str.installation_is_timeout_120_seconds
push 0x81
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
mov ecx, dword [esp + 0x18]
push ecx
mov edi, 6
call fcn.0040d750
add esp, 0xc
test eax, eax
jne 0x40c861
push str.Dont_get_setup.log
push 0x85
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
add esp, 8
mov edi, 7
call fcn.0040bc30
test al, al
jne 0x40c886
push str.HPQuickPrintLauncher.exe_is_not_exist
push 0x8a
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
add esp, 8
mov edi, 8
mov byte [esp + 0x2a0], 0xd
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c8ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 6
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 0x40c8d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 2
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 0x40c91d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c91d
push esi
push str._unzip_failed_ret_d
push 0x91
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
add esp, 0xc
mov edi, 3
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 0x20]
push 0
push 0x64
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x7c]
push 0
call fcn.0041a3f4
push 5
push 1
mov ecx, ebx
call fcn.0041a1e9
mov ecx, eax
call fcn.0041a3f4
test edi, edi
jne 0x40c99c
push str.Smart_Print_configuration_succeeded.__Please_click__OK__to_finish.
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041a23c
push str.configure_successfully
push 0x9c
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40ca49
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c9b6
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
push edi
lea ecx, [esp + 0x18]
push str.An_unexpected_error_occurred.__Error_Code:__d.
push ecx
mov byte [esp + 0x2ac], 0x11
call fcn.00409880
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041a23c
push str.configure_failed
push 0xa4
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0x2a0], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ca2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2a0], 0xffffffff
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 0x40ca55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.00512dac
mov esp, ebp
pop ebp
ret