Function at 0x403750
Capabilities:
Check if file exists
Check mutex on windows
Check os version
Copy file
Get disk information
Get file attributes
Get session user name
Query environment variable
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x15b4
call fcn.00409ef0
xor eax, eax
mov byte [esp + 0x5ec], al
xor edx, edx
push ebx
mov byte [esp + 0x2b8], al
push esi
push edi
mov ecx, 0x41
lea edi, [esp + 0x1b9]
mov byte [esp + 0x1b8], dl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x5f9]
rep stosd dword es:[edi], eax
mov ecx, 0x45
lea edi, [esp + 0x2c1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x3d8], dl
mov ecx, 0x45
lea edi, [esp + 0x3d9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0xdb0], dl
mov ecx, 0x202
lea edi, [esp + 0xdb1]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov ecx, 0x80
mov edi, 0x41cd50
mov word [esp + 0x5a], ax
rep stosd dword es:[edi], eax
mov eax, dword [str.Kaseya_Agent]
cmp eax, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], edx
mov word [esp + 0x4c], dx
mov dword [esp + 0x5c], str.AgentMon.exe
mov dword [esp + 0x60], str.KaUsrTsk.exe
mov dword [esp + 0x64], str.KaUpdHlp.exe
mov dword [esp + 0x68], str.kPrtPng.exe
mov dword [esp + 0x6c], str.psapi.dll
mov dword [esp + 0x70], str.sporder.dll
je 0x40388b
cmp byte [eax], 0
je 0x40388b
push 0x1f6
push eax
push 0x41cd50
call fcn.004098f0
mov edi, 0x41cd50
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403866
mov ecx, dword [str._Setup]
mov dx, word [0x416ba4]
mov al, byte [0x416ba6]
mov dword [edi], ecx
mov word [edi + 4], dx
mov byte [edi + 6], al
jmp 0x4038d1
mov ecx, dword [0x416b8c]
mov edx, dword [0x416b90]
mov eax, dword [0x416b94]
mov dword [0x41cd50], ecx
mov ecx, dword [0x416b98]
mov dword [0x41cd54], edx
mov dx, word [0x416b9c]
mov dword [0x41cd58], eax
mov al, byte [0x416b9e]
mov dword [0x41cd5c], ecx
mov word [0x41cd60], dx
mov byte [0x41cd62], al
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.KaseyaClientSetupSingleInstance
xor eax, eax
push 1
mov ecx, 0x50
lea edi, [esp + 0x80]
push eax
rep stosd dword es:[edi], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x10], edi
call ebx
cmp eax, 0xb7
mov dword [esp + 0x24], eax
je 0x403913
cmp eax, 5
je 0x403913
test edi, edi
jne 0x403954
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.KaseyaClientSetupSingleInstance
push 1
push 0
call esi
mov edi, eax
mov dword [esp + 0x10], edi
call ebx
mov esi, eax
cmp esi, 0xb7
mov dword [esp + 0x24], esi
je 0x405ec3
cmp esi, 5
je 0x405ec3
test edi, edi
je 0x405ebb
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x4f0]
rep stosd dword es:[edi], eax
push 0x105
lea ecx, [esp + 0x4f4]
push ecx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jg 0x4039bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d:_Installation_of_the_Agent_failed_because_nthe_modules_current_location_could_not_be_determined.
push 0x41c328
mov dword [esp + 0x30], eax
call fcn.00409a14
add esp, 0xc
push 0x50010
push 0x41cd50
push 0x41c328
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x10]
push eax
jmp 0x403a08
mov ebx, dword [ebp + 0x10]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039c7
sub eax, edx
add eax, 0x80a
push eax
call fcn.00409552
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
jne 0x403a27
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nof_insufficient_memory.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x4f0]
push 0x416ab4
push eax
call fcn.004098d8
mov esi, eax
add esp, 8
test esi, esi
jne 0x403a83
call fcn.00409e5d
mov ecx, dword [eax]
push ecx
push str.Error__d:_Installation_of_the_Agent_failed_because_nthe_installation_package_could_not_be_accessed.
push 0x41c328
call fcn.00409a14
add esp, 0xc
push 0x50010
push 0x41cd50
push 0x41c328
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x10]
push eax
mov ebx, esi
jmp 0x40558a
push 2
push 0xfffff800
push esi
call fcn.00409833
push esi
push 0x800
lea ecx, [esp + 0xdc4]
push 1
push ecx
call fcn.0040945f
add esp, 0x1c
cmp eax, 0x800
je 0x403af1
call fcn.00409e5d
mov edx, dword [eax]
push edx
push str.Error__d:_Installation_of_the_Agent_failed_because_nthe_embedded_arguments_could_not_be_read_from_the_package.
push 0x41c328
call fcn.00409a14
add esp, 0xc
push 0x50010
push 0x41cd50
push 0x41c328
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ebx, esi
jmp 0x40558a
push esi
call fcn.004095b0
push ebx
lea edx, [esp + 0xdb8]
push edx
push str._s__s
push edi
call fcn.00409a14
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00407360
add esp, 0x1c
test eax, eax
mov dword [esp + 0x20], eax
je 0x403b47
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_configuration_parameters_could_not_be_initialized.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
jmp 0x405e9c
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x2e4]
test eax, eax
je 0x403be5
mov cl, byte [eax]
test cl, cl
je 0x403be5
cmp cl, 0x22
jne 0x403b72
cmp byte [eax + 2], 0x3a
jne 0x403b78
cmp cl, cl
je 0x403be5
cmp byte [eax + 1], 0x3a
je 0x403be5
mov eax, dword [edx + 0x260]
test eax, eax
je 0x403ba7
mov eax, dword [edx + 0x258]
test eax, eax
jne 0x403ba7
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_the_specified_install_path_does_not_contain_a_drive_letter_designator.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0xc]
push str.Installation_package_failed_to_install_due_to_missing_drive_letter_specification_in_the_installation_path.
push 0xfffffffffffffff7
push 3
push 1
push edx
call fcn.00409040
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
push ecx
xor ebx, ebx
lea edi, [esp + 0x30]
lea esi, [esp + 0x2c]
call fcn.00403580
add esp, 0x1c
mov eax, 0xfffffff7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edx + 0x2dc]
test eax, eax
je 0x403c44
cmp byte [eax], 0
je 0x403c44
xor eax, eax
mov ecx, 0x80
mov edi, 0x41cd50
rep stosd dword es:[edi], eax
mov edx, dword [edx + 0x2dc]
push 0x1f6
push edx
push 0x41cd50
call fcn.004098f0
mov edi, 0x41cd50
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403c21
mov eax, dword [str._Setup]
mov cx, word [0x416ba4]
mov dl, byte [0x416ba6]
mov dword [edi], eax
mov word [edi + 4], cx
mov byte [edi + 6], dl
mov eax, 0x41cd50
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c50
sub eax, edx
add eax, 2
push eax
call fcn.00409552
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x2e0], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x2e0]
add esp, 4
test edx, edx
jne 0x403ce9
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x403cab
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x403cab
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_of_memory_allocation_failure.
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push str.Installation_package_failed_during_memory_allocation.
push 0xfffffffffffffff3
push 3
push 1
push eax
call fcn.00409040
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x24]
push eax
xor ebx, ebx
lea edi, [esp + 0x30]
lea esi, [esp + 0x2c]
call fcn.00403580
add esp, 0x1c
mov eax, 0xfffffff3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0x41cd50
mov edi, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403cf0
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x4f0]
rep stosd dword es:[edi], eax
push 0x105
lea ecx, [esp + 0x4f4]
push ecx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [esp + 0xc]
test eax, eax
mov eax, dword [esi + 0x25c]
jg 0x403db0
test eax, eax
jne 0x403db8
mov eax, dword [esi + 0x260]
test eax, eax
je 0x403d66
mov eax, dword [esi + 0x258]
test eax, eax
jne 0x403d66
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_installation_package_could_not_determine_its_name_or_location.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
push str.Installation_package_could_not_determine_its_name_or_location.
push eax
push 3
push 1
push edx
mov dword [esp + 0x34], eax
call fcn.00409040
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
push ecx
xor ebx, ebx
lea edi, [esp + 0x30]
lea esi, [esp + 0x2c]
call fcn.00403580
mov eax, dword [esp + 0x3c]
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test eax, eax
je 0x403e2f
lea eax, [esp + 0x4f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403dc2
sub eax, edx
dec eax
js 0x403de4
mov edi, edi
mov cl, byte [esp + eax + 0x4f0]
cmp cl, 0x5c
je 0x403de4
cmp cl, 0x3a
je 0x403de4
dec eax
jns 0x403dd0
mov ecx, dword [esi + 0x258]
test ecx, ecx
jne 0x403e05
mov edx, dword [esi + 0x2d8]
push edx
lea eax, [esp + eax + 0x4f5]
push eax
call fcn.004026e0
add esp, 8
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, 3
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x403ef3
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 1
jne 0x403e8b
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x403e8b
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x403e74
push 0x50010
push 0x41cd50
push str.The_Agent_must_be_installed_on_a_system_with_WinSock2._nThis_system_does_not_appear_to_meet_that_requirement._nPlease_contact_your_system_administrator__or_download_WinSock2_for_Windows_95_at_nhttp:__www.microsoft.com_windows95_downloads_contents_wuadmintools_s_wunetworkingtools_w95sockets2_default.asp___nThis_installation_will_abort_now._n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Could_not_find_WinSock2.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x14]
push 3
push 1
push eax
jmp 0x403ec1
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x403eac
push 0x50010
push 0x41cd50
push str.The_Agent_must_be_installed_on_a_system_with_WinSock2._nThis_system_does_not_appear_to_meet_that_requirement._nPlease_contact_your_system_administrator._nThis_installation_will_abort_now._n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Could_not_find_WinSock2.
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push eax
push 3
push 1
push ecx
call fcn.00409040
add esp, 0x14
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, 0xffffffe6
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x14]
cmp eax, 1
jne 0x403f33
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4040f8
push ecx
call fcn.00403400
add esp, 4
test eax, eax
je 0x4040f8
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
jmp 0x405b40
cmp eax, 2
jne 0x40408b
xor eax, eax
mov ecx, 0x28a
mov edi, 0x41c328
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push 0x416530
push 0x80000002
lea esi, [esp + 0x28]
mov ebx, 0x41c328
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsKServer.exe
mov dword [esp + 0x28], 0xa28
call fcn.00402bb0
add esp, 0xc
test eax, eax
jne 0x4040f8
mov ecx, 0x28a
mov edi, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
push str.KServerConfigFile
push 0x80000002
mov eax, 0x4164a8
mov dword [esp + 0x28], 0xa28
call fcn.00402bb0
lea edx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push edx
xor eax, eax
mov ecx, 0x28a
mov edi, ebx
rep stosd dword es:[edi], eax
push str.KServerLogFile
push 0x80000002
mov eax, 0x4164a8
mov dword [esp + 0x34], 0xa28
call fcn.00402bb0
mov dword [esp + 0x44], eax
xor eax, eax
mov ecx, 0x28a
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
push str.KaseyaDTemplateFile
push 0x80000002
mov eax, 0x4164a8
mov dword [esp + 0x40], 0xa28
call fcn.00402bb0
mov ecx, dword [esp + 0x44]
add esp, 0x24
test ecx, ecx
je 0x404024
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x404024
test eax, eax
jne 0x4040f8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x258]
test eax, eax
jne 0x404049
push 0x50010
push 0x41cd50
push str.The_Kaseya_Server_must_be_updated_to_at_least_v4.6_nbefore_you_can_install_this_Agent_on_the_same_computer._n_nThis_Agent_installation_will_abort_now.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0xc]
push str.Cannot_install_agent_on_machine_with_a_Kaseya_Server_that_is_prior_to_v4.6.
push 0xffffffffffffffe8
push 3
push 3
push edx
call fcn.00409040
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
push ecx
xor ebx, ebx
lea edi, [esp + 0x30]
lea esi, [esp + 0x2c]
call fcn.00403580
add esp, 0x1c
mov eax, 0xffffffe8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.Unknown_operating_system_version.
push 0xffffffffffffffe7
push 2
push 3
push ecx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x24c]
add esp, 0x14
test ecx, ecx
jne 0x4040f8
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x4040ce
push 0x50010
push 0x41cd50
push str.The_Agent_cannot_be_installed_because_this_installation_nprogram_cannot_determine_the_which_OS_is_on_this_system._nPlease_contact_your_system_administrator._nThis_installation_will_abort_now._n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, 0xffffffe7
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1b8]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x1bc]
push ecx
push str.TEMP
stosb byte es:[edi], al
call esi
test eax, eax
jle 0x4041b3
cmp eax, 0x104
jae 0x4041b3
mov al, byte [esp + 0x1b8]
test al, al
je 0x4041b3
lea eax, [esp + 0x1b8]
lea edx, [eax + 1]
jmp 0x404150
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404150
sub eax, edx
cmp byte [esp + eax + 0x1b7], 0x5c
jne 0x404180
lea eax, [esp + 0x1b8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404170
sub eax, edx
mov byte [esp + eax + 0x1b7], cl
lea edx, [esp + 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4041b3
test al, 0x10
je 0x4041b3
lea edi, [esp + 0x1b8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4041a0
mov ax, word [0x4162ac]
mov word [edi], ax
jmp 0x4041c4
xor eax, eax
lea edi, [esp + 0x1b8]
mov ecx, 0x41
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esp + 0x1b8]
test al, al
jne 0x404284
push 0x104
lea ecx, [esp + 0x1bc]
push ecx
push 0x4162a8
call esi
test eax, eax
jle 0x404273
cmp eax, 0x104
jae 0x404273
mov al, byte [esp + 0x1b8]
test al, al
je 0x404273
lea eax, [esp + 0x1b8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404210
sub eax, edx
cmp byte [esp + eax + 0x1b7], 0x5c
jne 0x404240
lea eax, [esp + 0x1b8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404230
sub eax, edx
mov byte [esp + eax + 0x1b7], cl
lea edx, [esp + 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404273
test al, 0x10
je 0x404273
lea edi, [esp + 0x1b8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404260
mov ax, word [0x4162ac]
mov word [edi], ax
jmp 0x404284
xor eax, eax
lea edi, [esp + 0x1b8]
mov ecx, 0x41
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x700]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
stosw word es:[edi], ax
push str.ConfigurationFile
push 0x80000002
lea esi, [esp + 0x28]
lea ebx, [esp + 0x70c]
mov eax, str.SystemCurrentControlSetServicesVxDKaseya
mov dword [esp + 0x28], 0x105
call fcn.00402bb0
add esp, 0xc
test eax, eax
jne 0x404420
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x244]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x28], ebx
jne 0x40434b
cmp dword [eax + 0x248], ebx
je 0x4045f8
cmp dword [eax + 0x258], ebx
jne 0x4045f8
push 0x50024
push 0x41cd50
push str.The_Agent_is_already_installed._nDo_you_want_to_reinstall_the_Agent_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
mov edx, dword [esp + 0xc]
jne 0x404341
push str.Re_installation_of_the_Agent_was_stopped_by_the_user.
push 0xffffffffffffffe3
push 1
push 3
push edx
call fcn.00409040
add esp, 0x14
push 0x50040
push 0x41cd50
push str.Installation_of_the_Agent_stopped.
push ebx
jmp 0x404632
mov dword [edx + 0x244], 1
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x700]
mov byte [esp + eax + 0x8a0], cl
inc eax
test cl, cl
jne 0x404350
lea edx, [esp + 0x8a0]
push 0x5c
push edx
call fcn.00409e30
add esp, 8
cmp eax, ebx
je 0x40437d
mov byte [eax + 1], 0
mov dword [esp + 0x1c], 6
jmp 0x404390
xor eax, eax
jmp 0x4043a0
mov cl, byte [esp + eax + 0x8a0]
mov byte [esp + eax + 0x700], cl
inc eax
test cl, cl
jne 0x4043a0
mov eax, dword [esp + ebx*4 + 0x5c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4043c0
lea edi, [esp + 0x700]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4043d1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x700]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404413
test al, 1
je 0x404413
push 0x80
lea ecx, [esp + 0x704]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x404390
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x258]
test ecx, ecx
mov ebx, 1
jne 0x4044ba
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x2dc]
lea eax, [esp + 0x74]
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
push 0x4030c0
push 0
push 0
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ebx
call fcn.00409b32
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4044ba
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call ebx
mov eax, dword [esp + 0x38]
test eax, eax
mov esi, 0xc8
je 0x4044ae
cmp esi, 0x3a98
jge 0x4044ae
push 0xa
call ebx
mov eax, dword [esp + 0x38]
add esi, 0xa
test eax, eax
jne 0x404497
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
push 0xa27
lea edx, [esp + 0x4f4]
push edx
xor eax, eax
mov ecx, 0x28a
mov edi, 0x41c328
push 0x41c328
mov dword [0x41c124], 0xf
rep stosd dword es:[edi], eax
call fcn.004098f0
push 0x4161fc
push 0x41c328
call fcn.004060d0
add esp, 0x14
test eax, eax
je 0x405c7b
push 0x41c328
mov byte [eax + 2], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x405c7b
test eax, eax
je 0x405c7b
lea eax, [esp + 0x4f0]
push str.Temporary_Internet_Files
push eax
call fcn.004060d0
add esp, 8
test eax, eax
je 0x40455a
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 2
jne 0x40455a
cmp dword [eax + 8], 4
jne 0x40455a
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x405c7b
lea ecx, [esp + 0x4f0]
push 0x416ab4
push ecx
call fcn.004098d8
mov esi, eax
xor edi, edi
add esp, 8
cmp esi, edi
mov dword [esp + 0x18], esi
jne 0x404662
mov eax, dword [0x41c120]
cmp eax, edi
mov dword [0x41b108], ebx
mov dword [0x41c124], 0x65
je 0x4045a9
push edi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], edi
call fcn.00409e5d
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push str.Installation_package_could_not_be_accessed.
push edx
push 3
push ebx
push eax
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, edi
je 0x40557c
cmp dword [eax + 0x258], edi
jne 0x40557c
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_installation_package_could_not_be_accessed.
jmp 0x405575
push str.The_Agent_is_already_installed._Re_installation_of_the_Agent_was_terminated.
push 0xffffffffffffffe3
push 1
push 3
push eax
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x258]
add esp, 0x14
cmp ecx, ebx
jne 0x404638
cmp dword [eax + 0x250], ebx
jne 0x404638
push 0x50040
push 0x41cd50
push str.The_Agent_is_already_installed._Re_installation_of_the_Agent_was_terminated.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, 0xffffffe3
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x78]
push eax
push esi
call fcn.004087c0
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.00408840
add esp, 0x10
test eax, eax
jge 0x4046fb
mov eax, dword [0x41c120]
cmp eax, edi
mov dword [0x41b108], ebx
mov dword [0x41c124], 0x65
je 0x4046ac
push edi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], edi
call fcn.00409e5d
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push str.Failed_to_read_setup_file_from_the_installation_package.
push edx
push 3
push ebx
push eax
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, edi
je 0x40557c
cmp dword [eax + 0x258], edi
jne 0x40557c
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_setup_file_could_not_be_read_from_the_installation_package.
jmp 0x405575
lea eax, [esp + 0xa0]
push str.KAgentSilent.exe
push eax
call fcn.0041309b
add esp, 8
test eax, eax
je 0x40479a
mov eax, dword [0x41c120]
cmp eax, edi
mov dword [0x41b108], ebx
mov dword [0x41c124], 0x65
je 0x404742
push edi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], edi
call fcn.00409e5d
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
push str.Failed_to_find_setup_file_from_the_installation_package.
push ecx
push 3
push ebx
push edx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, edi
je 0x40478b
cmp dword [eax + 0x258], edi
jne 0x40478b
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_setup_file_was_not_found_at_the_end_of_the_installation_package.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x405586
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x2c0]
rep stosd dword es:[edi], eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0x2c0], cl
inc eax
test cl, cl
jne 0x4047b0
lea edi, [esp + 0x2c0]
dec edi
jmp 0x4047d0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4047d0
mov edx, dword [str.KAgentSilent.exe]
mov eax, dword [0x416050]
mov ecx, dword [0x416054]
mov dword [edi], edx
mov edx, dword [0x416058]
mov dword [edi + 4], eax
mov al, byte [0x41605c]
mov dword [edi + 8], ecx
lea ecx, [esp + 0x2c0]
mov dword [edi + 0xc], edx
push 0x415f98
push ecx
mov byte [edi + 0x10], al
call fcn.004098d8
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4048f2
lea edx, [esp + 0x2c0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40486a
test al, 1
je 0x40486a
push 0x80
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x2c0]
push 0x415f98
push ecx
call fcn.004098d8
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4048f2
mov eax, dword [0x41c120]
test eax, eax
mov dword [0x41b108], 1
mov dword [0x41c124], 0x65
je 0x40489e
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], 0
call fcn.00409e5d
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push str.The_setup_file_could_not_be_extracted_from_the_installation_package.
push edx
push 3
push 1
push eax
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
test ecx, ecx
je 0x40557c
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x40557c
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_setup_file_could_not_be_extracted_from_the_installation_package.
push 0
jmp 0x405576
mov ecx, 0x28a
xor eax, eax
mov edi, 0x41c328
rep stosd dword es:[edi], eax
mov cl, byte [eax + str.KAgentSilent.exe]
mov byte [eax + 0x41c328], cl
inc eax
test cl, cl
jne 0x404900
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x258], 1
jne 0x404933
mov edi, 0x41c328
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404924
mov eax, dword [0x415edc]
mov dword [edi], eax
mov eax, 0x41c328
lea edx, [eax + 1]
jmp 0x404940
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404940
add esi, 0x135
sub eax, edx
push esi
lea ecx, [eax + 0x41c328]
push str.__a__PATH__s
push ecx
call fcn.00409a14
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], 0x5c3a43
mov ecx, dword [edx + 0x2e4]
add esp, 0xc
test ecx, ecx
je 0x4049f4
cmp byte [ecx], 0x22
mov eax, 0x41c328
lea esi, [eax + 1]
je 0x4049a8
jmp 0x404990
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404990
push ecx
sub eax, esi
push str.__INSTALLDIR__s_
lea eax, [eax + 0x41c328]
push eax
jmp 0x4049be
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4049a8
push ecx
sub eax, esi
push str.__INSTALLDIR_s
lea ecx, [eax + 0x41c328]
push ecx
call fcn.00409a14
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x2e4]
add esp, 0xc
push 0x3a
push eax
call fcn.00409d70
add esp, 8
test eax, eax
je 0x4049f4
mov al, byte [eax - 1]
cmp al, 0x61
mov byte [esp + 0x3c], al
jl 0x4049f4
cmp al, 0x7a
jg 0x4049f4
and al, 0xdf
mov byte [esp + 0x3c], al
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405bf3
test al, 0x10
je 0x405bf3
mov edx, dword [esp + 0x1a8]
mov eax, dword [esp + 0x1b4]
push ebx
push edx
mov edi, 1
push edi
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], 0xffffffff
call fcn.0040932a
push ebx
mov esi, eax
call fcn.004095b0
mov eax, dword [esp + 0x1bc]
add esp, 0x14
cmp esi, eax
je 0x404add
mov eax, dword [0x41c120]
test eax, eax
mov dword [0x41b108], edi
mov dword [0x41c124], 0x65
je 0x404a82
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], 0
call fcn.00409e5d
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
push str.The_setup_file_could_not_be_extracted_from_the_installation_package.
push ecx
push 3
push edi
push edx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
test ecx, ecx
je 0x404ace
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x404ace
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_setup_file_could_not_be_extracted_from_the_installation_package.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x405586
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push eax
call fcn.00408840
add esp, 8
test eax, eax
jge 0x404b78
mov eax, dword [0x41c120]
test eax, eax
mov dword [0x41b108], edi
mov dword [0x41c124], 0x65
je 0x404b27
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], 0
call fcn.00409e5d
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
push str.The_configuration_file_could_not_be_extracted_from_the_installation_package.
push ecx
push 3
push edi
push edx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
test ecx, ecx
je 0x404ace
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x404ace
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_configuration_file_could_not_be_extracted_from_the_installation_package.
jmp 0x404ac6
lea edx, [esp + 0xa0]
push str.KaseyaD.ini
push edx
call fcn.0041309b
add esp, 8
test eax, eax
je 0x404c20
mov eax, dword [0x41c120]
test eax, eax
mov dword [0x41b108], edi
mov dword [0x41c124], 0x65
je 0x404bc5
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], 0
call fcn.00409e5d
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
push str.Failed_to_find_configuration_file_from_the_installation_package.
push eax
push 3
push edi
push ecx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
test ecx, ecx
je 0x404c11
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x404c11
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_setup_file_was_not_found_at_the_end_of_the_installation_package.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x10]
push eax
jmp 0x405586
xor eax, eax
jmp 0x404c30
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0x5f8], cl
inc eax
test cl, cl
jne 0x404c30
lea edi, [esp + 0x5f8]
dec edi
jmp 0x404c50
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404c50
mov ecx, dword [str.KaseyaD.ini]
mov edx, dword [0x415dd8]
mov eax, dword [0x415ddc]
mov dword [edi], ecx
lea ecx, [esp + 0x5f8]
mov dword [edi + 4], edx
push 0x415f98
push ecx
mov dword [edi + 8], eax
call fcn.004098d8
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
jne 0x404d67
lea edx, [esp + 0x5f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404cdb
test al, 1
je 0x404cdb
push 0x80
lea eax, [esp + 0x5fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x5f8]
push 0x415f98
push ecx
call fcn.004098d8
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x404d67
mov dword [0x41b108], 1
mov dword [0x41c124], 0x64
call fcn.00409e5d
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push str.The_configuration_file_could_not_be_extracted_from_the_installation_package.
push edx
push 3
push 1
push eax
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, ebx
je 0x404d39
cmp dword [eax + 0x258], ebx
jne 0x404d39
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_configuration_file_could_not_be_extracted_from_the_installation_package.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
add esp, 8
call fcn.00409e5d
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1b4]
push esi
push eax
push 1
push ecx
call fcn.0040932a
push esi
mov edi, eax
call fcn.004095b0
mov eax, dword [esp + 0x1bc]
add esp, 0x14
cmp edi, eax
je 0x404e22
mov dword [0x41b108], 1
mov dword [0x41c124], 0x64
call fcn.00409e5d
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push str.The_configuration_file_could_not_be_extracted_from_the_installation_package.
push edx
push 3
push 1
push eax
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, ebx
je 0x404df4
cmp dword [eax + 0x258], ebx
jne 0x404df4
push 0x10
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_configuration_file_could_not_be_extracted_from_the_installation_package.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
add esp, 8
call fcn.00409e5d
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x5f8]
push eax
push ecx
mov dword [0x41b108], 0x1f4
mov dword [0x41c124], 0x5f
call fcn.00407710
add esp, 8
cmp eax, 0xfffffffe
mov dword [esp + 0x20], eax
je 0x404eaf
cmp eax, 0xffffffe9
je 0x404eaf
cmp eax, ebx
je 0x404eaf
mov edx, dword [esp + 0xc]
push str.The_configuration_file_could_not_be_accessed.
push eax
push 3
push 3
push edx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, ebx
je 0x404ea0
cmp dword [eax + 0x258], ebx
jne 0x404ea0
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_configuration_file_contents_could_not_be_accessed.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x405486
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 2
jne 0x404f6b
cmp dword [eax + 8], 4
jb 0x404f6b
cmp dword [eax + 0x98], ebx
jne 0x404f6b
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x2c0]
push 0x117
lea edx, [esp + 0x4f4]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x2c8]
push eax
call fcn.004098f0
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, 0x28a
mov edi, 0x41c328
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push ecx
add edx, 0x135
push edx
lea eax, [esp + 0x2d4]
push eax
push str._s__PATH__s__s
push 0x41c328
call fcn.00409a14
mov esi, dword [esp + 0x30]
add esp, 0x20
cmp esi, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
je 0x405107
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405107
cmp dword [esp + 0x28], ebx
jne 0x404f7d
cmp dword [eax + 0x240], ebx
je 0x4050fd
cmp dword [eax + 0x23c], ebx
je 0x4050fd
push ebx
push eax
call fcn.00408bc0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00402540
add esp, 0xc
cmp eax, ebx
je 0x40506e
cmp eax, 0xffffffff
jne 0x40502b
mov eax, dword [0x41c120]
cmp eax, ebx
mov dword [0x41c124], 0x65
je 0x404fd2
push ebx
push ebx
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], ebx
mov edx, dword [esp + 0xc]
push str.User_canceled_the_installation.
push 0xffffffffffffffff
push 1
push 3
push edx
call fcn.00409040
add esp, 0x14
push 0x50040
push 0x41cd50
push str.Installation_of_the_Agent_terminated_because_nthe_required_configuration_parameters_were_not_entered.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0xc]
push str.Configuration_parameters_are_missing_and_the__s_switch_was_used.
push eax
push 1
push 3
push edx
call fcn.00409040
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x30]
lea esi, [esp + 0x2c]
call fcn.00403580
add esp, 0x1c
mov eax, 0xffffffed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x5f8]
push edx
push eax
call fcn.00408350
add esp, 8
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x405107
mov ecx, dword [esp + 0xc]
push str.Installation_of_the_Agent_terminated.
push eax
push 1
push 3
push ecx
call fcn.00409040
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x258]
add esp, 0x14
cmp eax, ebx
jne 0x4050ee
mov eax, dword [0x41c120]
cmp eax, ebx
mov dword [0x41c124], 0x65
je 0x4050d8
push ebx
push ebx
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], ebx
push 0x50040
push 0x41cd50
push str.Installation_of_the_Agent_terminated_because_nthe_configuration_could_not_be_updated.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x405486
push ebx
push eax
call fcn.00408bc0
add esp, 8
xor edi, edi
lea esp, [esp]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0x41c328
lea ecx, [esp + 0x2cc]
push ecx
push edx
call fcn.00407a60
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffec
mov dword [esp + 0x20], esi
jne 0x405152
cmp edi, 4
jge 0x405172
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x405110
cmp esi, 0xfffffff4
jne 0x4051fe
mov eax, dword [esp + 0xc]
push eax
call fcn.004025d0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x405110
mov esi, eax
mov eax, dword [0x41c120]
cmp eax, ebx
mov dword [0x41b108], 1
mov dword [0x41c124], 0x65
je 0x4051a0
push ebx
push ebx
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], ebx
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x260], ebx
je 0x4053fa
cmp dword [eax + 0x258], ebx
jne 0x4053fa
cmp esi, 1
jne 0x405389
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x58]
movzx ecx, word [esp + 0x5a]
mov eax, 0x3b
sub eax, edx
imul eax, eax, 0x3e8
add eax, ecx
cmp eax, 0x2710
jae 0x405343
mov eax, 0x2710
jmp 0x40534f
cmp esi, ebx
jne 0x405172
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x700]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x24]
push edx
stosw word es:[edi], ax
push str.ConfigurationFile
push 0x80000002
lea esi, [esp + 0x28]
lea ebx, [esp + 0x70c]
mov eax, str.SystemCurrentControlSetServicesVxDKaseya
mov dword [0x41b108], 0x64
mov dword [0x41c124], 0x63
mov dword [esp + 0x28], 0x105
call fcn.00402bb0
mov esi, eax
xor edi, edi
add esp, 0xc
cmp esi, edi
mov ebx, 1
jne 0x405b5b
cmp dword [esp + 0x24], ebx
jne 0x405b5b
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x405b5b
cmp eax, 0x105
jae 0x405b5b
lea eax, [esp + 0x700]
push str.AgentKaseyaD.ini
push eax
call fcn.004060d0
add esp, 8
test eax, eax
jne 0x4054a7
mov eax, dword [0x41c120]
cmp eax, edi
mov dword [0x41b108], ebx
mov dword [0x41c124], 0x65
je 0x4052d4
push edi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], edi
lea ecx, [esp + 0x700]
push str.KServerKaseyaD.ini
push ecx
call fcn.004060d0
add esp, 8
test eax, eax
je 0x405430
mov edx, dword [esp + 0xc]
push str.The_Kaseya_Server_is_already_installed_on_this_machine.
push 0xffffffffffffffe8
push 3
push 3
push edx
mov dword [esp + 0x34], 0xffffffe8
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, edi
je 0x40547c
cmp dword [eax + 0x258], edi
jne 0x40547c
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_na_Kaseya_Server_is_already_installed_on_this_machine.
jmp 0x405475
cmp eax, 0xd6d8
jbe 0x40534f
mov eax, 0xd6d8
mov edx, dword [esp + 0xc]
push ebx
push eax
push str.The_Agent_installation_has_been_scheduled._n_nPlease_wait_up_to_one_minute_for_the_installation_to_proceed.
push edx
call fcn.00402640
mov eax, dword [esp + 0x1c]
add esp, 0x10
push str.The_installation_package_is_re_running_under_an_authorized_account
push esi
push 1
push 3
push eax
call fcn.00409040
add esp, 0x14
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x405486
cmp esi, 0xffffffec
jne 0x4053b2
push 0x50040
push 0x41cd50
push str.The_installation_package_containing_the_Agent_failed_to_run_nbecause_the_Windows_NT_Task_Scheduler_is_not_running.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push str.The_installation_package_containing_the_Agent_failed_to_run.
push esi
push 3
jmp 0x40536f
cmp esi, 0xffffffff
jne 0x4053db
push 0x50040
push 0x41cd50
push str.Installation_of_the_Agent_terminated_because_nthe_required_credentials_were_missing_or_incorrect._User_cancelled_the_nthe_installation..
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push str.Administrator_credentials_were_incorrect_and_the_user_canceled_the_installation.
push esi
push 3
jmp 0x40536f
cmp esi, 2
je 0x4053fa
push 0x50010
push 0x41cd50
push str.The_installation_package_containing_the_Agent_failed_to_run.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
cmp esi, 1
je 0x405367
cmp esi, 2
je 0x405367
cmp esi, 0xffffffed
jne 0x40541e
push str.The_credentials_contained_in_the_installation_package_were_incorrect_or_missing._Agent_failed_to_run.
push esi
push 3
jmp 0x40536f
cmp esi, 0xffffffff
jne 0x4053a8
push str.Administrator_credentials_were_incorrect_and_the_user_canceled_the_installation.
push esi
push 3
jmp 0x40536f
mov eax, dword [esp + 0xc]
push str.The_ConfigurationFile_registry_key_could_not_be_installed.
push 0xfffffffffffffffd
push 3
push 3
push eax
mov dword [esp + 0x34], 0xfffffffd
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, edi
je 0x40547c
cmp dword [eax + 0x258], edi
jne 0x40547c
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_due_to_an_error_nthat_prevented_proper_installation_of_the_ConfigurationFile_registry_key.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
mov ebx, dword [esp + 0x20]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, dword [esp + 0x28]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x28], edi
jne 0x4054bd
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x240], edi
je 0x4055aa
push edi
lea ecx, [esp + 0x704]
push ecx
lea edx, [esp + 0x600]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4054e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4054e4
xor esi, esi
lea eax, [esp + 0x5f8]
push eax
call fcn.00409d35
lea ecx, [esp + 0x2c4]
push ecx
call fcn.00409d35
add esp, 8
cmp esi, edi
je 0x4055aa
mov eax, dword [0x41c120]
cmp eax, edi
mov dword [0x41b108], ebx
mov dword [0x41c124], 0x65
je 0x405533
push edi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], edi
call fcn.00409e5d
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push str.The_configuration_file_could_not_be_moved_to_the_installation_directory.
push edx
push 3
push ebx
push eax
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, edi
je 0x40557c
cmp dword [eax + 0x258], edi
jne 0x40557c
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_configuration_file_could_not_be_moved_to_the_installation_directory.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x10]
push edx
mov ebx, dword [esp + 0x20]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
add esp, 8
call fcn.00409e5d
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x2c0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push str.Path
push 0x80000002
lea esi, [esp + 0x28]
lea ebx, [esp + 0x2cc]
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsAgentmon.exe
mov dword [esp + 0x28], 0x117
call fcn.00402bb0
add esp, 0xc
test eax, eax
je 0x405656
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x258]
test eax, eax
jne 0x405612
push 0x50010
push 0x41cd50
push str.The_installation_path_for_the_Agent_cannot_be_found_n_nThe_Agent_cannot_be_started.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0xc]
push str.Cannot_launch_the_agent_because_the_path_could_not_be_found.
push 0xffffffffffffffe4
push 3
push 3
push edx
call fcn.00409040
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x30]
lea esi, [esp + 0x2c]
call fcn.00403580
add esp, 0x1c
mov eax, 0xffffffe4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ebx, ebx
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x2c0]
mov byte [esp + eax + 0x1b8], cl
inc eax
cmp cl, bl
jne 0x405660
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push eax
call fcn.00408840
add esp, 8
test eax, eax
jne 0x40588f
lea ecx, [ecx]
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x3d8]
rep stosd dword es:[edi], eax
cmp byte [esp + 0xa0], 0x5c
je 0x405738
cmp byte [esp + 0xa1], 0x3a
je 0x405738
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0x3d8], cl
inc eax
cmp cl, bl
jne 0x4056c0
lea eax, [esp + 0x3d8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4056e0
sub eax, edx
mov ecx, 0x117
sub ecx, eax
push ecx
lea edx, [esp + 0x3dc]
push 0x4162ac
push edx
call fcn.00409c00
lea eax, [esp + 0x3e4]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405710
sub eax, edx
mov ecx, 0x117
sub ecx, eax
push ecx
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x3e0]
push eax
call fcn.00409c00
jmp 0x405752
push 0x117
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x3e0]
push edx
call fcn.004098f0
lea eax, [esp + 0x3e4]
add esp, 0xc
push eax
call fcn.00406400
lea ecx, [esp + 0x3dc]
push 0x415f98
push ecx
call fcn.004098d8
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4057d9
lea edx, [esp + 0x3d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4057c2
test al, 1
je 0x4057c2
push 0x80
lea eax, [esp + 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x3d8]
push 0x415f98
push ecx
call fcn.004098d8
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4057d9
lea edx, [esp + 0x3d8]
push edx
push str.WARNING:_Unable_to_open_the_file__s_to_save_the_additional_custom_Agent_installation_file._Agent_installation_proceeding.
lea eax, [esp + 0x9b0]
push eax
jmp 0x405820
mov edx, dword [esp + 0x1a8]
mov eax, dword [esp + 0x1b4]
push esi
push edx
push 1
push eax
call fcn.0040932a
push esi
mov edi, eax
call fcn.004095b0
mov eax, dword [esp + 0x1bc]
add esp, 0x14
cmp edi, eax
je 0x405875
lea ecx, [esp + 0x3d8]
push ecx
push str.WARNING:_Unable_to_write_the_file_content_to__s_to_save_the_additional_custom_Agent_installation_file._Agent_installation_proceeding.
lea edx, [esp + 0x9b0]
push edx
call fcn.00409a14
call fcn.00409e5d
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x9b4]
push ecx
push edx
push 3
push 1
push eax
call fcn.00409040
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x260]
add esp, 0x20
cmp ecx, ebx
je 0x405875
cmp dword [eax + 0x258], ebx
jne 0x405875
push 0x50010
push 0x41cd50
lea ecx, [esp + 0x9b0]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push eax
call fcn.00408840
add esp, 8
test eax, eax
je 0x405690
cmp dword [esp + 0x28], ebx
mov dword [0x41b108], 1
mov dword [0x41c124], 0x64
je 0x405a43
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x264], ebx
je 0x405909
push 4
lea edx, [esp + 0x4c]
push edx
push 4
push str.EnableRemoteControl
push 0x4164a8
push 0x80000002
mov dword [esp + 0x60], ebx
call fcn.004061f0
add esp, 0x18
cmp eax, ebx
jne 0x4058f2
push str.Disabled_remote_control.
push eax
mov eax, dword [esp + 0x14]
push 1
push 3
push eax
jmp 0x405901
mov ecx, dword [esp + 0xc]
push str.Failed_to_disable_remote_control.
push eax
push 2
push 3
push ecx
call fcn.00409040
add esp, 0x14
xor eax, eax
lea edx, [esp + 0x808]
mov ecx, 0x25
lea edi, [esp + 0x808]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x80c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405a43
cmp dword [esp + 0x818], 2
jne 0x405a43
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0xbb0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xbb4]
push ecx
mov dword [esp + 0x24], 0x1ff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x405a43
cmp byte [esp + 0xbb0], bl
je 0x405a43
lea edx, [esp + 0xbb0]
push str.SYSTEM
push edx
call fcn.0041309b
add esp, 8
test eax, eax
je 0x405a43
xor eax, eax
jmp 0x4059b0
mov cl, byte [esp + eax + 0x2c0]
mov byte [esp + eax + 0x1b8], cl
inc eax
cmp cl, bl
jne 0x4059b0
lea eax, [esp + 0x2c0]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4059d0
sub eax, edx
mov ecx, 0x117
sub ecx, eax
push ecx
lea edx, [esp + 0x2c4]
push 0x41544c
push edx
call fcn.00409c00
push ebx
push ebx
lea eax, [esp + 0x2d4]
push str.KaUsrTsk.exe
push eax
call fcn.004035e0
add esp, 0x1c
cmp eax, ebx
je 0x405a25
mov ecx, dword [esp + 0xc]
push str.Failed_to_launch_the_service_helper_task.
push eax
push 3
push 3
push ecx
call fcn.00409040
add esp, 0x14
xor eax, eax
jmp 0x405a30
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0x2c0], cl
inc eax
cmp cl, bl
jne 0x405a30
lea eax, [esp + 0x2c0]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405a50
sub eax, edx
mov edx, 0x117
sub edx, eax
push edx
lea eax, [esp + 0x2c4]
push 0x415410
push eax
call fcn.00409c00
mov edx, dword [esp + 0x18]
push ebx
push ebx
push str.agentmon.exe
lea ecx, [esp + 0x2d8]
push ecx
push edx
call fcn.00407a60
add esp, 0x20
cmp eax, ebx
je 0x405aaa
push str.Cannot_launch_the_agent.
push eax
mov eax, dword [esp + 0x14]
push 3
push 3
push eax
call fcn.00409040
add esp, 0x14
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x260], ebx
je 0x405ae1
cmp dword [eax + 0x258], ebx
jne 0x405ae1
cmp dword [eax + 0x254], ebx
jne 0x405ae1
mov ecx, dword [eax + 0x2d8]
push 1
push 0x7530
push ecx
push eax
call fcn.00402640
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov ecx, dword [0x41c120]
cmp ecx, ebx
mov dword [0x41c124], 0x65
je 0x405b0a
push ebx
push ebx
push 2
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0xc]
mov dword [0x41c120], ebx
cmp dword [eax + 0x254], ebx
je 0x405b32
call fcn.00402ff0
cmp eax, ebx
je 0x405b32
mov edx, dword [esp + 0xc]
push str.Attempt_to_reboot_the_system_failed.
push eax
push 3
push 1
push edx
call fcn.00409040
add esp, 0x14
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x41c120]
cmp eax, edi
mov dword [0x41b108], ebx
mov dword [0x41c124], 0x65
je 0x405b85
push edi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], edi
mov edx, dword [esp + 0xc]
push str.Installation_of_the_Agent_Failed.
push esi
push 3
push ebx
push edx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
cmp ecx, edi
je 0x405bc7
cmp dword [eax + 0x258], edi
jne 0x405bc7
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_Failed
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, 0xfffffffd
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
movsx edx, byte [esp + 0x3c]
push edx
push str.Installation_of_the_Agent_failed_because_nthe_target_installation_drive___c:__could_not_be_found_on_this_computer.
push 0x41c328
call fcn.00409a14
add esp, 0xc
push 0x50010
push 0x41cd50
push 0x41c328
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
movsx eax, byte [esp + 0x3c]
push eax
push str.Cannot_install_agent_on_machine_because_the_target_installation_drive___c:__is_missing.
push 0x41c328
call fcn.00409a14
mov ecx, dword [esp + 0x18]
push 0x41c328
push 0xffffffffffffffe2
push 3
push 3
push ecx
call fcn.00409040
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x30]
push eax
lea edi, [esp + 0x3c]
lea esi, [esp + 0x38]
call fcn.00403580
add esp, 0x28
mov eax, 0xffffffe2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x4f0]
push 0x5c
push ecx
call fcn.00409e30
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x405d36
mov eax, dword [0x41c120]
test eax, eax
mov dword [0x41b108], 1
mov dword [0x41c124], 0x65
je 0x405cc5
push ebx
push ebx
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], ebx
mov edx, dword [esp + 0xc]
push str.Failed_to_locate_the_installation_name_for_scheduling.
push 0xffffffffffffffe4
push 3
push 3
push edx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
test ecx, ecx
je 0x405d0c
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x405d0c
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_name_of_the_installation_file_was_not_found.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, 0xffffffe4
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
inc ebx
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0x2c0], cl
inc eax
test cl, cl
jne 0x405d40
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d57
lea edi, [esp + 0x2c0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405d68
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
lea edx, [esp + 0x2c4]
push edx
lea eax, [esp + 0x4f8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [0x41c120]
test eax, eax
mov dword [0x41b108], 1
mov dword [0x41c124], 0x65
je 0x405dcc
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c120], 0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x405df5
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
push ebx
mov dword [ecx + 0x98], 1
xor eax, eax
push str._s__s
mov ecx, 0x28a
mov edi, 0x41c328
push 0x41c328
rep stosd dword es:[edi], eax
call fcn.00409a14
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x41c328
lea eax, [esp + 0x2dc]
push eax
push ecx
call fcn.00407a60
add esp, 0x24
test eax, eax
mov dword [esp + 0x20], eax
je 0x405e92
mov edx, dword [esp + 0xc]
push str.Local_copy_of_the_installation_package_could_not_be_accessed.
push eax
push 3
push 1
push edx
call fcn.00409040
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x260]
add esp, 0x14
test ecx, ecx
je 0x405e92
mov ecx, dword [eax + 0x258]
test ecx, ecx
jne 0x405e92
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nthe_local_copy_of_the_installation_package_could_not_be_accessed.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00403580
mov eax, dword [esp + 0x28]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push 0x50010
push 0x41cd50
push str.Installation_of_the_Agent_failed_because_nanother_instance_of_this_installation_package_is_already_running.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test edi, edi
je 0x405eec
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xc]
push edx
call fcn.00407600
lea eax, [esp + 0x7c]
push eax
call fcn.00408810
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10