Function at 0x40441d
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Move file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xe44]
sub esp, 0xec0
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp + 0xe40], eax
mov eax, dword [ebp + 0xe4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xe50]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004056aa
cmp dword [ebp - 0x14], 3
pop ecx
pop ecx
jge 0x40447c
push str.Usage:_updater_update_dir_apply_to_dir__wait_pid__callback_working_dir_callback_path_args...___n
call fcn.0040e9f4
add eax, 0x40
push eax
call fcn.0040e8e8
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4051ee
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push 0x104
push dword [eax + 8]
mov esi, 0x429170
push esi
mov dword [0x429168], ecx
call fcn.0040dcb3
xor eax, eax
push 0x5c
push esi
mov word [0x429376], ax
call fcn.0040d350
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
je 0x4044c1
cmp word [eax + 2], bx
jne 0x4044c1
xor ecx, ecx
mov word [eax], cx
push edi
push str.MOZ_NO_SERVICE_FALLBACK
call fcn.0040e858
test eax, eax
setne byte [ebp - 0xd]
mov dword [esp], 0x420d50
call fcn.0040e78c
pop ecx
call fcn.00401df7
mov byte [ebp + 3], al
call fcn.004061dc
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
test eax, eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push str.SoftwareClassesApplications
push 0x80000001
setne byte [ebp + 2]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 2
push 1
push ebx
push ebx
push str.SoftwareClassesApplicationsupdater.exe
push 0x80000001
call edi
test eax, eax
jne 0x40456d
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push ebx
push ebx
push ebx
push str.IsHostApp
push dword [ebp - 4]
call edi
push ebx
push ebx
push ebx
push ebx
push str.NoOpenWith
push dword [ebp - 4]
call edi
push ebx
push ebx
push ebx
push ebx
push str.NoStartPage
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [ebp - 0x14], 3
mov dword [ebp - 0x24], ebx
jle 0x4045b7
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call fcn.0040e8d2
mov edi, edx
mov dword [ebp - 0x24], eax
and eax, edi
pop ecx
cmp eax, 0xffffffff
jne 0x404599
mov byte [0x429789], 1
jmp 0x4045b7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
push str._replace
push eax
call fcn.0040d37e
pop ecx
pop ecx
test eax, eax
je 0x4045b7
mov byte [0x42978a], 1
push str.MOZ_OS_UPDATE
call fcn.0040e858
pop ecx
test eax, eax
je 0x4045d8
push 0x420c48
mov byte [0x42978c], 1
call fcn.0040e78c
pop ecx
cmp byte [0x42978a], bl
je 0x404607
lea eax, [ebp + 0x61c]
call fcn.00402045
test al, al
jne 0x4045f9
push str.Could_not_get_the_installation_directory_n
jmp 0x404895
push 1
push str.update.log
push str.last_update.log
jmp 0x40460e
push ebx
push ebx
push str.update.log
push dword [0x429168]
call fcn.004020d6
mov ecx, eax
call fcn.00406a32
mov ecx, str.applying
call fcn.00403227
test al, al
jne 0x404638
push str.failed_setting_status_to_applying
jmp 0x4048ce
cmp byte [0x429789], bl
je 0x404647
push str.Performing_a_staged_update
jmp 0x404654
cmp byte [0x42978a], bl
je 0x404661
push str.Performing_a_replace_request
call fcn.004020d6
push eax
call fcn.00406afb
pop ecx
pop ecx
cmp edi, ebx
jl 0x4046a0
jg 0x40466c
cmp dword [ebp - 0x24], ebx
jbe 0x4046a0
push dword [ebp - 0x24]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x4046a0
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
jne 0x404ffd
cmp byte [0x42978a], bl
je 0x4046cb
lea eax, [ebp + 0xa30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4046cb
lea eax, [ebp + 0xa30]
push eax
call fcn.0040e463
pop ecx
push str.MOZ_USING_SERVICE
call fcn.0040e858
test eax, eax
setne al
mov byte [0x42978b], al
mov dword [esp], 0x420b50
call fcn.0040e78c
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp + 0xc38], ax
mov dword [esp], 0x206
lea eax, [ebp + 0xc3a]
push ebx
push eax
mov dword [ebp - 0xc], 0x64
call fcn.0040b2f0
add esp, 0xc
cmp byte [0x42978b], bl
jne 0x404be2
cmp dword [ebp - 0x14], 5
mov al, byte [0x429789]
mov cl, byte [0x42978a]
jg 0x40473f
cmp al, bl
jne 0x404743
cmp cl, bl
je 0x404bf9
cmp al, bl
je 0x40474a
push 0x429170
jmp 0x40479b
cmp cl, bl
je 0x404795
lea eax, [ebp + 0xa30]
call fcn.00402045
test al, al
je 0x404ffd
lea eax, [ebp + 0xa30]
push 0x5c
push eax
call fcn.0040d350
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0xa30]
push eax
push str._smoz_update_in_progress.lock
mov esi, 0x104
lea edi, [ebp + 0x828]
call fcn.004018e7
add esp, 0x10
jmp 0x4047b2
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
push str._s.update_in_progress.lock
mov esi, 0x104
lea edi, [ebp + 0x828]
call fcn.004018e7
pop ecx
pop ecx
lea eax, [ebp + 0x828]
push ebx
push eax
call fcn.0040e276
pop ecx
pop ecx
test eax, eax
jne 0x4047fa
lea eax, [ebp + 0x828]
push eax
call fcn.0040dbdc
pop ecx
test eax, eax
je 0x4047fa
cmp byte [0x429789], bl
jne 0x4047e6
cmp byte [0x42978a], bl
je 0x4047f0
mov ecx, str.pending
call fcn.00403227
push str.Update_already_in_progress__Exiting
jmp 0x4048ce
push ebx
push 0x4000000
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push dword [0x429168]
mov esi, 0x104
push str._s_update_elevated.lock
lea edi, [ebp + 0xc38]
mov dword [ebp - 4], eax
call fcn.004018e7
pop ecx
pop ecx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40484b
push ebx
call fcn.00405f1d
pop ecx
cmp dword [ebp - 4], 0xffffffff
je 0x40486c
cmp byte [ebp + 3], bl
je 0x404bdd
cmp byte [ebp + 2], bl
je 0x404bdd
cmp byte [ebp - 0xd], bl
je 0x404bdd
lea eax, [ebp + 0xc38]
push ebx
push eax
call fcn.0040e276
pop ecx
pop ecx
test eax, eax
jne 0x4048a5
lea eax, [ebp + 0xc38]
push eax
call fcn.0040dbdc
pop ecx
test eax, eax
je 0x4048a5
push str.Unable_to_create_elevated_lock_file__Exiting_n
call fcn.0040e9f4
add eax, 0x40
push eax
call fcn.0040e8e8
jmp 0x4048d9
push ebx
push 0x4000000
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x4048e0
push str.Unable_to_create_elevated_lock_file__Exiting
call fcn.004020d6
push eax
call fcn.00406afb
pop ecx
pop ecx
jmp 0x404ffd
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 0x14]
dec eax
push eax
call fcn.00401bdd
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x404907
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404ffd
lea eax, [ebp + 0xa30]
call fcn.00402045
test al, al
je 0x404ffd
cmp byte [ebp + 3], bl
je 0x404a74
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
push dword [eax]
call fcn.00406211
pop ecx
pop ecx
test eax, eax
je 0x4049a5
cmp dword [ebp - 0x1c], ebx
je 0x4049a5
lea eax, [ebp - 0x28]
push eax
mov byte [ebp + 3], 1
call fcn.004062cc
pop ecx
test eax, eax
je 0x404961
cmp dword [ebp - 0x28], ebx
sete byte [ebp + 3]
cmp byte [ebp + 3], bl
je 0x404a74
lea eax, [ebp + 0x61c]
push eax
lea eax, [ebp + 0xa30]
push eax
call fcn.00405a0f
pop ecx
pop ecx
test eax, eax
je 0x4049c0
lea eax, [ebp - 0x20]
push eax
push 0x20119
push ebx
lea eax, [ebp + 0x61c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4049ad
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4049ca
mov byte [ebp + 3], bl
jmp 0x404a74
mov al, byte [ebp + 2]
mov byte [ebp + 3], al
cmp al, bl
jne 0x4049d3
mov dword [ebp - 0xc], 0x66
jmp 0x4049ca
mov byte [ebp + 3], bl
mov dword [ebp - 0xc], 0x65
cmp byte [ebp + 3], bl
je 0x404a74
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.004067c0
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp + 3], al
je 0x404a68
mov byte [ebp + 2], bl
cmp byte [0x429789], bl
jne 0x404a04
call fcn.004056ad
neg eax
sbb al, al
inc al
mov byte [ebp + 2], al
push 5
mov esi, str.MozillaMaintenance
push esi
call fcn.00406035
pop ecx
pop ecx
cmp eax, 1
je 0x404a4d
push ebx
push 0x40356a
lea ecx, [ebp - 0x40]
call fcn.00402102
test eax, eax
jne 0x404a39
cmp byte [ebp + 2], bl
je 0x404a39
push ebx
push 1
call fcn.0040574b
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
call fcn.00406035
pop ecx
pop ecx
cmp eax, 1
je 0x404a6f
mov dword [ebp - 0xc], 0x67
mov byte [ebp + 3], bl
jmp 0x404a6f
mov dword [ebp - 0xc], 0x68
cmp byte [ebp + 3], bl
jne 0x404aa0
cmp byte [0x429789], bl
je 0x404a9b
cmp dword [ebp - 4], 0xffffffff
je 0x404a8b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x429168]
call fcn.00405f65
jmp 0x404bc3
cmp byte [ebp + 3], bl
je 0x404af6
cmp byte [0x429789], bl
jne 0x404af1
mov byte [ebp + 2], bl
lea ebx, [ebp + 2]
call fcn.00401ecf
test al, al
je 0x404aef
cmp byte [ebp + 2], 0
je 0x404aef
push 0
push 0
push dword [0x429168]
lea eax, [ebp + 0xa30]
push eax
call fcn.004063d4
add esp, 0x10
test eax, eax
jne 0x404aef
push str.The_post_update_process_which_runs_as_the_user_for_service_update_could_not_be_launched.
call fcn.0040e9f4
add eax, 0x40
push eax
call fcn.0040e8e8
pop ecx
pop ecx
xor ebx, ebx
cmp byte [ebp + 3], bl
jne 0x404b72
cmp byte [ebp - 0xd], bl
jne 0x404b72
cmp dword [ebp - 4], 0xffffffff
jne 0x404b72
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040b2f0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0x540
mov dword [ebp - 0x74], ebx
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x70], str.runas
mov dword [ebp - 0x60], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
push edi
setne byte [ebp + 2]
call fcn.0040b0b8
pop ecx
cmp byte [ebp + 2], bl
je 0x404b6a
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404b72
push 9
call fcn.004032bd
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 5
jle 0x404b97
movzx eax, byte [0x42978b]
push eax
mov eax, dword [ebp - 8]
add ecx, 0xfffffffb
push ecx
push dword [eax + 0x10]
lea esi, [eax + 0x14]
call fcn.004031d6
add esp, 0xc
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp + 3], bl
jne 0x404bc9
cmp byte [ebp - 0xd], bl
jne 0x404bb6
cmp dword [ebp - 4], 0xffffffff
je 0x4051ad
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call fcn.004032bd
pop ecx
jmp 0x4051ad
cmp dword [ebp - 4], 0xffffffff
je 0x4051ad
push dword [ebp - 4]
call esi
jmp 0x4051ad
mov esi, 0x429170
cmp byte [0x429789], bl
je 0x404bf1
push esi
call fcn.0040220e
pop ecx
cmp byte [0x42978a], bl
jne 0x404c30
push esi
call fcn.0040e463
pop ecx
test eax, eax
je 0x404c30
push esi
call fcn.0040e192
pop ecx
test eax, eax
jne 0x404ffd
call fcn.0040e119
cmp dword [eax], 0x11
je 0x404ffd
push esi
call fcn.0040e463
pop ecx
test eax, eax
jne 0x404ffd
push dword [0x429168]
push str.SOURCE_DIRECTORY__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
push esi
push str.DESTINATION_DIRECTORY__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
cmp byte [0x42978a], bl
jne 0x404ce2
push esi
call fcn.0040b00d
lea eax, [eax + eax + 4]
push eax
call fcn.0040b5b2
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x404ffd
mov edi, eax
push esi
push edi
call fcn.0040d5c6
push esi
call fcn.0040b00d
push esi
lea edi, [edi + eax*2]
call fcn.0040b00d
add esp, 0x10
cmp word [eax*2 + 0x42916e], 0x2f
je 0x404cd5
push esi
call fcn.0040b00d
cmp word [eax*2 + 0x42916e], 0x5c
pop ecx
je 0x404cd5
push 0x420984
push edi
call fcn.0040d595
push 0x420984
call fcn.0040b00d
add esp, 0xc
lea edi, [edi + eax*2]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x18]
mov dword [0x42916c], eax
push 0x104
lea eax, [ebp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x404d66
push esi
push str.NS_main:_unable_to_find_apply_to_dir:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
call fcn.004020d6
mov ecx, eax
call fcn.00406ae6
push 7
call fcn.004032bd
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x404d2d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc38]
push ebx
push eax
call fcn.0040e276
pop ecx
pop ecx
test eax, eax
jne 0x404d55
lea eax, [ebp + 0xc38]
push eax
call fcn.0040dbdc
pop ecx
test eax, eax
jne 0x404ffd
mov ecx, dword [ebp - 0x14]
cmp ecx, 5
jle 0x404ffd
jmp 0x404fe0
or dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp - 0x14], 5
jle 0x40501a
mov esi, 0x208
push esi
lea eax, [ebp + 0xa30]
push ebx
push eax
call fcn.0040b2f0
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
push 0x40e
mov word [ebp + 0x20c], ax
lea eax, [ebp + 0x20e]
push ebx
push eax
call fcn.0040b2f0
add esp, 0x18
cmp byte [0x42978a], bl
je 0x404e6e
push ebx
push 0x429170
push dword [edi + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
mov edi, eax
mov eax, dword [ebp - 8]
push edi
push dword [eax + 0x14]
lea eax, [ebp + 0x20c]
push eax
mov dword [ebp - 0xc], edi
call fcn.0040dcb3
sub esi, dword [ebp - 0xc]
lea eax, [edi + edi]
lea edi, [ebp + eax + 0x20c]
lea eax, [eax + 0x429170]
push esi
push eax
push edi
mov dword [ebp - 0x20], eax
call fcn.0040dcb3
push dword [ebp - 0x20]
call fcn.0040b00d
add esp, 0x1c
lea edi, [edi + eax*2]
push 0x5c
pop ecx
mov word [edi], cx
or ecx, 0xffffffff
sub ecx, eax
xor eax, eax
add edi, 2
mov word [edi], ax
lea eax, [ebp + 0x61c]
add esi, ecx
call fcn.00402045
test al, al
je 0x404ffd
push ebx
lea eax, [ebp + 0x61c]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
cmp eax, dword [ebp - 0xc]
ja 0x404e51
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
push esi
lea eax, [ecx + eax*2]
push eax
push edi
call fcn.0040dcb3
lea eax, [ebp + 0x20c]
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp + 0xa30]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x404e94
push dword [ebp - 0xc]
push str.NS_main:_unable_to_find_callback_file:__S
jmp 0x404cfc
cmp byte [0x42978a], bl
jne 0x40501a
lea eax, [ebp + 4]
push eax
mov esi, 0x429378
call fcn.0040b00d
lea eax, [ebp + eax*2 + 0xa30]
cmp word [eax], 0x5c
pop ecx
jne 0x404ebf
add eax, 2
sub eax, esi
movzx ecx, word [esi + eax]
cmp ecx, 0x5c
jne 0x404ecd
push 0x2f
pop ecx
mov word [esi], cx
add esi, 2
cmp word [esi + eax], bx
jne 0x404ec1
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
mov esi, 0x104
push str._s.moz_callback
mov edi, 0x429580
call fcn.004018e7
push edi
call fcn.0040dbdc
mov eax, dword [ebp - 8]
add esp, 0xc
push ebx
push edi
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
inc esi
push ebx
push ebx
push 3
push ebx
push 6
push 0x40010000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x40501f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push esi
push str.NS_main:_callback_app_file_open_attempt__d_failed._File:__S._Last_error:__d
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jle 0x404f12
cmp dword [ebp - 0x18], 0x20
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
je 0x405005
push str.NS_main:_callback_app_file_in_use__failed_to_exclusively_open_executable_file:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
call fcn.004020d6
mov ecx, eax
call fcn.00406ae6
cmp dword [ebp - 0x18], 5
jne 0x404f9b
push 0x23
jmp 0x404f9d
push 0x25
call fcn.004032bd
pop ecx
push edi
call fcn.0040dbdc
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x404fb9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc38]
push ebx
push eax
call fcn.0040e276
pop ecx
pop ecx
test eax, eax
jne 0x404fdd
lea eax, [ebp + 0xc38]
push eax
call fcn.0040dbdc
pop ecx
test eax, eax
jne 0x404ffd
mov ecx, dword [ebp - 0x14]
movzx eax, byte [0x42978b]
push eax
mov eax, dword [ebp - 8]
add ecx, 0xfffffffb
push ecx
push dword [eax + 0x10]
lea esi, [eax + 0x14]
call fcn.004031d6
add esp, 0xc
xor eax, eax
inc eax
jmp 0x4051eb
push str.NS_main:_callback_app_file_in_use__continuing_without_exclusive_access_for_executable_file:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
jmp 0x40501f
mov edi, 0x429580
mov esi, str.tobedeleted
cmp byte [0x429789], bl
jne 0x405048
cmp byte [0x42978a], bl
jne 0x405048
push ebx
push esi
call fcn.0040e276
pop ecx
pop ecx
test eax, eax
je 0x405048
push esi
call fcn.0040e192
pop ecx
push ebx
push 0x4041a9
lea ecx, [ebp - 0x34]
call fcn.00402102
test eax, eax
jne 0x405074
cmp byte [0x429789], bl
jne 0x405074
cmp byte [0x42978a], bl
jne 0x405074
push 1
push ebx
call fcn.0040574b
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 5
jle 0x4050ac
cmp byte [0x42978a], bl
jne 0x4050ac
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4050a5
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040dbdc
pop ecx
cmp byte [0x429789], bl
jne 0x40510b
cmp byte [0x42978a], bl
jne 0x40510b
push esi
call fcn.0040e162
pop ecx
test eax, eax
je 0x40510b
call fcn.0040e119
push dword [eax]
push esi
push str.NS_main:_unable_to_remove_directory:__S__err:__d
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0x10
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
test eax, eax
je 0x4050f8
push str.NS_main:_directory_will_be_removed_on_OS_reboot:__S
jmp 0x4050fd
push str.NS_main:_failed_to_schedule_OS_reboot_removal_of_directory:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
call fcn.004020d6
mov ecx, eax
call fcn.00406ae6
cmp dword [ebp - 0x14], 5
jle 0x4051e0
cmp byte [0x429788], bl
je 0x40517a
cmp byte [0x42978b], bl
jne 0x40517a
lea eax, [ebp + 0xa30]
call fcn.00402045
test al, al
je 0x40517a
push ebx
push ebx
push dword [0x429168]
lea eax, [ebp + 0xa30]
push eax
call fcn.004063d4
add esp, 0x10
test eax, eax
jne 0x40516d
push str.NS_main:_The_post_update_process_could_not_be_launched.
call fcn.004020d6
push eax
call fcn.00406afb
pop ecx
pop ecx
lea eax, [ebp + 0xa30]
push eax
call fcn.00406822
pop ecx
cmp dword [ebp - 4], 0xffffffff
je 0x405189
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc38]
push ebx
push eax
call fcn.0040e276
pop ecx
pop ecx
test eax, eax
jne 0x4051b1
lea eax, [ebp + 0xc38]
push eax
call fcn.0040dbdc
pop ecx
test eax, eax
je 0x4051b1
xor eax, eax
jmp 0x4051eb
push str.MOZ_PROCESS_UPDATES
call fcn.0040e858
pop ecx
test eax, eax
jne 0x4051e0
movzx eax, byte [0x42978b]
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add ecx, 0xfffffffb
push ecx
push dword [eax + 0x10]
lea esi, [eax + 0x14]
call fcn.004031d6
add esp, 0xc
xor eax, eax
cmp byte [0x429788], bl
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe40]
xor ecx, ebp
call fcn.0040b2d4
add ebp, 0xe44
leave
ret