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

Disassembly:
mov eax, dword [0x5cb548]
sub esp, 0x84c
push ebx
push ebp
push esi
push edi
push eax
call fcn.0049ca80
add esp, 4
test eax, eax
je 0x4ad04a
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push 0x5cb6dc
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ad052
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x84c
ret
mov dword [esp + 0x10], 0
mov dl, byte [esp + 0x860]
mov esi, dword [esp + 0x868]
movsx ebp, dl
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x5c]
mov byte [esi + 0x10], dl
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.user32.dll_wsprintfA]
push ebp
lea edx, [esp + 0x20]
mov ebx, 3
push 0x5cb6c8
push edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0
mov byte [esi + 0x11], 0
call edi
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x1c]
push 0x800
push eax
push ecx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
lea edx, [esp + 0x5c]
lea eax, [esi + 0x30]
push edx
push 0x5cb68c
push eax
call edi
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4ad25e
push ebp
lea ecx, [esp + 0x20]
push 0x5cb6cc
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push 0
mov ebp, 0x800
push edx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ad150
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x4ad12d
mov bl, byte [esp + eax + 0x5c]
mov edx, eax
shr edx, 1
add eax, 2
cmp eax, ecx
mov byte [esp + edx + 0x1c], bl
jb 0x4ad11a
mov cl, byte [esp + 0x20]
lea eax, [esi + 0x40]
cmp cl, 0x23
je 0x4ad14b
lea edx, [esp + 0x20]
sub edx, eax
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, 0x23
jne 0x4ad13f
mov byte [eax], 0
jmp 0x4ad160
lea ecx, [esi + 0x40]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x864]
lea edx, [esp + 0x5c]
push ebp
push edx
push eax
mov dword [esp + 0x20], ebp
call fcn.004ad2c0
add esp, 0xc
test eax, eax
jge 0x4ad199
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff4
pop ebx
add esp, 0x84c
ret
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x4ad1ea
lea edx, [esp + 0xa8]
lea eax, [esi + 0x50]
push edx
push 0x5cb684
push eax
mov dword [esp + 0x74], 0x4c
call edi
mov ecx, dword [esp + 0x74]
lea eax, [esi + 0x60]
lea edx, [esp + ecx + 0x70]
push edx
push 0x5cb67c
push eax
call edi
mov ecx, dword [esp + 0x80]
lea eax, [esi + 0x74]
lea edx, [esp + ecx + 0x8c]
push edx
push 0x5cb674
push eax
jmp 0x4ad223
lea ecx, [esp + eax + 0x5c]
lea edx, [esi + 0x50]
push ecx
push 0x5cb684
push edx
call edi
mov eax, dword [esp + 0x78]
lea edx, [esi + 0x60]
lea ecx, [esp + eax + 0x68]
push ecx
push 0x5cb67c
push edx
call edi
mov eax, dword [esp + 0x88]
lea edx, [esi + 0x74]
lea ecx, [esp + eax + 0x74]
push ecx
push 0x5cb674
push edx
call edi
add esp, 0x24
mov byte [esi + 0x58], 0
mov byte [esi + 0x70], 0
mov byte [esi + 0x78], 0
lea eax, [esi + 0x6f]
cmp byte [eax], 0
jne 0x4ad242
mov byte [eax], 0x20
dec eax
jmp 0x4ad237
lea eax, [esi + 0x57]
cmp byte [eax], 0
jne 0x4ad250
mov byte [eax], 0x20
dec eax
jmp 0x4ad245
lea eax, [esi + 0x77]
cmp byte [eax], 0
jne 0x4ad28d
mov byte [eax], 0x20
dec eax
jmp 0x4ad253
lea ecx, [esi + 0x40]
xor eax, eax
xor edx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea eax, [esi + 0x50]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
lea edx, [esi + 0x60]
lea eax, [esi + 0x74]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x864]
push edx
mov dword [esi + 4], ecx
mov dword [esi], 0
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84c
ret