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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov byte [ebp - 0x1c], 0
mov eax, 0x600ba0
mov byte [ebp - 0x11], 0xb
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x29], 0xb
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x485ed0
push ebx
push esi
push edi
push eax
push 0x600ba0
lea ecx, [ebp - 0x34]
call fcn.00441100
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x486024
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push 0
push str.MachineGuid
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
sete al
mov byte [ebp - 1], al
cmp esi, 2
jne 0x485f8e
lea eax, [ebp - 8]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x485f8b
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push str.MachineGuid
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
sete al
jmp 0x485f8e
mov al, byte [ebp - 1]
test al, al
je 0x48601c
cmp dword [ebp - 0x10], 1
jne 0x48600d
mov edi, dword [ebp - 0xc]
add edi, 1
je 0x485fc4
push 0
push 0
push 0
push 0
push 0
push edi
call fcn.0049f9b0
push edi
mov esi, eax
push 0
push esi
call fcn.005d6d60
add esp, 0x24
jmp 0x485fc6
xor esi, esi
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push str.MachineGuid
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x485fee
push esi
lea ecx, [ebp - 0x1c]
call fcn.00445e20
jmp 0x485ffe
call ebx
push eax
push str.Couldnt_read_MachineGuid_key_value__error__d
call fcn.004631b0
add esp, 8
test esi, esi
je 0x486034
push esi
call fcn.0044d750
add esp, 4
jmp 0x486034
push str.Wrong_MachineGuid_registry_value_type__expected_REG_SZ
call fcn.004631b0
add esp, 4
jmp 0x486034
push esi
push str.Couldnt_find_MachineGuid_key__error__d
jmp 0x48602c
call ebx
push eax
push str.Couldnt_open_SOFTWAREMicrosoftCryptography_key__error__d
call fcn.004631b0
add esp, 8
test byte [ebp - 0x11], 0x80
mov esi, 0xb
je 0x486044
mov ecx, dword [ebp - 0x18]
jmp 0x48604c
movzx eax, byte [ebp - 0x11]
mov ecx, esi
sub ecx, eax
test ecx, ecx
jne 0x4861a8
lea eax, [ebp - 0x7c]
push eax
call fcn.00461540
add esp, 4
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0045ddd0
mov eax, dword [ebp - 0x4d]
test al, al
jns 0x486078
mov ecx, dword [ebp - 0x54]
jmp 0x48607f
movzx eax, al
mov ecx, esi
sub ecx, eax
test ecx, ecx
je 0x48610b
push 0
push 0
push 0
push 0
push 0
push 0x1000
call fcn.0049f9b0
push 0x1000
mov edi, eax
push 0
push edi
call fcn.005d6d60
add esp, 0x24
lea eax, [ebp - 0x10]
cmp byte [ebp - 0x4d], 0
lea ecx, [ebp - 0x58]
cmovl ecx, dword [ebp - 0x58]
push 0
push 0
push 0
push 0
push eax
push 0x1000
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4860ec
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push edi
push str._s_08X
push eax
call fcn.0044b760
add esp, 0x10
jmp 0x4860fc
call ebx
push eax
push str.Couldnt_get_disk_info__error__d
call fcn.004631b0
add esp, 8
test edi, edi
je 0x486124
push edi
call fcn.0044d750
add esp, 4
jmp 0x486124
cmp byte [ebp - 0x71], 0
lea eax, [ebp - 0x7c]
cmovl eax, dword [ebp - 0x7c]
push eax
push str.Couldnt_get_root_path_from__s
call fcn.004631b0
add esp, 8
cmp byte [ebp - 0x35], 0
jge 0x48613a
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x48613a
push eax
call fcn.0044d750
add esp, 4
cmp byte [ebp - 0x41], 0
jge 0x486150
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x486150
push eax
call fcn.0044d750
add esp, 4
cmp byte [ebp - 0x4d], 0
jge 0x486166
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x486166
push eax
call fcn.0044d750
add esp, 4
cmp byte [ebp - 0x59], 0
jge 0x48617c
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x48617c
push eax
call fcn.0044d750
add esp, 4
cmp byte [ebp - 0x65], 0
jge 0x486192
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x486192
push eax
call fcn.0044d750
add esp, 4
cmp byte [ebp - 0x71], 0
jge 0x4861a8
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4861a8
push eax
call fcn.0044d750
add esp, 4
mov al, byte [0x68d94b]
test al, al
jns 0x4861b9
mov esi, dword [0x68d944]
jmp 0x4861be
movzx eax, al
sub esi, eax
test esi, esi
je 0x486212
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x68d940
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004619a0
mov ecx, dword [ebp - 0x28]
add esp, 8
test al, al
je 0x486205
mov eax, dword [ebp - 0x24]
sub eax, ecx
je 0x486205
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00441100
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x486212
push ecx
call fcn.0044d750
add esp, 4
test byte [ebp - 0x11], 0x80
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
cmovne ecx, dword [ebp - 0x1c]
test byte [ebp - 0x29], 0x80
push ecx
cmovne eax, dword [ebp - 0x34]
push eax
push 0x604e00
push dword [ebp + 8]
push esi
call fcn.0043f2f0
mov eax, dword [ebp - 8]
add esp, 0x14
test eax, eax
je 0x486258
cmp eax, 0xffffffff
je 0x486258
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], 0
test byte [ebp - 0x29], 0x80
je 0x48626e
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x48626e
push eax
call fcn.0044d750
add esp, 4
test byte [ebp - 0x11], 0x80
je 0x486284
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x486284
push eax
call fcn.0044d750
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret