Function at 0x401c20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542f17
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
push 0x56f75c
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401c90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f70
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00414db5
push ebx
call fcn.00416f0b
add esp, 4
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.004173de
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e6d0
add esp, 4
push eax
mov dword [esp + 0x45c], ebx
call fcn.0040dfc0
mov dword [esp + 0x45c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d0f
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.0040e6d0
add esp, 4
push str.Install.log
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x464], 1
call fcn.00409c60
add esp, 0xc
mov byte [esp + 0x458], 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 0x401d62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3ff
lea ecx, [esp + 0x49]
push ebx
push ecx
mov byte [esp + 0x50], bl
call fcn.00515e10
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0xc]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esi + 1]
push edx
mov edi, eax
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.00515e10
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push edi
lea ecx, [esp + 0x50]
push ecx
push esi
push edx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esp + edi + 0x44], bl
mov edi, 0xf
lea eax, [esp + 0x44]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401dd5
sub eax, esi
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
call fcn.00407760
push 0x12
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x478], 4
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x50]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00406850
call fcn.0040f540
add esp, 0x20
call fcn.00403770
call fcn.00412500
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.0040a380
lea ecx, [esp + 0x10]
push 0x56f7f8
push ecx
mov byte [esp + 0x460], 5
call fcn.00409ab0
add esp, 8
test al, al
je 0x401e5c
call fcn.00402820
lea edx, [esp + 0x10]
push 0x56f7fc
push edx
call fcn.00409ab0
add esp, 8
test al, al
je 0x401e77
call fcn.00401fa0
lea eax, [esp + 0x10]
push 0x56f800
push eax
call fcn.00409ab0
add esp, 8
test al, al
je 0x401e95
push esi
call fcn.00402bd0
jmp 0x401ece
lea ecx, [esp + 0x10]
push 0x575324
push ecx
call fcn.00409ab0
add esp, 8
test al, al
je 0x401eb3
push esi
call fcn.00402af0
jmp 0x401ece
lea edx, [esp + 0x10]
push 0x56f804
push edx
call fcn.00409ab0
add esp, 8
test al, al
je 0x401f48
call fcn.00402d30
call fcn.0040f5d0
mov byte [esp + 0x458], 4
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 0x401efb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], 0x10
jb 0x401f0f
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041342a
add esp, 4
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401f70
push str.Usage:Setup.exe__123_cleanup___r_n_t1write_registry_key_value_and_copy_self_to_SmartPrint_directory_r_n_t2setup_SmartPrint_from_network_r_n_t3uninstall_SmartPrint_t_t____r_n_r_n_treturn_value:_r_n_t0:Succesullfy_r_n1:setup_path_is_not_validate_r_n_t2:write_registry_key_failed_t_t____r_n_t3:copy_setup.exe_failed
call fcn.00513704
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00409d50
lea ecx, [esp + 0x28]
call fcn.00405090
lea ecx, [esp + 0x14]
call fcn.00409d50
xor eax, eax
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00512dac
mov esp, ebp
pop ebp
ret