Function at 0x4109f0
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, 0x510
mov eax, dword [0x43d00c]
xor esi, esi
xor eax, ebp
mov dword [esp + 0x508], eax
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x410b11
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 0x410b11
lea ecx, [esp + 0x6c]
xor eax, eax
push ecx
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x410a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x410b29
mov edi, dword [esp + 0x6c]
mov dword [esp + 8], 0
push edi
call fcn.00411d49
add esp, 4
mov esi, eax
push edi
push 0
push eax
call fcn.00414930
add esp, 0xc
lea eax, [esp + 0x6c]
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 0x410b04
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea edi, [esp + 0x2fe]
push 0x20a
push 0
push edi
call fcn.00414930
add esp, 0xc
mov ebx, dword [esi + 0xc]
mov dword [esp + 0xc], esi
push ebx
call fcn.0041f7d0
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x410afc
push 0x105
push ebx
push edi
call fcn.0041fc49
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x410b34
mov dword [esp + 8], esi
mov esi, dword [esp + 0xc]
push esi
call fcn.00411d52
add esp, 4
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x508]
xor ecx, ebp
call fcn.00412591
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x410b11
push str.maintenanceservice_tmp.exe
push edi
call fcn.00411250
add esp, 8
test eax, eax
je 0x410afc
mov ebx, edi
mov edi, dword [ebp + 8]
push edi
call fcn.0041f7d0
add esp, 4
cmp eax, 0x104
ja 0x410afc
xor esi, esi
lea eax, [esp + 0xf4]
push 0x20a
push esi
push eax
call fcn.00414930
add esp, 0xc
push 0x104
push edi
lea eax, [esp + 0xfc]
push eax
call fcn.0041fc49
add esp, 0xc
push str.maintenanceservice.exe
lea eax, [esp + 0xf8]
push eax
call fcn.00411250
add esp, 8
push esi
push ebx
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x410afc
push 1
push ebx
push edi
call fcn.0040f520
add esp, 0xc
test eax, eax
je 0x410c8d
xor eax, eax
lea esi, [esp + 0x28]
xorps xmm0, xmm0
mov ebx, 0
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
lea eax, [esp + 0x10]
mov dword [esi], 0x44
mov dword [esi + 8], 0x438640
movaps xmmword [eax], xmm0
lea eax, [esp + 0x70]
movaps xmmword [eax + 0x70], xmm0
movaps xmmword [eax + 0x60], xmm0
movaps xmmword [eax + 0x50], xmm0
movaps xmmword [eax + 0x40], xmm0
movaps xmmword [eax + 0x30], xmm0
movaps xmmword [eax + 0x20], xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
push 0x3f
push str.dummyparam.exe_upgrade
push eax
call fcn.0041fc49
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x322]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x410c86
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
mov esi, ebx
jmp 0x410afc
lea eax, [esp + 0x2fe]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x410afc