Function at 0x402cac
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
push str.Starting_update_process_as_the_service_in_session_0.
mov ebp, edx
mov ebx, ecx
call fcn.0040101c
push eax
call fcn.00404baa
push 0x40
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0040bc00
and dword [esp + 0x2c], 0
lea edi, [esp + 0x30]
xor eax, eax
mov dword [esp + 0x3c], 0x44
stosd dword es:[edi], eax
add esp, 0x14
mov edx, ebp
mov dword [esp + 0x30], str.winsta0Default
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004017d0
push 3
pop esi
mov edx, ebp
mov ecx, ebx
mov edi, eax
call fcn.00402b8d
test al, al
je 0x402d14
push 2
pop esi
cmp ebx, esi
jl 0x402d2c
or dword [esp + 0x54], 1
xor eax, eax
mov dword [esp + 0x30], 0x41dad8
mov word [esp + 0x58], ax
push str.MOZ_USING_SERVICE1
call fcn.00405a7e
pop ecx
push edi
push str.Starting_service_with_cmdline:__ls
call fcn.0040101c
push eax
call fcn.00404baa
add esp, 0xc
lea eax, [esp + 0x18]
xor esi, esi
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x7c]
mov ebx, esi
mov dword [ecx], eax
test eax, eax
je 0x402ec6
push str.Process_was_started..._waiting_on_result.
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.0040101c
push eax
call fcn.00404baa
pop ecx
pop ecx
push 0xdbba0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402dbd
inc esi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x14], esi
jmp 0x402e0b
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x402df2
push dword [esp + 0x7c]
push str.Process_finished_with_return_code__d.
call fcn.0040101c
push eax
call fcn.00404baa
xor ebx, ebx
add esp, 0xc
cmp dword [esp + 0x7c], ebx
sete bl
jmp 0x402e0b
push str.Process_finished_but_could_not_obtain_return_code.
call fcn.0040101c
push eax
call fcn.00404bd5
xor esi, esi
pop ecx
inc esi
pop ecx
mov dword [esp + 0x10], esi
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x7c]
and dword [esp + 0x7c], 0
call fcn.004029ba
test eax, eax
je 0x402ee4
cmp dword [esp + 0x7c], 0
je 0x402ee4
test ebx, ebx
je 0x402e7c
push str.update.status_is_still_applying_even_though_update_was_successful.
call fcn.0040101c
push eax
call fcn.00404baa
pop ecx
pop ecx
mov ecx, dword [ebp + 4]
push 0x1d
pop edx
call fcn.004046e1
test eax, eax
jne 0x402e78
push str.Could_not_write_update.status_still_applying_on_success_error.
call fcn.0040101c
push eax
call fcn.00404bd5
pop ecx
pop ecx
xor ebx, ebx
jmp 0x402ee4
push str.update.status_is_still_applying_and_update_was_not_successful.
call fcn.0040101c
push eax
call fcn.00404bd5
cmp dword [esp + 0x18], 0
pop ecx
pop ecx
push 0x1e
pop edx
je 0x402e9c
push 0x33
jmp 0x402ea5
cmp dword [esp + 0x14], 0
je 0x402ea6
push 0x32
pop edx
mov ecx, dword [ebp + 4]
call fcn.004046e1
test eax, eax
jne 0x402ee4
push str.Could_not_write_update.status_still_applying_on_failure_error.
call fcn.0040101c
push eax
call fcn.00404bd5
pop ecx
pop ecx
jmp 0x402ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [ebp]
push str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0x14
push str.MOZ_USING_SERVICE
call fcn.00405a7e
push edi
call fcn.004053f2
pop ecx
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x64
ret