Function at 0x40edc0
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x500
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [esp + 0x4f8], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor edi, edi
test eax, eax
je 0x40f02d
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x40f02d
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x40ee3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f045
mov esi, dword [esp + 0x5c]
push esi
call fcn.00412415
add esp, 4
mov edi, eax
push esi
push 0
push eax
call fcn.00414f70
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
push esi
mov esi, edi
push edi
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 0x40f022
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea edi, [esp + 0x2ee]
push 0x20a
push 0
push edi
call fcn.00414f70
add esp, 0xc
push str.maintenanceservice_tmp.exe
push dword [esi + 0xc]
push edi
call fcn.0040ed30
add esp, 0xc
test eax, eax
je 0x40f022
lea ebx, [esp + 0xe4]
push 0x20a
push 0
push ebx
call fcn.00414f70
add esp, 0xc
push 0x104
push dword [ebp + 8]
push ebx
call fcn.00420049
add esp, 0xc
push ebx
call fcn.0041fbd0
add esp, 4
add eax, 0x16
cmp eax, 0x103
ja 0x40eef9
push str.maintenanceservice.exe
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40f022
xorps xmm0, xmm0
mov ebx, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x20], 0x4382ea
lea esi, [esp + 0x60]
movaps xmmword [esp], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
push 0x3f
push str.dummyparam.exe_upgrade
push esi
call fcn.00420049
add esp, 0xc
mov eax, esp
lea ecx, [esp + 0x18]
push eax
push ecx
push dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test eax, eax
je 0x40f01e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call esi
push dword [esp + 4]
call esi
mov esi, ebx
jmp 0x40f024
xor edi, edi
push esi
call fcn.0041241e
add esp, 4
mov ecx, dword [esp + 0x4f8]
xor ecx, ebp
call fcn.00412bfe
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
jmp 0x40f02d