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

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x488
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0x404], eax
mov eax, dword [ebp + 0x410]
push ebx
mov ebx, dword [ebp + 0x41c]
push esi
mov esi, dword [ebp + 0x414]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x418]
push edi
push str.Starting_update_process_as_the_service_in_session_0.
mov dword [ebp - 0x2c], eax
call fcn.00401000
push eax
call fcn.00404d99
push 0x40
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00405140
and dword [ebp - 0x3c], 0
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x78], str.winsta0Default
stosd dword es:[edi], eax
call fcn.00401e0e
add esp, 0x1c
cmp dword [ebp - 0x24], 2
mov dword [ebp - 0x20], eax
jl 0x403390
or dword [ebp - 0x54], 1
xor eax, eax
mov dword [ebp - 0x78], 0x414d18
mov word [ebp - 0x50], ax
push str.updater.ini
push dword [esi]
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x28], edi
call fcn.004046e0
add esp, 0xc
test eax, eax
je 0x4033dc
push str.updater.tmp
push dword [esi]
lea eax, [ebp + 0x1f8]
push eax
call fcn.004046e0
add esp, 0xc
test eax, eax
je 0x4033dc
push 1
lea eax, [ebp + 0x1f8]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x28], eax
push str.MOZ_USING_SERVICE1
call fcn.0040730f
pop ecx
push dword [ebp - 0x20]
push str.Starting_service_with_cmdline:__ls
call fcn.00401000
push eax
call fcn.00404d99
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x4000000
push edi
push edi
push edi
push dword [ebp - 0x20]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push str.MOZ_USING_SERVICE
mov dword [ebx], eax
call fcn.0040730f
pop ecx
mov dword [ebp - 0x1c], edi
cmp dword [ebx], edi
je 0x40354f
push str.Process_was_started..._waiting_on_result.
call fcn.00401000
push eax
call fcn.00404d99
pop ecx
pop ecx
push 0xdbba0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403466
push 1
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4034ac
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40349a
push dword [ebp - 0x18]
push str.Process_finished_with_return_code__d.
call fcn.00401000
push eax
call fcn.00404d99
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x18], edi
sete al
mov dword [ebp - 0x1c], eax
jmp 0x4034ac
push str.Process_finished_but_could_not_obtain_return_code.
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
push dword [ebp - 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x38]
call ebx
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
call fcn.00403199
pop ecx
test eax, eax
je 0x40356e
cmp dword [ebp - 0x18], edi
je 0x40356e
cmp dword [ebp - 0x1c], edi
je 0x40351a
push str.update.status_is_still_applying_even_know_update__was_successful.
call fcn.00401000
push eax
call fcn.00404d99
push 0x1d
push dword [esi + 4]
call fcn.004042ee
add esp, 0x10
test eax, eax
jne 0x403515
push str.Could_not_write_update.status_still_applying_on_success_error.
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
mov dword [ebp - 0x1c], edi
jmp 0x40356e
push str.update.status_is_still_applying_and_update_was_not_successful.
call fcn.00401000
push eax
call fcn.00404dc4
push 0x1e
push dword [esi + 4]
call fcn.004042ee
add esp, 0x10
test eax, eax
jne 0x40356e
push str.Could_not_write_update.status_still_applying_on_success_error.
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
jmp 0x40356e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push dword [esi]
push str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0x14
cmp dword [ebp - 0x28], edi
je 0x4035dd
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x1c], edi
je 0x4035dd
cmp dword [ebp - 0x24], 2
jle 0x4035dd
push dword [ebp - 0x24]
mov ebx, dword [esi + 4]
mov eax, esi
call fcn.00402f89
pop ecx
test al, al
jne 0x4035dd
push str.Launching_post_update_process_as_the_service_in_session_0.
call fcn.00401000
push eax
call fcn.00404d99
push edi
push 1
push ebx
push dword [ebp - 0x2c]
call fcn.00404743
add esp, 0x18
test eax, eax
jne 0x4035dd
push ebx
push dword [ebp - 0x2c]
push str.The_post_update_process_could_not_be_launched._installDir:__ls__updateInfoDir:__ls
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0x10
push dword [ebp - 0x20]
call fcn.0040577c
mov eax, dword [ebp - 0x1c]
pop ecx
mov ecx, dword [ebp + 0x404]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051ba
add ebp, 0x408
leave
ret