Function at 0x40b28c
Capabilities:
Get disk information
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x507c7c]
mov dword [ebp - 0xc], eax
mov ax, word [0x507c80]
push ebx
mov word [ebp - 8], ax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x228], edx
push esi
mov word [ebp - 0x214], ax
xor esi, esi
mov ax, word [ecx]
and dword [ebp - 0x218], esi
push edi
mov word [ebp - 0xc], ax
xor edi, edi
push 0x104
lea eax, [ebp - 0x214]
mov dword [ebp - 0x224], ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x21c], esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40b4f8
push dword [ebp - 0x224]
call fcn.004c96f6
mov esi, eax
lea eax, [ebp - 0x214]
push eax
call fcn.004c96f6
add esi, eax
lea eax, [esi*2 + 2]
push eax
call fcn.004c8d06
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x22c], ecx
test ecx, ecx
je 0x40b4f6
mov eax, dword [ebp - 0x224]
add eax, 4
push eax
lea eax, [ebp - 0x214]
push eax
push 0x507c84
push ecx
call fcn.0040cf04
mov esi, dword [ebp - 0x228]
add esp, 0x10
test esi, esi
je 0x40b3e1
xor eax, eax
mov word [ebp - 0x214], ax
mov ax, word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40b4e2
push esi
call fcn.004c96f6
mov esi, eax
lea eax, [ebp - 0x214]
push eax
call fcn.004c96f6
add esi, eax
lea eax, [esi*2 + 2]
push eax
call fcn.004c8d06
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40b4e2
mov eax, dword [ebp - 0x228]
add eax, 4
push eax
lea eax, [ebp - 0x214]
push eax
push 0x507c84
push ebx
call fcn.0040cf04
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSet_servicesK7SentryConfig
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b4d7
mov eax, 0x20000
push eax
push 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40b4d7
lea eax, [ebp - 0x220]
mov esi, edi
push eax
push edi
lea eax, [ebp - 0x230]
push eax
push 0
push str.OnBootPendingFSActions
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b460
mov esi, dword [ebp - 0x220]
shr esi, 1
dec esi
lea esi, [edi + esi*2]
push dword [ebp - 0x22c]
push 0x507d24
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esi + eax*2]
xor eax, eax
mov word [esi], ax
add esi, 2
test ebx, ebx
je 0x40b497
push ebx
push 0x507d24
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esi + eax*2]
xor eax, eax
mov word [esi], ax
add esi, 2
mov word [esi], ax
sub esi, edi
add esi, 2
push esi
push edi
push 7
push eax
push str.OnBootPendingFSActions
push dword [ebp - 0x218]
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x21c]
xor edx, edx
inc edx
test eax, eax
cmove ecx, edx
mov dword [ebp - 0x21c], ecx
test ebx, ebx
je 0x40b4e2
push ebx
call fcn.004c8ceb
pop ecx
push dword [ebp - 0x22c]
call fcn.004c8ceb
mov esi, dword [ebp - 0x21c]
pop ecx
jmp 0x40b4f8
mov esi, ebx
cmp dword [ebp - 0x218], 0
je 0x40b50d
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40b521
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret