Function at 0x4aca30
Capabilities:
Get disk information
Get storage device properties
Query or enumerate registry value

Disassembly:
mov eax, 0x5e7c
call fcn.004e7170
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push 0x5cb6dc
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x4aca64
or eax, 0xffffffff
add esp, 0x5e7c
ret
push ebx
push ebp
push esi
mov esi, 0x41
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], esi
lea ebp, [esp + 0xae0]
mov ebx, dword [sym.imp.user32.dll_wsprintfA]
push esi
lea ecx, [esp + 0x40]
push 0x5cb5d8
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4ace68
push esi
lea eax, [esp + 0x80]
mov edi, 0x100
push 0x5cb6cc
push eax
mov byte [esp + 0x4e], 0
mov dword [esp + 0x28], edi
call ebx
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xbc]
lea eax, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
push 0
push ecx
push edx
mov dword [esp + 0x30], 3
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ace68
mov esi, dword [esp + 0x1c]
xor ecx, ecx
test esi, esi
jle 0x4acb28
mov eax, ecx
add ecx, 2
cdq
sub eax, edx
mov dl, byte [esp + ecx + 0xba]
sar eax, 1
cmp ecx, esi
mov byte [esp + eax + 0x1bc], dl
jl 0x4acb0c
mov eax, dword [esp + 0x14]
lea ecx, [ebp - 0x124]
push eax
push 0x5cb6c8
push ecx
call ebx
mov dl, byte [esp + 0x1cc]
add esp, 0xc
cmp dl, 0x23
lea eax, [esp + 0x1c0]
lea ecx, [ebp - 0x120]
je 0x4acb63
mov byte [ecx], dl
mov dl, byte [eax + 1]
inc ecx
inc eax
cmp dl, 0x23
jne 0x4acb57
inc eax
mov byte [ecx], 0
lea esi, [ebp - 0x100]
mov cl, byte [eax]
mov edx, esi
cmp cl, 0x23
je 0x4acb82
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x4acb76
mov cl, byte [eax + 1]
inc eax
mov byte [edx], 0
cmp cl, 0x23
mov edx, ebp
je 0x4acb9c
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x4acb90
push ebp
lea eax, [ebp - 0x120]
push esi
push eax
lea edx, [esp + 0x5c8]
push 0x5cb6a0
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x5bc]
mov dword [esp + 0x18], 1
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [esp + 0x30], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4acc3a
lea edx, [esp + 0x1c]
lea eax, [esp + 0xbc]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0x5cb690
push edx
mov dword [esp + 0x30], 3
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4acc2f
lea eax, [esp + 0xbc]
lea ecx, [ebp + 0x100]
push eax
push 0x5cb68c
push ecx
call ebx
add esp, 0xc
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x50]
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x4ace68
mov ecx, 0x264
xor eax, eax
mov edi, 0x5f3664
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
xor edi, edi
xor ecx, ecx
push edi
push edx
push 0x990
push 0x5f3664
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
push 0xc
push eax
mov dword [esp + 0x4c], ecx
push 0x2d1400
push esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x4accbe
push esi
jmp 0x4ace62
mov eax, dword [0x5f3670]
cmp eax, edi
jne 0x4acd13
lea esi, [ebp + 0x200]
push 0x5f3694
push 0x5cb684
push esi
mov dword [0x5f3670], 0x30
call ebx
mov ecx, dword [0x5f3670]
lea edi, [ebp + 0x209]
lea edx, [ecx + 0x5f366c]
push edx
push 0x5cb67c
push edi
call ebx
mov eax, dword [0x5f3670]
lea ebx, [ebp + 0x21a]
lea ecx, [eax + 0x5f367c]
push ecx
jmp 0x4acd55
lea edx, [eax + 0x5f3664]
lea esi, [ebp + 0x200]
push edx
push 0x5cb684
push esi
call ebx
mov eax, dword [0x5f3674]
lea edi, [ebp + 0x209]
lea ecx, [eax + 0x5f3664]
push ecx
push 0x5cb67c
push edi
call ebx
mov edx, dword [0x5f3678]
lea ebx, [ebp + 0x21a]
lea eax, [edx + 0x5f3664]
push eax
push 0x5cb674
push ebx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x24
push 8
push esi
mov esi, dword [esp + 0x5e98]
lea ecx, [esi + 0x50]
push ecx
call fcn.004ac9f0
add esp, 0xc
test eax, eax
je 0x4acd88
mov edx, dword [esp + 0x10]
push edx
jmp 0x4ace62
push 0x10
lea eax, [esi + 0x60]
push edi
push eax
call fcn.004ac9f0
add esp, 0xc
test eax, eax
je 0x4acda5
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4ace62
push 4
lea edx, [esi + 0x74]
push ebx
push edx
call fcn.004ac9f0
add esp, 0xc
test eax, eax
jne 0x4ace5d
mov al, byte [esp + 0x1bc]
lea edi, [esp + 0x1bc]
cmp al, 0x7b
je 0x4acdd6
mov al, byte [edi + 1]
inc edi
cmp al, 0x7b
jne 0x4acdce
push 3
lea ebx, [ebp - 0x120]
push 0x5cb670
push ebx
call fcn.004ac9f0
add esp, 0xc
test eax, eax
jne 0x4ace10
push 5
lea ecx, [esi + 0x40]
push 0x5cb668
push ecx
call fcn.004ac9f0
add esp, 0xc
test eax, eax
jne 0x4acd7e
sub edi, 4
jmp 0x4ace27
push 4
push 0x5cb660
push ebx
call fcn.004ac9f0
add esp, 0xc
test eax, eax
jne 0x4ace5d
sub edi, 3
mov eax, dword [esi]
movsx edx, byte [edi]
shr eax, 8
movsx ecx, al
sub edx, 0x30
cmp edx, ecx
jne 0x4ace55
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [eax + esi + 0x10], cl
inc eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
add ebp, 0x343
jmp 0x4ace68
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
inc esi
cmp esi, 0x5a
mov dword [esp + 0x14], esi
jle 0x4aca80
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
jne 0x4acea5
mov ecx, dword [esp + 0x5e80]
mov byte [ecx + 0x10], 0x3f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
add esp, 0x5e7c
ret
cmp ecx, 2
jl 0x4acec0
mov eax, dword [esp + 0x5e80]
dec ecx
mov dl, byte [eax + ecx + 0x10]
mov byte [eax + ecx + 0x11], dl
jne 0x4aceaa
mov byte [eax + 0x10], 0x3f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
add esp, 0x5e7c
ret