Function at 0x405870
Capabilities:
Copy file
Create directory
Create process on windows
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10ec
call fcn.0041f760
mov esi, dword [ebp + 8]
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp esi, 2
jg 0x4058bd
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40614c
push str.Not_enough_command_line_arguments_to_execute_a_service_command
jmp 0x405a48
mov edi, dword [ebp + 0xc]
lea ebx, [ebp - 0x652]
push 0x20a
push 0
push ebx
call fcn.0040cc70
add esp, 0xc
push ebx
call fcn.004284d0
add esp, 4
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x435a4c]
mov edx, dword [edx + 4]
test eax, eax
je 0x40591f
cmp ecx, edx
jg 0x4061d2
push ebx
push dword [edi + 8]
push str.Executing_service_command__ls__ID:__ls
push 0x435840
call fcn.00408430
add esp, 0x10
jmp 0x40593c
cmp ecx, edx
jg 0x406258
push dword [edi + 8]
push str.Executing_service_command__ls
push 0x435840
call fcn.00408430
add esp, 0xc
push str.software_update
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4059d5
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406215
push dword [edi + 8]
push str.Service_command_not_recognized:__ls.
push 0x435840
call fcn.00408520
add esp, 0xc
xor esi, esi
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40618f
test esi, esi
mov eax, str.Failure
mov ecx, str.Success
cmove ecx, eax
push ecx
push dword [edi + 4]
push str.service_command__ls_complete_with_result:__ls.
push 0x435840
call fcn.00408430
add esp, 0x10
jmp 0x405a57
cmp esi, 5
jb 0x405a22
push dword [edi + 0x10]
call fcn.00408850
add esp, 4
test al, al
je 0x405a22
mov ebx, dword [edi + 0x10]
push ebx
call fcn.00415f29
add esp, 4
cmp eax, 9
ja 0x405a6e
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40654d
push str.The_patch_directory_path_length_is_not_valid_for_this_application.
jmp 0x405a48
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40629b
push str.The_patch_directory_path_is_not_valid_for_this_application.
push 0x435840
call fcn.00408520
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, esi
add esp, 0x10ec
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebx + eax*2]
add eax, 0xffffffec
push 0xa
push str.updates0
push eax
call fcn.00414058
add esp, 0xc
test eax, eax
je 0x405ab0
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406590
push str.The_patch_directory_path_subdirectory_is_not_valid_for_this_application.
jmp 0x405a48
push dword [edi + 0x10]
call fcn.00407b30
add esp, 4
push dword [edi + 0x10]
call fcn.00407a30
add esp, 4
test eax, eax
je 0x405ba2
cmp esi, 5
je 0x405b20
push dword [edi + 0x14]
call fcn.00408850
add esp, 4
test al, al
je 0x405b20
push dword [edi + 0x14]
call fcn.004085a0
add esp, 4
test al, al
je 0x405b20
lea eax, [esi - 3]
mov dword [ebp - 0x10e4], eax
cmp eax, 4
jne 0x405bcd
push 0x42f34c
push dword [edi + 0x18]
call fcn.00415ec7
add esp, 8
test eax, eax
jne 0x405bd3
jmp 0x405beb
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406623
push str.The_install_directory_path_is_not_valid_for_this_application.
push 0x435840
call fcn.00408520
add esp, 8
push 0x37
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
xor esi, esi
test eax, eax
jne 0x405a57
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4067a2
push str.Could_not_write_update.status_for_previous_failure.
push 0x435840
call fcn.00408520
add esp, 8
jmp 0x405a57
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40675f
push str.Unable_to_write_to_secure_ID_file.
jmp 0x405a48
jb 0x405dbb
push str._replace
push dword [edi + 0x18]
call fcn.0040cf1c
add esp, 8
test eax, eax
je 0x405d27
lea ebx, [edi + 0xc]
lea eax, [ebp - 0x85c]
push 0x20a
push 0
push eax
call fcn.0040cc70
add esp, 0xc
mov ecx, dword [ebp - 0x10e4]
mov dword [ebp - 0x10ec], ebx
mov edx, ebx
lea eax, [ebp - 0x85c]
push eax
call fcn.00404d50
add esp, 4
test eax, eax
je 0x405ced
call fcn.004082e0
test eax, eax
jne 0x405e41
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x85c]
push eax
call fcn.004097d0
add esp, 8
test eax, eax
je 0x405df5
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406ebf
lea ebx, [ebp - 0x21c]
push ebx
push str.Checking_for_Maintenance_Service_registry._key:__ls
push 0x435840
call fcn.00408430
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x448]
mov dword [ecx], eax
push ecx
push 0x20119
push eax
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405e35
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406f45
push str.The_maintenance_service_registry_key_does_not_exist.
push 0x435840
call fcn.00408520
add esp, 8
push 0x39
jmp 0x405df7
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406e7c
push str.Could_not_get_the_installation_directory
push 0x435840
call fcn.00408520
add esp, 8
push 0x21
jmp 0x405df7
mov ebx, dword [edi + 0x18]
movzx eax, word [ebx]
test ax, ax
je 0x405beb
add ebx, 2
movzx eax, ax
push eax
call fcn.004158ae
add esp, 4
test eax, eax
jne 0x405d2a
cmp esi, 7
jl 0x405dbb
push dword [edi + 0x18]
call fcn.00408850
add esp, 4
test al, al
je 0x405dbb
push 0x104
push dword [edi + 0x14]
push dword [edi + 0x18]
call fcn.00414058
add esp, 0xc
test eax, eax
je 0x405beb
cmp esi, 7
jne 0x405f37
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4070bf
push str.Installation_directory_and_working_directory_must_be_the_same_for_non_staged_updates._Exiting.
push 0x435840
call fcn.00408520
add esp, 8
push 0x36
jmp 0x405b55
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406e39
push str.The_working_directory_path_is_not_valid_for_this_application.
push 0x435840
call fcn.00408520
add esp, 8
push 0x38
jmp 0x405b55
push 0x35
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
test eax, eax
jne 0x405a55
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406f02
push str.Could_not_write_update.status_for_previous_failure.
jmp 0x405a48
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [ebp - 0xa66]
push 0x20a
push 0
push ebx
call fcn.0040cc70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x85c]
push eax
push ebx
call fcn.004163a2
add esp, 0xc
push str.updater.exe
push ebx
call fcn.00428490
add esp, 8
test eax, eax
jne 0x405eb1
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407039
push str.Install_directory_updater_could_not_be_determined.
push 0x435840
call fcn.00408520
add esp, 8
lea ecx, [ebp - 0xa66]
lea edx, [ebp - 0x85c]
push dword [edi + 0x10]
call fcn.00404e50
add esp, 4
mov byte [ebp - 0x10f4], al
lea eax, [ebp - 0xc70]
push 0x20a
push 0
mov ebx, eax
push eax
call fcn.0040cc70
add esp, 0xc
cmp byte [ebp - 0x10f4], 0
je 0x40601b
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x405fe0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x406117
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov esi, str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x405ffa
push 0x42f34c
push dword [edi + 0x1c]
call fcn.00415ec7
add esp, 8
test eax, eax
je 0x405f63
push str._replace
push dword [edi + 0x1c]
call fcn.0040cf1c
add esp, 8
test eax, eax
je 0x405d81
mov eax, dword [edi + 0x18]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea ebx, [ebp - 0x21c]
mov dword [esp], ebx
call fcn.00401d40
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4060d6
push 0x104
push dword [edi + 0x14]
push ebx
call fcn.00414058
add esp, 0xc
test eax, eax
je 0x405beb
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407102
push str.The_apply_to_directory_must_be_the_same_as_or_a_child_of_the_installation_directory__Exiting.
push 0x435840
call fcn.00408520
add esp, 8
push 0x34
jmp 0x405df7
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov esi, str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____lu_
cmp eax, dword [ecx + 4]
jg 0x4065e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x435840
call fcn.00408520
add esp, 0xc
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_copy_path_to_secure_location.____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
push 0x31
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
xor esi, esi
test eax, eax
jne 0x40609b
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40707c
push str.Could_not_write_update.status_could_not_copy_updater_error
push 0x435840
call fcn.00408520
add esp, 8
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406fb3
push dword [edi + 8]
push str.Service_command__ls_complete.
push 0x435840
call fcn.00408430
add esp, 0xc
jmp 0x40598a
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407145
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_remove_file_spec_when_attempting_to_verify_the_working_directory_path.____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
push 0x47
jmp 0x405df7
push 0x42f0d6
push ebx
call fcn.00428490
add esp, 8
test eax, eax
jne 0x4062de
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov esi, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x405ffa
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4058b3
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4058b3
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4059ab
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4059ab
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405907
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405907
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405973
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405973
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405927
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405927
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405a43
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405a43
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.updater.exe
lea eax, [ebp - 0xc70]
push eax
call fcn.00428490
add esp, 8
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x435a4c]
mov edx, dword [edx + 4]
test eax, eax
je 0x4065d3
cmp ecx, edx
jg 0x407188
push ebx
lea eax, [ebp - 0xa66]
push eax
mov eax, dword [ebp - 0x10ec]
push dword [eax]
push str.Passed_in_path:__ls__ignored___Install_dir_has:__ls__Using_this_path_for_updating:__ls.
push 0x435840
call fcn.00408430
add esp, 0x14
lea ecx, [ebp - 0xc70]
call fcn.004056e0
push 0
lea eax, [ebp - 0xc70]
push eax
lea eax, [ebp - 0xa66]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40601b
mov eax, dword [ebp - 0x10ec]
mov dword [eax], ebx
mov ecx, 0x20a
xor edx, edx
lea eax, [ebp - 0xe7a]
push ecx
push edx
push eax
call fcn.0040cc70
add esp, 0xc
lea eax, [ebp - 0x1084]
mov ecx, 0x20a
push ecx
xor ecx, ecx
push ecx
push eax
call fcn.0040cc70
add esp, 0xc
push str.updater.ini
push ebx
lea eax, [ebp - 0x1084]
push eax
call fcn.004077d0
add esp, 0xc
test eax, eax
je 0x406448
push str.updater.ini
lea eax, [ebp - 0xa66]
push eax
lea eax, [ebp - 0xe7a]
push eax
call fcn.004077d0
add esp, 0xc
test eax, eax
je 0x406448
push 0
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0xe7a]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406448
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4073a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0xe7a]
push eax
push str.Could_not_copy_updater.ini_from:__ls_to__ls.____lu_
push 0x435840
call fcn.00408520
add esp, 0x14
lea ebx, [ebp - 0x448]
push 0x20a
push 0
push ebx
call fcn.0040cc70
add esp, 0xc
mov ecx, dword [ebp - 0x10e4]
mov edx, dword [ebp - 0x10ec]
push ebx
call fcn.00404d50
add esp, 4
test eax, eax
je 0x406666
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x448]
push dword [edi + 0x10]
call fcn.00404e50
add esp, 4
mov ecx, dword [0x435a4c]
mov edx, dword [0x434c24]
mov ebx, dword fs:[0x2c]
mov edx, dword [ebx + edx*4]
mov edx, dword [edx + 4]
test al, al
je 0x4066e8
cmp ecx, edx
jg 0x40720e
push str.Starting_update_process_as_the_service_in_session_0.
push 0x435840
call fcn.00408430
add esp, 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x10c8], xmm0
movups xmmword [ebp - 0x10b8], xmm0
movups xmmword [ebp - 0x10a8], xmm0
movups xmmword [ebp - 0x1098], xmm0
movups xmmword [ebp - 0x10dc], xmm0
mov dword [ebp - 0x10cc], 0x44
mov dword [ebp - 0x10c4], str.winsta0Default
xor eax, eax
lea ecx, [ebp - 0x10e0]
push eax
push eax
push dword [ebp - 0x10ec]
mov ebx, dword [ebp - 0x10e4]
push ebx
push ecx
call fcn.00401940
add esp, 0x14
cmp ebx, 4
jne 0x4067e5
push 0x42f34c
push dword [edi + 0x18]
call fcn.00415ec7
add esp, 8
test eax, eax
jne 0x4067ea
jmp 0x40681c
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405a1b
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405a1b
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405aa9
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405aa9
mov esi, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
cmp ecx, edx
jle 0x406006
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406006
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406006
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405b41
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405b41
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4071cb
push str.Could_not_get_the_installation_directory
push 0x435840
call fcn.00408520
add esp, 8
push 0x21
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
xor esi, esi
test eax, eax
jne 0x406e29
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4073e3
push str.Could_not_write_update.status_for_GetInstallationDir_failure.
push 0x435840
call fcn.00408520
add esp, 8
jmp 0x406e29
cmp ecx, edx
jg 0x407251
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_start_process_due_to_certificate_check_error_on_updater.exe._Updating_update.status.____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
push 0x1a
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
xor esi, esi
test eax, eax
jne 0x406e29
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407426
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_write_pending_state_to_update.status.____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
jmp 0x406e29
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405bc3
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405bc3
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405b8b
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405b8b
cmp esi, 7
jl 0x40681c
push str._replace
push dword [edi + 0x18]
call fcn.0040cf1c
add esp, 8
test eax, eax
jne 0x40681c
mov ebx, dword [edi + 0x18]
movzx eax, word [ebx]
test ax, ax
je 0x40681c
add ebx, 2
movzx eax, ax
push eax
call fcn.004158ae
add esp, 4
test eax, eax
jne 0x406801
mov dword [ebp - 0x10c4], 0x42f36e
or byte [ebp - 0x10a0], 1
mov word [ebp - 0x109c], 0
push str.MOZ_USING_SERVICE1
call fcn.00413633
add esp, 4
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407294
push dword [ebp - 0x10e0]
push str.Starting_service_with_cmdline:__ls
push 0x435840
call fcn.00408430
add esp, 0xc
mov eax, dword [ebp - 0x10e0]
mov ecx, dword [ebp - 0x10ec]
mov ecx, dword [ecx]
sub esp, 0x28
lea edx, [ebp - 0x10dc]
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x10cc]
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
movaps xmm0, xmmword [0x42c790]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x10f4], eax
test eax, eax
je 0x406943
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4072d7
push str.Process_was_started..._waiting_on_result.
push 0x435840
call fcn.00408430
add esp, 8
push 0xdbba0
push dword [ebp - 0x10dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10f8], eax
cmp eax, 0x102
jne 0x40699c
push 1
push dword [ebp - 0x10dc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x10e4], 0
mov byte [ebp - 0x10e5], 1
jmp 0x406a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407469
push ebx
push dword [ebp - 0x10e0]
mov eax, dword [ebp - 0x10ec]
push dword [eax]
push str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____lu_
push 0x435840
call fcn.00408520
add esp, 0x14
mov dword [ebp - 0x10e4], 0
jmp 0x406ca0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x10dc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x435a4c]
mov edx, dword [edx + 4]
test eax, eax
setne byte [ebp - 0x10e5]
je 0x406a0a
cmp ecx, edx
jg 0x407575
push dword [ebp - 0x21c]
push str.Process_finished_with_return_code__lu.
push 0x435840
call fcn.00408430
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x21c], 0
sete al
mov dword [ebp - 0x10e4], eax
jmp 0x406a2e
cmp ecx, edx
jg 0x4075fb
push str.Process_finished_but_could_not_obtain_return_code.
push 0x435840
call fcn.00408520
add esp, 8
mov dword [ebp - 0x10e4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10dc]
call ebx
push dword [ebp - 0x10d8]
call ebx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10f0], eax
lea ebx, [ebp - 0x21c]
push 0x20a
push 0
push ebx
call fcn.0040cc70
add esp, 0xc
push ebx
push str..status
push dword [ebp - 0x10f0]
call fcn.004079b0
add esp, 0xc
test eax, eax
je 0x406b06
sub esp, 0x1c
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
movaps xmm0, xmmword [0x42c7a0]
movups xmmword [esp + 4], xmm0
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10f0], eax
cmp eax, 0xffffffff
je 0x406b3e
xorps xmm0, xmm0
lea eax, [ebp - 0x23c]
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
lea ecx, [ebp - 0x1088]
push 0
push ecx
push 0x20
push eax
push dword [ebp - 0x10f0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406b66
mov eax, 0x6c707061
xor eax, dword [ebp - 0x23c]
mov ecx, 0x676e6979
xor ecx, dword [ebp - 0x238]
or ecx, eax
sete bl
jmp 0x406b9b
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407532
push str.Could_not_get_path_for_the_secure_update_status_file
push 0x435840
call fcn.00408520
add esp, 8
jmp 0x406ca0
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4075b8
push str.Could_not_open_update.status_file
jmp 0x406b8c
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407681
push str.Could_not_read_from_update.status_file
push 0x435840
call fcn.00408520
add esp, 8
xor ebx, ebx
mov eax, dword [ebp - 0x10f0]
inc eax
cmp eax, 2
jb 0x406bb3
push dword [ebp - 0x10f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x406ca0
mov eax, dword [0x434c24]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x435a4c]
mov ecx, dword [ecx + 4]
cmp dword [ebp - 0x10e4], 0
je 0x406c42
cmp eax, ecx
jg 0x40763e
push str.update.status_is_still_applying_even_though_update_was_successful.
push 0x435840
call fcn.00408430
add esp, 8
push 0x1d
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
mov dword [ebp - 0x10e4], 0
test eax, eax
jne 0x406ca0
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40774a
push str.Could_not_write_update.status_still_applying_on_success_error.
jmp 0x406b2c
cmp eax, ecx
jg 0x4076c4
push str.update.status_is_still_applying_and_update_was_not_successful.
push 0x435840
call fcn.00408520
add esp, 8
cmp dword [ebp - 0x10f8], 0x102
mov eax, 0x32
mov ecx, 0x1e
cmove ecx, eax
cmp byte [ebp - 0x10e5], 0
mov eax, 0x33
cmovne eax, ecx
push eax
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
mov dword [ebp - 0x10e4], 0
test eax, eax
je 0x406f88
push str.MOZ_USING_SERVICE
call fcn.00413633
add esp, 4
mov eax, dword [ebp - 0x10e0]
mov dword [ebp - 0x10e0], 0
test eax, eax
je 0x406cca
push eax
call fcn.0040a31c
add esp, 4
mov eax, dword [0x434c24]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x435a4c]
mov ecx, dword [ecx + 4]
cmp dword [ebp - 0x10e4], 0
je 0x406d56
cmp eax, ecx
jg 0x40731a
push str.updater.exe_was_launched_and_run_successfully_
push 0x435840
call fcn.00408430
add esp, 8
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40735d
mov eax, dword [0x435840]
test eax, eax
je 0x406d3a
push eax
call fcn.00414410
add esp, 4
cmp esi, 7
je 0x406df8
cmp esi, 8
jne 0x406e17
mov eax, 4
jmp 0x406dfd
cmp eax, ecx
jg 0x4074ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_running_update_process._Updating_update.status____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4074ef
mov eax, dword [0x435840]
test eax, eax
je 0x406daa
push eax
call fcn.00414410
add esp, 4
xor esi, esi
cmp dword [ebp - 0x10f4], 0
jne 0x406e29
push 0x18
push dword [edi + 0x10]
call fcn.004080f0
add esp, 8
test eax, eax
jne 0x406e29
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407707
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_write_update.status_service_update_failure.____lu_
jmp 0x40674d
mov eax, 3
push 0x42f34c
mov ecx, dword [ebp - 0x10ec]
push dword [ecx + eax*4]
call fcn.00415ec7
add esp, 8
test eax, eax
je 0x406e26
lea eax, [ebp - 0x448]
push eax
call fcn.00407c70
add esp, 4
xor esi, esi
inc esi
lea ecx, [ebp - 0xc70]
call fcn.004056e0
jmp 0x40609b
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405ddc
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405ddc
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405d0e
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405d0e
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405c75
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405c75
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405e2b
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405e2b
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405cd4
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405cd4
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40778d
push str.Could_not_write_update.status_still_applying_on_failure_error.
jmp 0x406b2c
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4060bc
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4060bc
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x40603c
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x40603c
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405e9f
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405e9f
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406089
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406089
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405da2
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405da2
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405fc7
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405fc7
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4060f7
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4060f7
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406327
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406327
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406687
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406687
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4064bb
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4064bb
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4066f0
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4066f0
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406864
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406864
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4068ef
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4068ef
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406cf5
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406cf5
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406d28
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406d28
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406421
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406421
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4066d1
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4066d1
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406741
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406741
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x40696c
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x40696c
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406d5e
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406d5e
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406d98
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406d98
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406b27
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406b27
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4069de
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4069de
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406b5f
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406b5f
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406a12
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406a12
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406be6
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406be6
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406b87
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406b87
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406c4a
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406c4a
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406de7
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406de7
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406c38
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406c38
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x406fa9
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x406fa9