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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push str.Starting_update_process_as_the_service_in_session_0.
mov dword [ebp - 0xc], ebx
call fcn.00401034
push eax
call fcn.00404982
push 0x40
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00406850
add esp, 0x14
mov dword [ebp - 0x68], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x60], str.winsta0Default
mov edx, ebx
mov ecx, edi
movups xmmword [ebp - 0x1c], xmm0
call fcn.0040181b
push 3
pop esi
mov edx, ebx
mov dword [ebp - 8], eax
mov ecx, edi
call fcn.00402c96
push 2
test al, al
pop ecx
cmovne esi, ecx
cmp edi, esi
jl 0x402e33
or dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x60], 0x423c48
mov word [ebp - 0x38], ax
push str.MOZ_USING_SERVICE1
call fcn.0040a3c4
mov edi, dword [ebp - 8]
pop ecx
push edi
push str.Starting_service_with_cmdline:__ls
call fcn.00401034
push eax
call fcn.00404982
add esp, 0xc
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp + 0xc]
mov ebx, esi
mov dword [ecx], eax
test eax, eax
je 0x402fc0
push str.Process_was_started..._waiting_on_result.
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00401034
push eax
call fcn.00404982
pop ecx
pop ecx
push 0xdbba0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402ebe
inc esi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], esi
jmp 0x402f07
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x402eef
push dword [ebp + 0xc]
push str.Process_finished_with_return_code__d.
call fcn.00401034
push eax
call fcn.00404982
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0xc], ebx
sete bl
jmp 0x402f07
push str.Process_finished_but_could_not_obtain_return_code.
call fcn.00401034
push eax
call fcn.004049ba
xor esi, esi
pop ecx
inc esi
pop ecx
mov dword [ebp - 4], esi
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov esi, dword [ebp - 0xc]
lea edx, [ebp + 0xc]
and dword [ebp + 0xc], 0
mov ecx, dword [esi + 4]
call fcn.00402acc
test eax, eax
je 0x402fe0
cmp dword [ebp + 0xc], 0
je 0x402fe0
test ebx, ebx
je 0x402f76
push str.update.status_is_still_applying_even_though_update_was_successful.
call fcn.00401034
push eax
call fcn.00404982
pop ecx
pop ecx
mov ecx, dword [esi + 4]
push 0x1d
pop edx
call fcn.00404e25
test eax, eax
jne 0x402f72
push str.Could_not_write_update.status_still_applying_on_success_error.
call fcn.00401034
push eax
call fcn.004049ba
pop ecx
pop ecx
xor ebx, ebx
jmp 0x402fe0
push str.update.status_is_still_applying_and_update_was_not_successful.
call fcn.00401034
push eax
call fcn.004049ba
cmp dword [ebp - 4], 0
pop ecx
pop ecx
push 0x1e
pop edx
je 0x402f96
push 0x33
pop edx
jmp 0x402fa0
cmp dword [ebp - 8], 0
push 0x32
pop eax
cmovne edx, eax
mov ecx, dword [esi + 4]
call fcn.00404e25
test eax, eax
jne 0x402fe0
push str.Could_not_write_update.status_still_applying_on_failure_error.
call fcn.00401034
push eax
call fcn.004049ba
pop ecx
pop ecx
jmp 0x402fe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xc]
push eax
push edi
push dword [esi]
push str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0x14
push str.MOZ_USING_SERVICE
call fcn.0040a3c4
push edi
call fcn.00409fe3
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret