Function at 0x53ece0
Capabilities:
Get disk information via ioctl
Query or enumerate registry value

Disassembly:
sub esp, 0x9d8
mov eax, dword [esp + 0x9dc]
push ebx
push ebp
push esi
mov ebp, ecx
lea ebx, [eax + 0x29]
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xe8]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3e8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, str.SYSTEMCurrentControlSetEnum_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x23
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1c], 0x200
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, ebp
call fcn.0053ec40
push 1
lea edx, [esp + 0xec]
push 0x23
push edx
mov ecx, ebp
mov byte [esp + eax + 0xf4], 0x5c
call fcn.0053ec40
mov byte [esp + eax + 0xe8], 0x5c
push 1
lea eax, [esp + 0xec]
push 0x23
push eax
mov ecx, ebp
call fcn.0053ec40
mov byte [esp + eax + 0xe8], 0
lea edi, [esp + 0xec]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3e8]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x3f0]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53f088
lea edx, [esp + 0x28]
push 0x5de854
push edx
call fcn.0054c45b
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push str.ParentIdPrefix
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
push str.8369d58ee0
push ecx
call fcn.0054ccc0
lea edx, [esp + 0x30]
push str.83ab1e02d0
push edx
call fcn.0054ccc0
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x53eeeb
mov ecx, 0x40
lea edi, [esp + 0x2e8]
rep stosd dword es:[edi], eax
push 3
push 0x23
push ebx
mov ecx, ebp
call fcn.0053ec40
push 2
push 0x23
push ebx
mov ecx, ebp
mov edi, eax
call fcn.0053ec40
push 2
sub edi, eax
push 0x23
push ebx
mov ecx, ebp
dec edi
call fcn.0053ec40
mov ecx, dword [esp + 0x9ec]
mov edx, edi
lea edi, [esp + 0x2e8]
lea esi, [eax + ecx + 0x2a]
mov ecx, edx
mov eax, ecx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2e8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0053eca0
mov edi, str.SYSTEMMountedDevices_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3e8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3e8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53f06b
mov al, byte [esp + 0x9f0]
test al, al
je 0x53efb6
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53efaa
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x53efaa
mov eax, dword [esp + 0x9ec]
mov dl, byte [esp + 0x20]
mov byte [eax + 8], dl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x53f06b
mov bl, 0x41
mov edi, 0x41
push edi
lea ecx, [esp + 0xac]
push str.DosDevices_C:
push ecx
mov dword [esp + 0x20], 0x200
call fcn.0054c45b
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x7e8]
lea ecx, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53f05f
mov ecx, dword [esp + 0x14]
shr ecx, 1
test ecx, ecx
jle 0x53f025
lea esi, [esp + 0x7e8]
mov dl, byte [esi]
add esi, 2
mov byte [esp + eax + 0x5e8], dl
inc eax
cmp eax, ecx
jl 0x53f014
lea eax, [esp + 0x5e8]
mov byte [esp + ecx + 0x5e9], 0
push eax
mov ecx, ebp
call fcn.0053eca0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x5e8]
push ecx
push edx
call fcn.0054ccc0
add esp, 8
test eax, eax
je 0x53f05f
mov eax, dword [esp + 0x9ec]
mov byte [eax + 8], bl
inc bl
inc edi
cmp bl, 0x5a
jle 0x53efbd
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x9d8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9d8
ret 8