Function at 0x4ac510
Capabilities:
Get disk information
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x3428
call fcn.004e7170
lea eax, [esp + 4]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x5cb654
push 0x80000002
mov dword [esp + 0x20], 4
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ac54f
or eax, 0xffffffff
pop ebx
add esp, 0x3428
ret
push ebp
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov ebp, dword [sym.imp.user32.dll_wsprintfA]
mov esi, ebx
shl esi, 8
push 0x5cb648
lea edi, [esp + esi + 0x23c]
push edi
call ebp
mov ecx, dword [esp + 0x28]
add esp, 8
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + esi + 0x252]
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
mov dword [esp + 0x30], 0xf6
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4ac698
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ac684
push edi
call fcn.004ac9d0
mov dword [esp + 0x2c], eax
add eax, esi
lea ecx, [esp + 0x13c]
push edi
mov byte [esp + eax + 0x240], 0x5c
push ecx
mov byte [esp + eax + 0x245], 0
call ebp
add esp, 0xc
xor ebp, ebp
cmp ebx, 0x32
jge 0x4ac684
mov edi, esi
lea edx, [esp + 0x138]
lea esi, [esp + edi + 0x238]
push edx
push esi
call dword [sym.imp.user32.dll_wsprintfA]
push esi
call fcn.004ac9d0
add esp, 0xc
lea edx, [esp + 0x30]
mov ecx, 0x100
mov ebx, ebp
push edx
sub ecx, eax
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
push esi
mov dword [esp + 0x28], ecx
inc ebp
call fcn.004ac9d0
mov edx, dword [esp + 0x3c]
add eax, edi
add esp, 4
lea ecx, [esp + eax + 0x24c]
push ecx
push ebx
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4ac680
mov edx, dword [esp + 0x1c]
add edi, 0x100
inc edx
cmp edi, 0x3200
mov dword [esp + 0x1c], edx
jl 0x4ac609
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp ebx, 0x32
jl 0x4ac55a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebp, dword [esp + 0x343c]
mov dword [esp + 0x20], 0
test ebx, ebx
jle 0x4ac9b1
test ebx, ebx
jle 0x4ac9b1
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea edx, [esp + 0x238]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ac97b
mov ecx, 0x40
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
mov ebx, 0x100
push 0x5cb638
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebx
call esi
lea eax, [esp + 0x38]
push 8
lea ecx, [ebp + 0x50]
push eax
push ecx
call fcn.004ac9f0
add esp, 0xc
test eax, eax
je 0x4ac75b
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4ac980
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push 0x5cb62c
push eax
mov dword [esp + 0x28], ebx
call esi
lea ecx, [esp + 0x38]
push 0x10
lea edx, [ebp + 0x60]
push ecx
push edx
call fcn.004ac9f0
add esp, 0xc
test eax, eax
je 0x4ac7b0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4ac980
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push 0x5cb61c
push ecx
mov dword [esp + 0x28], ebx
call esi
lea edx, [esp + 0x38]
push 4
lea eax, [ebp + 0x74]
push edx
push eax
call fcn.004ac9f0
add esp, 0xc
test eax, eax
je 0x4ac805
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4ac980
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0x5cb60c
push edx
mov dword [esp + 0x28], ebx
call esi
lea eax, [esp + 0x38]
push eax
call fcn.004e79ef
xor ecx, ecx
add esp, 4
mov cl, byte [ebp + 1]
cmp ecx, eax
je 0x4ac859
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4ac980
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push 0x5cb604
push eax
mov dword [esp + 0x28], ebx
call esi
lea ecx, [esp + 0x38]
push ecx
call fcn.004e79ef
mov edx, dword [ebp]
add esp, 4
and edx, 0xff
cmp edx, eax
je 0x4ac8b1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4ac980
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push 0x5cb5e4
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4ac938
movsx edx, byte [esp + 0x38]
push edx
lea eax, [esp + 0x13c]
push 0x5cb5d8
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4ac92b
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x38]
mov byte [eax + ebp + 0x10], dl
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4ac980
mov eax, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x5cb5cc
push ecx
mov byte [ebp + 0x10], 0x3f
mov dword [esp + 0x40], 0
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4ac980
mov ebx, 0x100
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add ecx, ebx
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
jne 0x4ac6d7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ac9b1
cmp eax, 2
jl 0x4ac9b5
mov cl, byte [eax + ebp + 0xf]
mov byte [eax + ebp + 0x10], cl
dec eax
jne 0x4ac9a6
mov byte [ebp + 0x10], 0x3f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3428
ret