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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push str.Starting_update_process_as_the_service_in_session_0.
mov dword [ebp - 0xc], edx
mov ebx, ecx
call fcn.00401034
push eax
call fcn.004049ad
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00406960
xor eax, eax
mov dword [ebp - 0x68], esi
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x60], str.winsta0Default
stosd dword es:[edi], eax
add esp, 0x14
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
mov edx, edi
call fcn.0040183d
push 3
pop esi
mov edx, edi
mov dword [ebp - 4], eax
mov ecx, ebx
call fcn.00402cc3
push 2
test al, al
pop ecx
cmovne esi, ecx
cmp ebx, esi
jl 0x402e68
or dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x60], 0x424cd8
mov word [ebp - 0x38], ax
push str.MOZ_USING_SERVICE1
call fcn.0040b119
mov ebx, dword [ebp - 4]
pop ecx
push ebx
push str.Starting_service_with_cmdline:__ls
call fcn.00401034
push eax
call fcn.004049ad
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 ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp + 0xc]
mov ebx, esi
mov dword [ecx], eax
test eax, eax
je 0x403001
push str.Process_was_started..._waiting_on_result.
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00401034
push eax
call fcn.004049ad
pop ecx
pop ecx
push 0xdbba0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402ef3
inc esi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xc], esi
jmp 0x402f3c
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x402f24
push dword [ebp + 0xc]
push str.Process_finished_with_return_code__d.
call fcn.00401034
push eax
call fcn.004049ad
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0xc], ebx
sete bl
jmp 0x402f3c
push str.Process_finished_but_could_not_obtain_return_code.
call fcn.00401034
push eax
call fcn.004049e5
xor esi, esi
pop ecx
inc esi
pop ecx
mov dword [ebp - 8], esi
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov ecx, dword [edi + 4]
lea edx, [ebp + 0xc]
and dword [ebp + 0xc], 0
call fcn.00402afe
test eax, eax
je 0x402f9e
cmp dword [ebp + 0xc], 0
je 0x402f9e
call fcn.00401034
test ebx, ebx
je 0x402fbc
push str.update.status_is_still_applying_even_though_update_was_successful.
push eax
call fcn.004049ad
pop ecx
pop ecx
mov ecx, dword [edi + 4]
push 0x1d
pop edx
call fcn.00404e50
test eax, eax
jne 0x402f9c
push str.Could_not_write_update.status_still_applying_on_success_error.
call fcn.00401034
push eax
call fcn.004049e5
pop ecx
pop ecx
xor ebx, ebx
mov esi, dword [ebp - 4]
push str.MOZ_USING_SERVICE
call fcn.0040b119
push esi
call fcn.0040ad29
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.update.status_is_still_applying_and_update_was_not_successful.
push eax
call fcn.004049e5
cmp dword [ebp - 8], 0
pop ecx
pop ecx
push 0x1e
pop edx
je 0x402fd7
push 0x33
pop edx
jmp 0x402fe1
cmp dword [ebp - 0xc], 0
push 0x32
pop eax
cmovne edx, eax
mov ecx, dword [edi + 4]
call fcn.00404e50
test eax, eax
jne 0x402f9e
push str.Could_not_write_update.status_still_applying_on_failure_error.
call fcn.00401034
push eax
call fcn.004049e5
pop ecx
pop ecx
jmp 0x402f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 4]
push eax
push esi
push dword [edi]
push str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____d_
call fcn.00401034
push eax
call fcn.004049e5
add esp, 0x14
jmp 0x402fa1