Function at 0x40b9f0
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 [0x43300c]
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 0x40bcc3
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 0x40bcc3
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x40ba6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40bcdb
mov esi, dword [esp + 0x5c]
push esi
call fcn.0040d9ae
add esp, 4
mov edi, eax
push esi
push 0
push eax
call fcn.0040fff0
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 0x40bcb8
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [esp + 0x2ee]
push 0x20a
push 0
push eax
call fcn.0040fff0
add esp, 0xc
mov ebx, dword [esi + 0xc]
push ebx
call fcn.00416af2
add esp, 4
xor edi, edi
cmp eax, 0x104
ja 0x40bcba
push 0x105
push ebx
lea ebx, [esp + 0x2f6]
push ebx
call fcn.00416f6b
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40bcba
push str.maintenanceservice_tmp.exe
push ebx
call fcn.0040c350
add esp, 8
test eax, eax
je 0x40bcba
push dword [ebp + 8]
call fcn.00416af2
add esp, 4
cmp eax, 0x104
ja 0x40bcba
mov edi, ebx
mov ebx, esi
lea esi, [esp + 0xe4]
push 0x20a
push 0
push esi
call fcn.0040fff0
add esp, 0xc
push 0x104
push dword [ebp + 8]
push esi
call fcn.00416f6b
add esp, 0xc
push 0x42dd22
push esi
call fcn.0040c350
add esp, 8
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor edi, edi
test eax, eax
je 0x40bcf4
push 1
lea eax, [esp + 0x2f2]
push eax
push dword [ebp + 8]
call fcn.0040a780
add esp, 0xc
test eax, eax
je 0x40bce6
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], 0x42e040
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.00416f6b
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 0x40bcf4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call esi
push dword [esp + 4]
call esi
jmp 0x40bcf4
xor edi, edi
push esi
call fcn.0040d9b7
add esp, 4
mov ecx, dword [esp + 0x4f8]
xor ecx, ebp
call fcn.0040e0d1
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 0x40bcc3
lea eax, [esp + 0x2ee]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ebx
jmp 0x40bcba