Function at 0x402a30
Capabilities:
Copy file
Create service
Delete file
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 0x402af1
mov esi, eax
lea edi, [esp + 0x46]
push 0x105
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402b32
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 + 0x10], ebx
je 0x402b73
test ebx, ebx
jne 0x402b73
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 0x403527
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
xor ebx, ebx
jmp 0x403710
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 0x4034a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
xor ebx, ebx
jmp 0x403726
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 0x4034e4
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.0040b1d0
add esp, 0xc
xor ebx, ebx
jmp 0x40371f
test ebx, ebx
je 0x402c83
lea edx, [esp + 0x250]
mov ecx, ebx
mov dword [esp + 0x250], 0
call fcn.00404260
mov edi, eax
mov eax, dword [esp + 0x250]
test eax, eax
je 0x402ba8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x402be6
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 0x40356a
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.0040b1d0
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 0x402c09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403164
mov ebx, dword [esp + 0x3c]
push ebx
call fcn.0040d9ae
add esp, 4
push edi
mov edi, eax
push ebx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x402d45
cmp byte [0x4347a0], 0
mov dword [esp + 0x14], edi
jne 0x402dc7
mov edi, dword [edi + 0xc]
push edi
call fcn.00416af2
add esp, 4
cmp eax, 3
jb 0x402d86
mov ebx, eax
push str.maintenanceservice_tmp.exe
push edi
call fcn.004102b3
add esp, 8
test eax, eax
jne 0x402d86
cmp word [edi], 0x22
jne 0x402d86
cmp word [edi + ebx*2 - 2], 0x22
sete bl
jmp 0x402d88
cmp dword [ebp + 8], 0
mov ebx, 1
je 0x403710
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 + 0x10], eax
je 0x4031d0
lea edx, [esp + 0x250]
mov ecx, eax
mov dword [esp + 0x250], 0
call fcn.00404260
mov edi, eax
mov eax, dword [esp + 0x250]
test eax, eax
je 0x402cf9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x402d37
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 0x403877
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.0040b1d0
add esp, 0xc
mov ecx, dword [esp + 0x10]
call fcn.004025b0
jmp 0x403710
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 0x4035ad
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.0040b1d0
add esp, 0xc
xor ebx, ebx
jmp 0x403707
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 0x4035f0
test bl, bl
je 0x403636
push str.The_MozillaMaintenance_service_path_is_correct.
push 0x434588
call fcn.0040b170
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.00403ef0
add esp, 0xc
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0x20]
lea ebx, [esp + 0x24]
lea ecx, [esp + 0x46]
lea edx, [esp + 0x28]
push eax
push edi
push ebx
call fcn.00403ef0
add esp, 0xc
test eax, eax
je 0x403196
cmp dword [ebp + 8], 2
mov edi, dword [esp + 0x10]
je 0x402e38
cmp dword [esp + 0xc], 0
je 0x402e38
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x38], eax
jae 0x40324f
mov ecx, edi
call fcn.004025b0
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 0x403202
push 0xf01ff
push str.MozillaMaintenance
mov dword [esp + 0x18], 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 0x403983
test edi, edi
lea ebx, [esp + 0x250]
je 0x403293
push str.Sending_stop_request...
push 0x434588
call fcn.0040b170
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 1
mov dword [esp + 0x14], edi
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x402f17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x402f17
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 0x403b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_sending_stop_request.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0x10]
call ebx
push dword [esp + 0xc]
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 0x403a09
push str.Waiting_for_service_stop...
push 0x434588
call fcn.0040b170
add esp, 8
push 0x1e
push str.MozillaMaintenance
call fcn.0040bd00
add esp, 8
mov ebx, eax
push 0x1e
push 0x42dd22
call fcn.0040c030
add esp, 8
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 0x403a4c
push ebx
push str.Done_waiting_for_service_stop__last_service_state:__d
push 0x434588
call fcn.0040b170
add esp, 0xc
cmp ebx, 1
mov dword [esp + 0x10], 0
jne 0x4032c5
push dword [edi + 0xc]
lea ebx, [esp + 0x4a]
push ebx
call fcn.00416a90
add esp, 8
test eax, eax
je 0x4032cc
push 0
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40330a
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 + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push str._d._d._d._d
push 0x80
lea ebx, [esp + 0x268]
push ebx
call fcn.00401d10
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 0x4030f4
push ebx
call fcn.00416af2
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 0x403127
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 0x403b9b
push str.The_uninstaller_version_string_could_not_be_updated.
push 0x434588
call fcn.0040b170
add esp, 8
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 0x403ad2
push str.The_new_service_binary_was_copied_in.
push 0x434588
call fcn.0040b170
add esp, 8
mov ebx, 1
jmp 0x403df2
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 0x403834
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_determine_buffer_size_for_query_service_config.____d_
jmp 0x402add
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 0x4038ba
push str.Could_not_obtain_version_number_from_new_path
push 0x434588
call fcn.0040b1d0
add esp, 8
xor ebx, ebx
jmp 0x403703
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 0x4038fd
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 0x402add
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 0x403a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
mov dword [esp + 0x10], 0
xor ebx, ebx
jmp 0x403707
jne 0x40327f
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x34], eax
jb 0x402e38
jne 0x40327f
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x30], eax
jb 0x402e38
jne 0x40327f
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
jb 0x402e38
push 4
push 0
lea eax, [esp + 0x4e]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4036fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esp + 0x10], 0
xor ebx, ebx
jmp 0x403703
xor ebx, ebx
jmp 0x403707
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 0x403b58
push ebx
push str.File_is_already_in_the_correct_location__no_action_needed_for_upgrade.__The_path_is:___ls_
push 0x434588
call fcn.0040b170
add esp, 0xc
mov ebx, 1
jmp 0x403707
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 0x403bde
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.0040b1d0
add esp, 0xc
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], eax
push eax
call fcn.00416af2
add esp, 4
cmp eax, 4
jb 0x40341c
mov ebx, eax
inc eax
mov ecx, 0xffffffff
add eax, eax
cmovae ecx, eax
push ecx
call fcn.0040d9ae
add esp, 4
mov edi, eax
lea eax, [ebx + ebx + 2]
push eax
push 0
push edi
call fcn.0040fff0
add esp, 0xc
push ebx
push dword [esp + 0x10]
push edi
call fcn.00416f6b
add esp, 0xc
lea eax, [edi + ebx*2 - 6]
mov ebx, edi
push 3
push 0x42dec4
push eax
call fcn.00416f6b
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 0x40345a
mov dword [esp + 0xc], 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 0x403cea
test ebx, ebx
je 0x403d30
push str.The_new_service_binary_was_copied_in_by_first_moving_the_old_one_out_of_the_way.
push 0x434588
call fcn.0040b170
add esp, 8
mov ebx, 1
jmp 0x403d44
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 0x403c64
push str.Service_binary_path_was_less_than_3__service_will_not_be_updated.__This_should_never_happen.
push 0x434588
call fcn.0040b1d0
add esp, 8
mov edi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x403df2
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 0x403ea2
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.0040b1d0
add esp, 0x14
mov eax, ebx
xor ebx, ebx
jmp 0x403de9
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402b12
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402b12
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402b53
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402b53
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402ad1
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402ad1
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402bcd
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402bcd
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402d66
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402d66
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402da9
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
test bl, bl
jne 0x402db1
push edi
push str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
push 0x434588
call fcn.0040b170
add esp, 0xc
push 0x20a
push 0
lea ebx, [esp + 0x258]
push ebx
call fcn.0040fff0
add esp, 0xc
push 0x104
push edi
push ebx
call fcn.00416f6b
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 + 0x10]
test eax, eax
jne 0x40373e
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 0x4039c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x434588
call fcn.0040b1d0
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 0x403940
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.0040b1d0
add esp, 0xc
mov ebx, 1
mov edi, dword [esp + 0x14]
push edi
call fcn.0040d9b7
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40371f
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.0040e0d1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x42dd22
push ebx
call fcn.0040c350
add esp, 8
test eax, eax
je 0x40380e
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 0x403c21
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x40382a
lea eax, [esp + 0x250]
push eax
push str.Fixed_service_path_to:__ls.
push 0x434588
call fcn.0040b170
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 0x403ca7
mov eax, dword [ebp + 8]
mov ebx, eax
push eax
push str.Restarting_install_action:__d
push 0x434588
call fcn.0040b170
add esp, 0xc
push ebx
call fcn.00402a30
add esp, 4
mov ebx, eax
jmp 0x403707
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov edi, str.Couldnt_append_file_spec.____d_
jmp 0x4036a0
mov edi, str.Could_not_fix_service_path.____d_
jmp 0x4036af
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403185
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x403185
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402d1e
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402d1e
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4031b7
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x4031b7
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4031f1
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x4031f1
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4036e5
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x4036e5
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402e95
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402e95
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4036af
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x4036af
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402f4a
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402f4a
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402fa1
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402fa1
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403227
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x403227
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403148
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x403148
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x402efe
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x402efe
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4032ed
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x4032ed
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403115
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x403115
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40332b
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40332b
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403798
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x403798
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40343d
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40343d
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4037e6
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x4037e6
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4033f8
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
test ebx, ebx
jne 0x403400
push str.The_new_service_binary_could_not_be_copied_in._The_service_will_not_be_upgraded.
push 0x434588
call fcn.0040b1d0
add esp, 8
xor ebx, ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x18], 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 0x403d92
cmp dword [esp + 0x18], 0
je 0x403dd3
push dword [esp + 0xc]
push str.The_old_temp_service_path_was_deleted:__ls.
push 0x434588
call fcn.0040b170
mov eax, dword [esp + 0x18]
add esp, 0xc
jmp 0x403de9
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403d6f
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x403d76
push str.The_old_temp_service_path_was_not_deleted.
push 0x434588
call fcn.0040b1d0
add esp, 8
mov eax, dword [esp + 0xc]
push eax
call fcn.0040d9b7
add esp, 4
push 4
push 0
lea eax, [esp + 0x4e]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esp + 0xc], 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 0x403e45
cmp dword [esp + 0xc], 0
je 0x403e86
lea eax, [esp + 0x46]
push eax
push str.Deleting_the_old_file_path_on_the_next_reboot:__ls.
push 0x434588
call fcn.0040b170
add esp, 0xc
jmp 0x403707
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403e22
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
cmp dword [esp + 0xc], 0
jne 0x403e29
lea eax, [esp + 0x46]
push eax
push str.Call_to_delete_the_old_file_path_failed:__ls.
push 0x434588
call fcn.0040b1d0
add esp, 0xc
jmp 0x403707
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40347b
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40347b