Function at 0x404e30
Capabilities:
Hide graphical window
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43327e
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push str.Attempting_to__s_Manager
mov edi, ecx
call fcn.0040d8e0
add esp, 8
push 0x449dbf
mov ecx, 0x449dc0
lea esi, [esp + 0x64]
call fcn.00404d70
mov dword [esp + 0x198], 0
cmp dword [esp + 0x74], 0
jne 0x404eac
xor ebx, ebx
jmp 0x404eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [esp + 0x17], 0
test ebx, ebx
je 0x405035
mov eax, dword [0x44a6ec]
push 0x4364e7
push 0x41e
push eax
mov byte [0x44a704], 0
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [0x44a6ec]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4b
push 0
push 0x40a
push 0x3eb
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x44a6ec]
push 0
push 0x3eb
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [0x44a6ec]
push 0
push 0x41e
push eax
call esi
push eax
call edi
mov ecx, dword [0x44a6ec]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, ebx
lea esi, [esp + 0x28]
call fcn.00416250
mov byte [esp + 0x198], 1
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x404f5e
mov eax, dword [eax + 4]
jmp 0x404f61
add eax, 4
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], esi
jae 0x404f6f
lea ecx, [esp + 0x64]
push eax
push ebx
push ecx
push str.Setup_cannot_access_the_file__s._The_specific_error_was__u:__s._r_n_r_nCorrect_the_problem_and_try_again.
lea ecx, [esp + 0x54]
call fcn.004172c0
add esp, 0x10
mov byte [esp + 0x198], 3
cmp dword [esp + 0x40], esi
jb 0x404f9e
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042019e
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
cmp dword [esp + 0x5c], esi
jae 0x404fc1
lea ecx, [esp + 0x48]
mov eax, dword [0x448730]
push 0
push str.Cannot_replace_file
push 0x30
push eax
mov edi, 0x436b2c
call fcn.0041a340
add esp, 0x10
mov byte [esp + 0x198], 0
cmp dword [esp + 0x5c], esi
jb 0x404ff8
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042019e
add esp, 4
mov edi, 0xf
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov dword [esp + 0x198], 0xffffffff
cmp dword [esp + 0x78], esi
jb 0x40502c
mov edx, dword [esp + 0x64]
push edx
call fcn.0042019e
add esp, 4
mov dword [esp + 0x78], edi
jmp 0x40565c
push str.Manager_File_Path
mov eax, 0x448c60
mov ecx, str.SoftwareGreywareDomain_Time_II_ManagerParameters
call fcn.00411a90
add esp, 4
push 0x448f78
call fcn.004174f0
add esp, 4
push 0x449188
call fcn.004174f0
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
lea esi, [edi + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
je 0x405091
push 0x449290
call fcn.004174f0
add esp, 4
lea eax, [edi + 8]
call fcn.0040f4d0
mov ebx, eax
test ebx, ebx
jne 0x405567
lea eax, [edi + 0x20]
call fcn.0040f4d0
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405563
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x4050f5
lea ebx, [edi + 0x50]
push 0x449290
call fcn.0040c950
add esp, 4
push esi
push 0x448948
mov ecx, 0x449290
call fcn.0040c7a0
add esp, 8
lea edx, [esp + 0x44]
push edx
call fcn.00417a60
mov byte [esp + 0x198], 4
mov eax, dword [esp + 0x18]
push eax
push 0x4477e0
push 0x4477b4
lea eax, [esp + 0x50]
call fcn.0040ab00
lea ecx, [esp + 0x44]
push ecx
push 0x449398
mov ecx, 0x448c60
call fcn.0040c7a0
add esp, 8
test al, al
jne 0x40513f
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x18]
push edx
push str.Domain_Time_II_Setup
push 0x447868
lea eax, [esp + 0x50]
call fcn.0040ab00
push 0x448f78
lea ebx, [esp + 0x48]
call fcn.0040c950
add esp, 4
push 0x449188
call fcn.0040c950
mov esi, dword [ebp + 0xc]
add esp, 4
cmp esi, 1
ja 0x405190
push esi
push str.Auto_Manage_Firewall
mov ecx, str.SoftwareGreywareDomain_Time_II_ManagerParameters
call fcn.00411b10
add esp, 8
push str.Current_Version
mov ecx, str.SoftwareGreywareDomain_Time_II_ManagerParameters
call fcn.00411c70
add esp, 4
test eax, eax
je 0x4051e0
mov edx, str.5.2.b.2014
mov ecx, eax
lea ecx, [ecx]
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x4051d0
test bl, bl
je 0x4051cc
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x4051d0
add ecx, 2
add edx, 2
test bl, bl
jne 0x4051b0
xor ecx, ecx
jmp 0x4051d5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jle 0x4051e0
mov edi, 1
jmp 0x4051e2
xor edi, edi
test eax, eax
je 0x4051ed
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4051f6
call fcn.0040f870
lea ebx, [esp + 0x1c]
mov ecx, str.SoftwareGreywareDomain_Time_II_ManagerParameters
call fcn.00411880
mov edi, eax
test edi, edi
jne 0x405235
push 5
push str.True
push 1
push eax
mov eax, dword [esp + 0x2c]
push str.Service_Installed
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x1c]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40523c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Current_Version
mov eax, 0x4371a0
mov ecx, str.SoftwareGreywareDomain_Time_II_ManagerParameters
call fcn.00411a90
add esp, 4
call fcn.00411f30
test eax, eax
jne 0x405279
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00411b70
add esp, 8
call fcn.0040cbd0
call fcn.0040ce80
call fcn.0040ca20
push 1
call fcn.0040bc40
add esp, 4
push 0x4371f4
push str.SoftwareMicrosoftWindowsCurrentVersion
lea edx, [esp + 0x84]
push str._sUninstall_s
push edx
call fcn.0041fa79
push 0x436154
push 0x448c60
push str._s_s__remove
lea eax, [esp + 0x98]
push str.UninstallString
push eax
call fcn.00411a10
add esp, 0x24
push str.dtman.exe
push 0x448c60
push str._s_s_0
lea ecx, [esp + 0x88]
push str.DisplayIcon
push ecx
call fcn.00411a10
add esp, 0x14
push str.PublisherName
mov eax, 0x437284
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
push str.Publisher
mov eax, 0x437284
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
push 1
push str.NoModify
lea ecx, [esp + 0x84]
call fcn.00411b10
push 1
push str.NoRepair
lea ecx, [esp + 0x8c]
call fcn.00411b10
push 0
push str.TSAware
lea ecx, [esp + 0x94]
call fcn.00411b10
push 0
push str.WindowsInstaller
lea ecx, [esp + 0x9c]
call fcn.00411b10
push 5
push str.VersionMajor
lea ecx, [esp + 0xa4]
call fcn.00411b10
mov ebx, 2
push ebx
push str.VersionMinor
lea ecx, [esp + 0xac]
call fcn.00411b10
push str.HelpTelephone
mov eax, str.1_972_867_2794
lea ecx, [esp + 0xb0]
call fcn.00411a90
add esp, 0x34
push str.Contact
mov eax, str.techsupport_greyware.com
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
push str.HelpLink
mov eax, str.https:__www.greyware.com_software_domaintime_productindex.asp
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
push str.URLInfoAbout
mov eax, str.https:__www.greyware.com_
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
push str.URLUpdateInfo
mov eax, str.sales_greyware.com
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
push str.DisplayName
mov eax, 0x4371f4
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
push str.DisplayVersion
mov eax, 0x4371a0
lea ecx, [esp + 0x80]
call fcn.00411a90
add esp, 4
cmp byte [0x44a428], 0
je 0x40548b
test byte [0x44a42c], bl
je 0x40548b
push 0
mov ecx, str.upgrade
mov edx, 0x44a428
call fcn.00403860
test eax, eax
je 0x40551c
push str.Could_not_upgrade_Monitor_service
mov edi, eax
call fcn.0040d7c0
add esp, 4
mov byte [esp + 0x17], 1
cmp byte [0x44a2c8], 0
je 0x4054c4
test byte [0x44a2cc], bl
je 0x4054c4
push esi
mov ecx, str.upgrade
mov edx, 0x44a2c8
call fcn.00403860
test eax, eax
je 0x40552e
push str.Could_not_upgrade_Audit_Server_service
mov edi, eax
call fcn.0040d7c0
add esp, 4
mov byte [esp + 0x17], 1
cmp byte [0x44a758], 0
je 0x405551
test byte [0x44a75c], bl
je 0x405551
push 0
mov ecx, str.upgrade
mov edx, 0x44a758
call fcn.00403860
test eax, eax
jne 0x40553d
push str.Update_Server_service_upgraded
call fcn.0040d8e0
add esp, 4
push ebx
mov esi, str.dtupdate_upgrade_event
call fcn.004124f0
mov esi, eax
test esi, esi
je 0x405551
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405551
push str.Monitor_service_upgraded
call fcn.0040d8e0
add esp, 4
jmp 0x40548b
push str.Audit_Server_service_upgraded
call fcn.0040d8e0
add esp, 4
jmp 0x4054c4
push str.Could_not_upgrade_Update_Server_service
mov edi, eax
call fcn.0040d7c0
add esp, 4
mov byte [esp + 0x17], 1
mov byte [esp + 0x198], 0
lea edx, [esp + 0x44]
push edx
call fcn.00409370
mov ebx, dword [esp + 0x18]
call fcn.00402da0
test al, al
je 0x40557c
mov eax, dword [0x448730]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x44a6ec]
push 0x4364e7
push 0x41e
push ecx
mov byte [0x44a704], 0
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, dword [0x44a6ec]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4b
push 0
push 0x40a
push 0x3eb
push edx
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x44a6ec]
push 0
push 0x3eb
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov ecx, dword [0x44a6ec]
push 0
push 0x41e
push ecx
call esi
push eax
call edi
mov edx, dword [0x44a6ec]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
jne 0x405635
push ebx
mov edi, 0x436b2c
push str.Management_Tools_Setup
cmp byte [esp + 0x1f], bl
je 0x40561c
mov eax, dword [0x448730]
push 0x30
push eax
mov ecx, str.The_operation_completed__but_minor_errors_were_encountered._You_should_review_the_setup_log_file.
jmp 0x40562d
mov ecx, dword [0x448730]
push 0x10040
push ecx
mov ecx, str.The_operation_completed_successfully.
call fcn.0041a340
add esp, 0x10
mov dword [esp + 0x198], 0xffffffff
cmp dword [esp + 0x78], 0x10
jb 0x405654
mov edx, dword [esp + 0x64]
push edx
call fcn.0042019e
add esp, 4
mov dword [esp + 0x78], 0xf
mov eax, ebx
mov byte [esp + 0x64], 0
mov dword [esp + 0x74], 0
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0041f826
mov esp, ebp
pop ebp
ret 8