Function at 0x405b30
Capabilities:
Check mutex on windows
Copy file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5406ce
mov eax, dword fs:[0]
push eax
sub esp, 0xda8
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 0xdb4], eax
call fcn.00404f10
mov dword [ebp - 4], 0
xor edi, edi
call fcn.00404990
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x405b9d
push str.Not_enough_memory_for_Win32_Real
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [edi + 8]
jmp 0x405fca
push 0x5635c4
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, 0x58ba20
call fcn.00436b10
test al, al
jne 0x405bcb
push str.Cannot_initialize_logging_framework.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, 0x65b
jmp 0x405fca
push str.Initializing_the_Setup_Engine
push 0x58ba20
call fcn.00437360
add esp, 8
call fcn.00441420
test al, al
je 0x405c08
lea ecx, [ebp - 0x26c]
call fcn.00403ba0
test eax, eax
je 0x405c08
push str.Failed_to_detect_Cloud_Agent_Installer_invoker_to_retrieve_process_information
push eax
push 0x58ba20
call fcn.00437520
add esp, 0xc
push 0x562f4c
push str.kernel32
mov dword [ebp - 0x2c], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58b498], eax
test eax, eax
je 0x405c59
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x58b498]
test eax, eax
jne 0x405c59
call ebx
mov esi, eax
push str.Failed_to_detect_the_bitness_of_current_machine
push esi
push 0x58ba20
call fcn.00437520
add esp, 0xc
cmp dword [ebp - 0x2c], edi
setne al
mov byte [ebp - 0xdad], al
test esi, esi
jne 0x405fca
push str.Current_Setup_version:_5.4.0.10
push 0x58ba20
mov byte [0x58b4bd], al
call fcn.00437360
cmp byte [ebp - 0xdad], 0
mov ecx, 0x40
mov eax, 0x20
cmovne eax, ecx
push eax
push str.Current_machine_architecture_is__d_bit
push 0x58ba20
call fcn.00437400
lea ecx, [ebp - 0x28]
call fcn.00408f00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
push str.Current_OS_version:__S
push 0x58ba20
call fcn.00437360
push str.Creating_wrapper_setup_mutex...
push 0x58ba20
call fcn.00437360
add esp, 0x28
push str.Global3D594D93_D7F0_4C44_93AC_931752E27136
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x405f76
call ebx
cmp eax, 0xb7
je 0x405f76
push str.Waiting_on_wrapper_setup_mutex...
push 0x58ba20
call fcn.00437360
add esp, 8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Ownership_of_wrapper_setup_mutex_obtained
push 0x58ba20
call fcn.00437360
push str.Parsing_and_verifying_the_setup_parameters...
push 0x58ba20
call fcn.00437400
add esp, 0x10
lea ecx, [ebp - 0x3dc]
push dword [ebp - 0xdb4]
push dword [ebp + 8]
call fcn.004473f0
mov esi, eax
test esi, esi
je 0x405db4
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x254]
push 0x58bc28
cmovae ecx, dword [ebp - 0x254]
push ecx
push str._s__check_the_Cloud_Agent_Installer_logs_for_errors_at_location:__s__r_n
call fcn.00407bf0
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
push str.Parameter_validation_failed_against:__s
push 0x58ba20
call fcn.004372e0
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403490
jmp 0x405fca
push str.All_command_line_parameters_were_found_to_be_good.
push 0x58ba20
call fcn.00437400
push str.Constructing_the_core_Installer_Engine...
push 0x58ba20
call fcn.00437400
add esp, 0x10
lea eax, [ebp - 0x3dc]
lea ecx, [ebp - 0xdac]
push eax
call fcn.00404150
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2b8], 0
je 0x405e69
push str.Setup_is_instructed_to_only_extract_the_MSI_s_
push 0x58ba20
call fcn.00437400
add esp, 8
lea ecx, [ebp - 0xdac]
push 1
push dword [ebp - 0x2b8]
call fcn.00442320
mov esi, eax
test esi, esi
je 0x405e4e
push str.Failed_to_extract_the_MSIs
push esi
push 0x58ba20
call fcn.00437520
add esp, 0xc
lea ecx, [ebp - 0xdac]
call fcn.00404580
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00403490
jmp 0x405fca
push str.Successfully_extracted_the_MSIs._r_n
call fcn.00407bf0
push str.Successfully_extracted_the_MSIs
push 0x58ba20
call fcn.00437360
jmp 0x405e2f
lea edx, [ebp - 0xdac]
lea ecx, [ebp - 0x3dc]
call fcn.004051f0
mov esi, eax
test esi, esi
je 0x405f36
cmp esi, 0x57
jne 0x405ee7
cmp byte [ebp - 0x34], 0
je 0x405ebf
cmp dword [ebp - 0x2a4], 0
jne 0x405ebf
push 0x58bc28
push str.Access_Denied._Self_Protection_is_enabled._Run_uninstall.exe_with_a_valid_key_to_disable_self_protection_and_remove_the_agent_from_your_computer__check_the_Cloud_Agent_Installer_logs_for_errors_at_location:__s__r_n
call fcn.00407bf0
push str.Access_Denied._Self_Protection_is_enabled._Run_uninstall.exe_with_a_valid_key_to_disable_self_protection_and_remove_the_agent_from_your_computer.
push esi
push 0x58ba20
call fcn.00437520
add esp, 0x14
jmp 0x405e32
push 0x58bc28
push str.Qualys_Cloud_Agent_Installation_failed__check_the_Cloud_Agent_Installer_logs_for_errors_at_location:__s__r_n
call fcn.00407bf0
push str.Qualys_Cloud_Agent_installation_failed__check_the_Cloud_Agent_installer_log_for_errors.
push 0x57
push 0x58ba20
call fcn.00437520
add esp, 0x14
jmp 0x405e32
cmp byte [ebp - 0x34], 0
push 0x58bc28
je 0x405f14
push str.Qualys_Cloud_Agent_uninstall_failed__check_the_Cloud_Agent_Installer_logs_for_errors_at_location:__s__r_n
call fcn.00407bf0
push str.Qualys_Cloud_Agent_uninstall_failed__check_the_Cloud_Agent_installer_log_for_errors.
push esi
push 0x58ba20
call fcn.00437520
add esp, 0x14
jmp 0x405e32
push str.Qualys_Cloud_Agent_Installation_failed__check_the_Cloud_Agent_Installer_logs_for_errors_at_location:__s__r_n
call fcn.00407bf0
push str.Qualys_Cloud_Agent_installation_failed__check_the_Cloud_Agent_installer_log_for_errors.
push esi
push 0x58ba20
call fcn.00437520
add esp, 0x14
jmp 0x405e32
cmp byte [ebp - 0x34], 0
je 0x405f4d
push str.Successfully_uninstalled_Qualys_Windows_Cloud_Agent._r_n
call fcn.00407bf0
push str.Successfully_uninstalled_Qualys_Windows_Cloud_Agent.
jmp 0x405f5c
push str.Successfully_installed_Qualys_Windows_Cloud_Agent._r_n
call fcn.00407bf0
push str.Successfully_installed_Qualys_Windows_Cloud_Agent.
push 0x58ba20
call fcn.00437360
add esp, 0xc
lea ecx, [ebp - 0xdac]
call fcn.00404580
jmp 0x405f9f
call ebx
mov esi, eax
test edi, edi
je 0x405f8c
cmp edi, 0xffffffff
je 0x405f8c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push str.Aborting_setup._Only_one_instance_of_setup_may_be_run_at_a_time
push esi
push 0x58ba20
call fcn.00437520
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x405fb8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403980
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
cmp byte [ebp - 0x2f], 0
je 0x406072
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x58b394]
cmp eax, dword [ecx + 0x10]
jle 0x40601b
push 0x58b394
call fcn.004fe42c
add esp, 4
cmp dword [0x58b394], 0xffffffff
jne 0x40601b
call fcn.004078c0
push 0x546e20
call fcn.004fe2e3
push 0x58b394
call fcn.004fe3ed
add esp, 8
cmp dword [0x58b3c8], 0
jne 0x406038
push str.OCI:_Log_file_path_not_available__could_not_copy_agent_installation_logs
push 0x58ba20
call fcn.004372e0
add esp, 8
jmp 0x406072
cmp dword [0x58b3cc], 8
mov eax, 0x58b3b8
push 0
cmovae eax, dword [0x58b3b8]
push eax
push 0x58bc28
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406072
call ebx
push str.OCI:_Failed_to_copy_agent_installation_logs
push eax
push 0x58ba20
call fcn.00437520
add esp, 0xc
push str.Cleaning_MSI_logs...
push 0x58ba20
call fcn.00437360
add esp, 8
mov ecx, 0x58ba20
call fcn.004376a0
test edi, edi
je 0x4060b7
push str.Releasing_wrapper_setup_mutex...
push 0x58ba20
call fcn.00437360
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, 0xffffffff
je 0x4060b7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3dc]
call fcn.00404580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp