Function at 0x40324a
Capabilities:
Create process on windows
Move file
Terminate process

Disassembly:
sub esp, 0x49c
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x494], eax
mov eax, dword [esp + 0x4a0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [esp + 0x4b4]
mov ebp, ecx
push str.Starting_update_process_as_the_service_in_session_0.
mov dword [esp + 0x18], eax
call fcn.00401000
push eax
call fcn.00404e43
push 0x40
lea eax, [esp + 0x48]
push 0
push eax
call fcn.0040bf90
and dword [esp + 0x3c], 0
lea edi, [esp + 0x40]
xor eax, eax
mov dword [esp + 0x4c], 0x44
stosd dword es:[edi], eax
add esp, 0x14
mov edx, ebx
mov dword [esp + 0x40], str.winsta0Default
mov ecx, ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00401e51
push 3
mov esi, eax
mov edx, ebx
pop edi
mov ecx, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
call fcn.0040312b
test al, al
je 0x4032e5
push 2
pop edi
mov dword [esp + 0x1c], edi
cmp ebp, edi
jl 0x4032fd
or dword [esp + 0x64], 1
xor eax, eax
mov dword [esp + 0x40], 0x41dda8
mov word [esp + 0x68], ax
mov edx, dword [ebx]
lea ecx, [esp + 0x80]
xor edi, edi
push str.updater.ini
mov dword [esp + 0x1c], edi
call fcn.004043b9
pop ecx
test eax, eax
je 0x40334f
mov edx, dword [ebx]
lea ecx, [esp + 0x290]
push str.updater.tmp
call fcn.004043b9
pop ecx
test eax, eax
je 0x40334f
push 1
lea eax, [esp + 0x294]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esp + 0x18], eax
push str.MOZ_USING_SERVICE1
call fcn.00405d1e
pop ecx
push esi
push str.Starting_service_with_cmdline:__ls
call fcn.00401000
push eax
call fcn.00404e43
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
push edi
push 0x4000000
push edi
push edi
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x14]
push str.MOZ_USING_SERVICE
mov dword [ecx], eax
call fcn.00405d1e
mov eax, dword [esp + 0x18]
pop ecx
cmp dword [eax], edi
je 0x4034d1
push str.Process_was_started..._waiting_on_result.
call fcn.00401000
push eax
call fcn.00404e43
pop ecx
pop ecx
push 0xdbba0
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4033de
push 1
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x40342b
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403419
push dword [esp + 0x14]
push str.Process_finished_with_return_code__d.
call fcn.00401000
push eax
call fcn.00404e43
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x14], eax
sete al
mov dword [esp + 0x14], eax
mov edi, eax
jmp 0x40342b
push str.Process_finished_but_could_not_obtain_return_code.
call fcn.00401000
push eax
call fcn.00404e6e
pop ecx
pop ecx
push dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x2c]
call esi
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x14]
and dword [esp + 0x14], 0
call fcn.00402f58
test eax, eax
je 0x4034ee
cmp dword [esp + 0x14], 0
je 0x4034ee
test edi, edi
je 0x40349c
push str.update.status_is_still_applying_even_know_update__was_successful.
call fcn.00401000
push eax
call fcn.00404e43
pop ecx
pop ecx
mov ecx, dword [ebx + 4]
push 0x1d
pop edx
call fcn.004049f1
test eax, eax
jne 0x403498
push str.Could_not_write_update.status_still_applying_on_success_error.
call fcn.00401000
push eax
call fcn.00404e6e
pop ecx
pop ecx
xor edi, edi
jmp 0x4034ee
push str.update.status_is_still_applying_and_update_was_not_successful.
call fcn.00401000
push eax
call fcn.00404e6e
pop ecx
pop ecx
mov ecx, dword [ebx + 4]
push 0x1e
pop edx
call fcn.004049f1
test eax, eax
jne 0x4034ee
push str.Could_not_write_update.status_still_applying_on_success_error.
call fcn.00401000
push eax
call fcn.00404e6e
pop ecx
pop ecx
jmp 0x4034ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [ebx]
push str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____d_
call fcn.00401000
push eax
call fcn.00404e6e
add esp, 0x14
cmp dword [esp + 0x18], 0
je 0x40355f
push 1
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x40355f
cmp ebp, dword [esp + 0x1c]
jle 0x40355f
mov esi, dword [ebx + 4]
mov edx, ebx
mov ecx, ebp
call fcn.004030a4
test al, al
jne 0x40355f
push str.Launching_post_update_process_as_the_service_in_session_0.
call fcn.00401000
push eax
call fcn.00404e43
mov ebx, dword [esp + 0x2c]
mov edx, esi
mov ecx, ebx
call fcn.0040443b
pop ecx
pop ecx
test eax, eax
jne 0x40355f
push esi
push ebx
push str.The_post_update_process_could_not_be_launched._installDir:__ls__updateInfoDir:__ls
call fcn.00401000
push eax
call fcn.00404e6e
add esp, 0x10
push dword [esp + 0x20]
call fcn.0040568d
pop ecx
mov ecx, dword [esp + 0x4a4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040502c
add esp, 0x49c
ret