Function at 0x402c00
Capabilities:
Copy file
Create service
Delete file
Get installed programs
Modify service
Move file
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x470
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [esp + 0x468], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x402cc1
mov esi, eax
lea edi, [esp + 0x46]
push 0x105
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402d02
push 0xf01ff
push str.MozillaMaintenance
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], ebx
je 0x402d43
test ebx, ebx
jne 0x402d43
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403720
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor ebx, ebx
jmp 0x403909
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40369a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor ebx, ebx
jmp 0x40391f
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4036dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_module_filename_when_attempting_to_install_service.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor ebx, ebx
jmp 0x403918
test ebx, ebx
je 0x402e53
lea edx, [esp + 0x250]
mov ecx, ebx
mov dword [esp + 0x250], 0
call fcn.00404450
mov edi, eax
mov eax, dword [esp + 0x250]
test eax, eax
je 0x402d78
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x402db6
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403763
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_reset_security_ACE_on_service_handle._It_might_not_be_possible_to_start_the_service._This_error_should_never_happen.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
lea edi, [esp + 0x3c]
push edi
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x402dd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403354
mov ebx, dword [esp + 0x3c]
push ebx
call fcn.0040da41
add esp, 4
push edi
mov edi, eax
push ebx
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x402f15
cmp byte [0x4347a0], 0
mov dword [esp + 0x14], edi
jne 0x402f97
mov edi, dword [edi + 0xc]
push edi
call fcn.00416b42
add esp, 4
cmp eax, 3
jb 0x402f56
mov ebx, eax
push str.maintenanceservice_tmp.exe
push edi
call fcn.00410303
add esp, 8
test eax, eax
jne 0x402f56
cmp word [edi], 0x22
jne 0x402f56
cmp word [edi + ebx*2 - 2], 0x22
sete bl
jmp 0x402f58
cmp dword [ebp + 8], 0
mov ebx, 1
je 0x403909
push edi
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 3
push 0x10
push 0xf01ff
push str.Mozilla_Maintenance_Service
push str.MozillaMaintenance
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
mov dword [esp + 0xc], eax
je 0x4033c0
lea edx, [esp + 0x250]
mov ecx, eax
mov dword [esp + 0x250], 0
call fcn.00404450
mov edi, eax
mov eax, dword [esp + 0x250]
test eax, eax
je 0x402ec9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x402f07
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_set_security_ACE_on_service_handle__the_service_will_not_be_able_to_be_started_from_unelevated_processes._This_error_should_never_happen.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov ecx, dword [esp + 0xc]
call fcn.00402780
jmp 0x403909
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4037a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_open_service_but_could_not_query_service_config.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor ebx, ebx
jmp 0x403900
xor ebx, ebx
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4037e9
test bl, bl
je 0x40382f
push str.The_MozillaMaintenance_service_path_is_correct.
push 0x434588
call fcn.0040c830
add esp, 8
mov edi, dword [esp + 0x14]
push dword [edi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x2c]
lea edi, [esp + 0x30]
lea ebx, [esp + 0x34]
lea edx, [esp + 0x38]
push eax
push edi
push ebx
call fcn.004040e0
add esp, 0xc
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x20]
lea ecx, [esp + 0x46]
lea edx, [esp + 0x24]
push eax
push edi
push ebx
call fcn.004040e0
add esp, 0xc
test eax, eax
je 0x403386
cmp dword [ebp + 8], 2
mov edi, dword [esp + 0xc]
je 0x403008
cmp dword [esp + 0x10], 0
je 0x403008
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], eax
jae 0x40343f
mov ecx, edi
call fcn.00402780
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x4033f2
push 0xf01ff
push str.MozillaMaintenance
mov dword [esp + 0x14], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403b7c
test edi, edi
lea ebx, [esp + 0x250]
je 0x403483
push str.Sending_stop_request...
push 0x434588
call fcn.0040c830
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 1
mov dword [esp + 0x18], edi
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4030e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x4030e7
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_sending_stop_request.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0xc]
call ebx
push dword [esp + 0x10]
call ebx
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403c02
push str.Waiting_for_service_stop...
push 0x434588
call fcn.0040c830
add esp, 8
mov edi, 0x1e
push 0x1e
push str.MozillaMaintenance
call fcn.0040d320
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xc], eax
push 0x42dd32
call fcn.0040d660
add esp, 4
cmp eax, 0x490
je 0x403168
push 0x3e8
call ebx
dec edi
jne 0x40314a
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403c45
mov edi, dword [esp + 0xc]
push edi
push str.Done_waiting_for_service_stop__last_service_state:__d
push 0x434588
call fcn.0040c830
add esp, 0xc
cmp edi, 1
mov edi, dword [esp + 0x14]
lea ebx, [esp + 0x46]
jne 0x403430
push dword [edi + 0xc]
push ebx
call fcn.00416ae0
add esp, 8
test eax, eax
je 0x4034b5
push 0
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4034fb
xorps xmm0, xmm0
movaps xmmword [esp + 0x340], xmm0
movaps xmmword [esp + 0x330], xmm0
movaps xmmword [esp + 0x320], xmm0
movaps xmmword [esp + 0x310], xmm0
movaps xmmword [esp + 0x300], xmm0
movaps xmmword [esp + 0x2f0], xmm0
movaps xmmword [esp + 0x2e0], xmm0
movaps xmmword [esp + 0x2d0], xmm0
movaps xmmword [esp + 0x2c0], xmm0
movaps xmmword [esp + 0x2b0], xmm0
movaps xmmword [esp + 0x2a0], xmm0
movaps xmmword [esp + 0x290], xmm0
movaps xmmword [esp + 0x280], xmm0
movaps xmmword [esp + 0x270], xmm0
movaps xmmword [esp + 0x260], xmm0
movaps xmmword [esp + 0x250], xmm0
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
push str._d._d._d._d
push 0x80
lea ebx, [esp + 0x268]
push ebx
call fcn.00401e40
add esp, 0x1c
lea eax, [esp + 0x40]
push eax
push 0x20206
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMozillaMaintenanceService
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032dc
push ebx
call fcn.00416b42
add esp, 4
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.DisplayVersion
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov edi, dword [esp + 0x14]
je 0x40330f
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403d94
push str.The_uninstaller_version_string_could_not_be_updated.
push 0x434588
call fcn.0040c830
add esp, 8
mov dword [esp + 0xc], 0
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [0x433a44]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403ccb
push str.The_new_service_binary_was_copied_in.
push 0x434588
call fcn.0040c830
add esp, 8
mov ebx, 1
jmp 0x403feb
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_determine_buffer_size_for_query_service_config.____d_
jmp 0x402cad
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403ab3
push str.Could_not_obtain_version_number_from_new_path
push 0x434588
call fcn.0040c890
add esp, 8
xor ebx, ebx
jmp 0x4038fc
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403af6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_Windows_service._This_error_should_never_happen_since_a_service_install_should_only_be_called_when_elevated.____d_
jmp 0x402cad
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov edi, dword [esp + 0x14]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov dword [esp + 0xc], 0
xor ebx, ebx
jmp 0x403900
jne 0x40346f
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], eax
jb 0x403008
jne 0x40346f
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], eax
jb 0x403008
jne 0x40346f
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jb 0x403008
push 4
push 0
lea eax, [esp + 0x4e]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4038f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esp + 0xc], 0
xor ebx, ebx
jmp 0x4038fc
mov dword [esp + 0xc], 0
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [0x433a44]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403d51
push ebx
push str.File_is_already_in_the_correct_location__no_action_needed_for_upgrade.__The_path_is:___ls_
push 0x434588
call fcn.0040c830
add esp, 0xc
mov ebx, 1
jmp 0x403900
mov dword [esp + 0xc], 0
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [0x433a44]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_overwrite_old_service_binary_file._This_should_never_happen__but_if_it_does_the_next_upgrade_will_fix_it__the_service_is_not_a_critical_component_that_needs_to_be_installed_for_upgrades_to_work.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], eax
push eax
call fcn.00416b42
add esp, 4
cmp eax, 4
jb 0x403615
mov ebx, eax
inc eax
mov ecx, 0xffffffff
add eax, eax
cmovae ecx, eax
push ecx
call fcn.0040da41
add esp, 4
mov edi, eax
lea eax, [ebx + ebx + 2]
push eax
push 0
push edi
call fcn.00410040
add esp, 0xc
push ebx
push dword [esp + 0x14]
push edi
call fcn.00416fbb
add esp, 0xc
lea eax, [edi + ebx*2 - 6]
mov ebx, edi
push 3
push 0x42ded4
push eax
call fcn.00416fbb
add esp, 0xc
push 9
push edi
mov edi, dword [esp + 0x1c]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x403653
mov dword [esp + 0x10], ebx
push 0
push dword [edi + 0xc]
lea eax, [esp + 0x4e]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ebx, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403ee3
test ebx, ebx
je 0x403f29
push str.The_new_service_binary_was_copied_in_by_first_moving_the_old_one_out_of_the_way.
push 0x434588
call fcn.0040c830
add esp, 8
mov ebx, 1
jmp 0x403f3d
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403e5d
push str.Service_binary_path_was_less_than_3__service_will_not_be_updated.__This_should_never_happen.
push 0x434588
call fcn.0040c890
add esp, 8
mov edi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x403feb
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40409b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [edi + 0xc]
push str.Could_not_move_old_service_file_out_of_the_way_from:___ls__to___ls_._Service_will_not_be_upgraded.____d_
push 0x434588
call fcn.0040c890
add esp, 0x14
mov eax, ebx
xor ebx, ebx
jmp 0x403fe2
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402ce2
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x402ce2
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402d23
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x402d23
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402ca1
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x402ca1
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402d9d
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x402d9d
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402f36
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x402f36
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402f79
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
test bl, bl
jne 0x402f81
push edi
push str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
push 0x434588
call fcn.0040c830
add esp, 0xc
push 0x20a
push 0
lea ebx, [esp + 0x258]
push ebx
call fcn.00410040
add esp, 0xc
push 0x104
push edi
push ebx
call fcn.00416fbb
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x403937
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov edi, str.Couldnt_remove_file_spec.____d_
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x434588
call fcn.0040c890
add esp, 0xc
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_fix_service_path._This_should_never_happen.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov ebx, 1
mov edi, dword [esp + 0x14]
push edi
call fcn.0040da4a
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403918
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.0040e271
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x42dd32
push ebx
call fcn.0040d840
add esp, 8
test eax, eax
je 0x403a07
push ebx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ebx, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403e1a
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x403a23
lea eax, [esp + 0x250]
push eax
push str.Fixed_service_path_to:__ls.
push 0x434588
call fcn.0040c830
add esp, 0xc
mov byte [0x4347a0], 1
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403ea0
mov eax, dword [ebp + 8]
mov ebx, eax
push eax
push str.Restarting_install_action:__d
push 0x434588
call fcn.0040c830
add esp, 0xc
push ebx
call fcn.00402c00
add esp, 4
mov ebx, eax
jmp 0x403900
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov edi, str.Couldnt_append_file_spec.____d_
jmp 0x403899
mov edi, str.Could_not_fix_service_path.____d_
jmp 0x4038a8
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403375
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403375
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402eee
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x402eee
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4033a7
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4033a7
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4033e1
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4033e1
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4038de
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4038de
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403065
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403065
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4038a8
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4038a8
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40311a
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40311a
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403189
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403189
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403417
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403417
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403338
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403338
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4030ce
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4030ce
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4034de
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4034de
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4032fd
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4032fd
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403524
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403524
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403991
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403991
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403636
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403636
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4039df
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4039df
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4035f1
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
test ebx, ebx
jne 0x4035f9
push str.The_new_service_binary_could_not_be_copied_in._The_service_will_not_be_upgraded.
push 0x434588
call fcn.0040c890
add esp, 8
xor ebx, ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x28], eax
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [0x433a44]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403f8b
cmp dword [esp + 0x28], 0
je 0x403fcc
push dword [esp + 0x10]
push str.The_old_temp_service_path_was_deleted:__ls.
push 0x434588
call fcn.0040c830
mov eax, dword [esp + 0x1c]
add esp, 0xc
jmp 0x403fe2
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403f68
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x403f6f
push str.The_old_temp_service_path_was_not_deleted.
push 0x434588
call fcn.0040c890
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call fcn.0040da4a
add esp, 4
push 4
push 0
lea eax, [esp + 0x4e]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esp + 0x10], eax
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [0x433a44]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40403e
cmp dword [esp + 0x10], 0
je 0x40407f
lea eax, [esp + 0x46]
push eax
push str.Deleting_the_old_file_path_on_the_next_reboot:__ls.
push 0x434588
call fcn.0040c830
add esp, 0xc
jmp 0x403900
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40401b
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x404022
lea eax, [esp + 0x46]
push eax
push str.Call_to_delete_the_old_file_path_failed:__ls.
push 0x434588
call fcn.0040c890
add esp, 0xc
jmp 0x403900
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403674
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x403674