Function at 0x412aef
Capabilities:
Check mutex on windows
Delete registry value
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x412b0f
mov eax, 0x80070005
jmp 0x4130f4
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x84], 0
je 0x412b30
mov eax, 0x8007000a
jmp 0x4130f4
mov esi, dword [ebp + 8]
test esi, esi
je 0x4130ef
xor edi, edi
cmp word [esi], di
je 0x4130ef
call fcn.0043c5cd
push eax
lea ecx, [ebp - 8]
call fcn.0043ac50
lea edx, [ebp - 8]
mov ecx, esi
call fcn.0044bb25
mov ebx, eax
test ebx, ebx
je 0x412b78
jle 0x4130e0
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4130e0
mov esi, dword [ebp - 8]
lea ecx, [ebp - 8]
mov eax, dword [esi - 0xc]
dec eax
push eax
call fcn.0043a8ec
push 0x5c
pop ecx
cmp ax, cx
jne 0x412b9d
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 8]
dec eax
push eax
call fcn.0043c894
push str.WindowsSystem32_ntdll.dll
lea edx, [ebp - 8]
lea ecx, [ebp - 0x20]
call fcn.0043ab55
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x2c]
push edi
call fcn.0044c96a
pop ecx
pop ecx
test eax, eax
jne 0x4130d0
cmp dword [ebp - 0x28], 0x60000
jb 0x4130d0
mov ecx, esi
call fcn.004125c5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x412c39
push str.GlobalDism_411ae0c2_9433_4e12_8865_d273e84d2206
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x412c07
call fcn.0044bc4b
mov ebx, eax
jmp 0x412c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412c26
mov ebx, 0xf0801
lea ecx, [ebp + 8]
call fcn.004387e2
jmp 0x4130c6
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
mov dword [ebp - 0x14], ebx
call fcn.004387e2
jmp 0x412f3b
push str.WindowsSystem32DismDismProv.dll
lea edx, [ebp - 8]
lea ecx, [ebp + 8]
call fcn.0043ab55
pop ecx
push edi
push 0x2200000
push 3
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x412da9
push str.DismProv
push 0x49182c
push ebx
call dword [sym.imp.CBSHost.dll_DismWriteLog]
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x412cc6
call fcn.0044bc4b
mov ebx, eax
push ebx
push 0x491834
lea eax, [ebp + 8]
push eax
call fcn.00449eea
add esp, 0xc
push dword [eax]
push 0x49182c
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
jmp 0x4130a0
call fcn.0043c5cd
push eax
lea ecx, [ebp + 8]
call fcn.0043ac50
push 0
push dword [ebp - 0xc]
lea ecx, [ebp + 8]
call fcn.0043c822
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x412cff
call fcn.0044bc4b
mov ebx, eax
push ebx
push 0x491860
jmp 0x412d57
push eax
lea ecx, [ebp + 8]
call fcn.0043c894
push 0x5f
push 0x5c
lea ecx, [ebp + 8]
call fcn.0043ba25
lea eax, [ebp + 8]
mov edx, str.Global_
push eax
lea ecx, [ebp - 4]
call fcn.00430fb9
pop ecx
push dword [eax]
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ecx - 0x10]
call fcn.0043c924
test ebx, ebx
jne 0x412d82
call fcn.0044bc4b
mov ebx, eax
push ebx
push 0x49189c
lea eax, [ebp + 0xc]
push eax
call fcn.00449eea
add esp, 0xc
push dword [eax]
push 0x49182c
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x412cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412d99
mov ebx, 0xf0801
jmp 0x412cbb
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x412f2b
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x412dca
call fcn.0044bc4b
mov ebx, eax
push ebx
push 0x4918c8
jmp 0x412ca0
push dword [ebp - 0x30]
lea eax, [ebp - 4]
push dword [ebp - 0x34]
push dword [ebp - 0x44]
push str._lu__lu__lu
push eax
call fcn.00449eea
lea eax, [ebp - 4]
mov edx, str.Global_
push eax
lea ecx, [ebp + 8]
call fcn.00430fb9
add esp, 0x18
push dword [eax]
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
lea ecx, [ecx - 0x10]
call fcn.0043c924
test esi, esi
mov esi, dword [ebp - 4]
jne 0x412e4a
call fcn.0044bc4b
mov ebx, eax
lea eax, [ebp + 8]
push ebx
push esi
push 0x4918f4
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push 0x49182c
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
jmp 0x413092
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412e61
mov ebx, 0xf0801
jmp 0x41309d
call fcn.0043c5cd
push eax
lea ecx, [ebp + 8]
call fcn.0043ac50
push 0x104
lea ecx, [ebp + 8]
call fcn.0043c822
push 0x104
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x412eca
call fcn.0044bc4b
mov ebx, eax
lea eax, [ebp + 0xc]
push ebx
push 0x491928
push eax
call fcn.00449eea
add esp, 0xc
push dword [eax]
push 0x49182c
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [ebp - 4]
jmp 0x413092
push 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov esi, dword [ebp - 4]
test eax, eax
jne 0x412fe5
call fcn.0044bc4b
push eax
lea eax, [ebp - 4]
push 0x491958
push eax
call fcn.00449eea
add esp, 0xc
push dword [eax]
push 0x49182c
push 2
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x18]
call fcn.0043ab9a
lea ecx, [edi - 0x10]
call fcn.0043c924
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
lea ebx, [ebp + 8]
call fcn.0043baa0
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov dword [edi], eax
call fcn.0041262b
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4130c6
mov esi, dword [ebp + 8]
mov dl, 1
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.CBSHost.dll_CreateCbsHostHelper]
mov edi, eax
test edi, edi
je 0x4130b7
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x412f8e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x48], edi
mov eax, dword [edi]
push ecx
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_Servicing
push 0x80000002
push edi
call dword [eax + 0xc]
test eax, eax
jne 0x412fc5
push str.Unserviceable
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
and dword [ebp - 0x14], 0
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
xor ebx, ebx
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x4130c6
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.0043c8bf
push 0x5f
push 0x5c
lea ecx, [ebp + 8]
call fcn.0043ba25
push 0x5f
lea ecx, [ebp + 8]
call fcn.0043b93f
push dword [esi - 0xc]
lea ecx, [ebp + 8]
push esi
call fcn.0043b96c
lea eax, [ebp + 8]
mov edx, str.Global_
push eax
lea ecx, [ebp - 4]
call fcn.00430fb9
pop ecx
push dword [eax]
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov ebx, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x10], ebx
call fcn.0043c924
test ebx, ebx
jne 0x41307c
call fcn.0044bc4b
mov ebx, eax
lea eax, [ebp + 0xc]
push ebx
push dword [ebp + 8]
push 0x4918f4
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push 0x49182c
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x413092
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412f15
mov ebx, 0xf0801
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
lea ecx, [ebp - 0x18]
call fcn.0043ab9a
lea ecx, [edi - 0x10]
call fcn.0043c924
jmp 0x4130c6
call fcn.0044bc4b
mov ebx, eax
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
lea ecx, [ebp - 0x14]
call fcn.004387c1
jmp 0x4130d5
mov ebx, 0x80004002
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0043c924
mov eax, ebx
jmp 0x4130f4
mov eax, 0x80070003
pop edi
pop esi
pop ebx
leave
ret 8