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

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 0x4115f3
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 0x4115f3
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x41139d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41160b
mov esi, dword [esp + 0x5c]
push esi
call fcn.00412763
add esp, 4
mov edi, eax
push esi
push 0
push eax
call fcn.00415350
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 0x4115e8
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [esp + 0x2ee]
push 0x20a
push 0
push eax
call fcn.00415350
add esp, 0xc
mov ebx, dword [esi + 0xc]
push ebx
call fcn.00420010
add esp, 4
xor edi, edi
cmp eax, 0x104
ja 0x4115ea
push 0x105
push ebx
lea ebx, [esp + 0x2f6]
push ebx
call fcn.00420489
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4115ea
push str.maintenanceservice_tmp.exe
push ebx
call fcn.00411c00
add esp, 8
test eax, eax
je 0x4115ea
push dword [ebp + 8]
call fcn.00420010
add esp, 4
cmp eax, 0x104
ja 0x4115ea
mov edi, ebx
mov ebx, esi
lea esi, [esp + 0xe4]
push 0x20a
push 0
push esi
call fcn.00415350
add esp, 0xc
push 0x104
push dword [ebp + 8]
push esi
call fcn.00420489
add esp, 0xc
push str.maintenanceservice.exe
push esi
call fcn.00411c00
add esp, 8
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor edi, edi
test eax, eax
je 0x411624
push 1
lea eax, [esp + 0x2f2]
push eax
push dword [ebp + 8]
call fcn.004100b0
add esp, 0xc
test eax, eax
je 0x411616
xorps xmm0, xmm0
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], 0x438612
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.00420489
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
lea eax, [esp + 0x312]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test eax, eax
je 0x411624
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call esi
push dword [esp + 4]
call esi
jmp 0x411624
xor edi, edi
push esi
call fcn.0041276c
add esp, 4
mov ecx, dword [esp + 0x4f8]
xor ecx, ebp
call fcn.00412fa1
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 0x4115f3
lea eax, [esp + 0x2ee]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ebx
jmp 0x4115ea