Function at 0x4091a0
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x4092c9
mov edi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x4092c9
lea ecx, [ebp - 0x4a8]
xor eax, eax
push ecx
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x409216
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4092e0
mov dword [ebp - 0x500], 0
mov edi, dword [ebp - 0x4a8]
push edi
call fcn.0040a20b
add esp, 4
mov esi, eax
push edi
push 0
push eax
call fcn.0040c770
add esp, 0xc
lea eax, [ebp - 0x4a8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x4092ba
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040c770
add esp, 0xc
mov dword [ebp - 0x504], esi
mov ebx, dword [esi + 0xc]
push ebx
call fcn.0040a34b
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x4092ae
push 0x105
push ebx
push edi
call fcn.0040a49c
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4092eb
mov dword [ebp - 0x500], esi
mov esi, dword [ebp - 0x504]
push esi
call fcn.0040a497
add esp, 4
mov esi, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af35
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x4092c9
push str.maintenanceservice_tmp.exe
push edi
call fcn.00424f20
add esp, 8
test eax, eax
je 0x4092ae
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040a34b
add esp, 4
cmp eax, 0x104
ja 0x4092ae
xor esi, esi
lea edi, [ebp - 0x424]
push 0x20a
push esi
push edi
call fcn.0040c770
add esp, 0xc
push 0x104
push ebx
push edi
call fcn.0040a49c
add esp, 0xc
push 0x42c31a
push edi
call fcn.00424f20
add esp, 8
push esi
lea eax, [ebp - 0x21a]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4092ae
push 1
lea edi, [ebp - 0x21a]
push edi
push ebx
call fcn.00407c20
add esp, 0xc
test eax, eax
je 0x409431
xorps xmm0, xmm0
lea eax, [ebp - 0x4ec]
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x34], xmm0
movups xmmword [eax + 0x24], xmm0
movups xmmword [eax + 0x14], xmm0
mov dword [eax], 0x44
mov dword [eax + 8], 0x42c5f2
lea eax, [ebp - 0x4fc]
movups xmmword [eax], xmm0
lea esi, [ebp - 0x4a4]
movups xmmword [esi + 0x70], xmm0
movups xmmword [esi + 0x60], xmm0
movups xmmword [esi + 0x50], xmm0
movups xmmword [esi + 0x40], xmm0
movups xmmword [esi + 0x30], xmm0
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
push 0x3f
push str.dummyparam.exe_upgrade
push esi
call fcn.0040a49c
sub esp, 0x1c
lea eax, [ebp - 0x4fc]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4ec]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x40942a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4fc]
call esi
push dword [ebp - 0x4f8]
call esi
mov esi, ebx
jmp 0x4092ae
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4092ae