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

Disassembly:
sub esp, 0x334
mov edx, dword [0x4e8378]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov eax, dword [str.ProcessVolume__]
push ebx
push ebp
mov ebp, dword [esp + 0x344]
mov ebx, ecx
mov ecx, dword [0x4e8374]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x24], eax
mov eax, dword [0x4e837c]
push edi
push ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call esi
cmp eax, 5
jne 0x4519fd
mov dword [esp + 0x1c], 1
push ebp
call esi
cmp eax, 2
jne 0x451be0
push 0x103
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov byte [esp + 0x147], 0
call fcn.00466df0
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x39], 0x3f
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
push edx
push 0x20019
dec ecx
push eax
push str.SYSTEMMountedDevices
push 0x80000002
mov byte [esp + ecx + 0x4b], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x451a91
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e82c8
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov ecx, dword [0x4d2de4]
lea eax, [esp + 0x38]
push 0x6df
push eax
push ecx
call fcn.0044fa60
add esp, 0x1c
jmp 0x451be0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x44]
push 0
push eax
push ecx
mov dword [esp + 0x38], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x451aee
lea edx, [esp + 0x38]
lea eax, [ebx + 0x55]
push edx
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e835c
push 0xfff
push eax
call fcn.00466ca7
mov edx, dword [0x4d2de4]
lea ecx, [esp + 0x3c]
push 0x6e7
push ecx
push edx
call fcn.0044fa60
add esp, 0x20
mov eax, dword [esp + 0x10]
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x451b34
push 0x4e82a0
lea ecx, [ebx + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x34]
push 0x6ec
push edx
push eax
call fcn.0044fa60
add esp, 0x18
jmp 0x451bc9
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, 2
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x38]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x451ba6
lea ecx, [esp + 0x38]
lea edx, [ebx + 0x55]
push ecx
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e828c
push 0xfff
push edx
call fcn.00466ca7
mov ecx, dword [0x4d2de4]
lea eax, [esp + 0x3c]
push 0x6f4
push eax
push ecx
call fcn.0044fa60
add esp, 0x20
jmp 0x451bc2
mov edx, dword [0x4d2f84]
push edx
push esi
call fcn.004694d5
add esp, 8
test eax, eax
je 0x451bc2
mov dword [esp + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x451c74
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x451c74
lea ecx, [esp + 0x240]
push 0x104
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push 0
push 0
push ebp
call dword [0x4fa40c]
test byte [esp + 0x24], 0x80
je 0x451c74
lea eax, [esp + 0x13c]
push 0x104
push eax
push ebp
call dword [0x4fa418]
mov esi, eax
cmp esi, 0xffffffff
je 0x451c74
push 0x104
push ebp
lea ecx, [esp + 0x144]
push 0x104
push ecx
push esi
mov ecx, ebx
call fcn.00451ca0
test eax, eax
je 0x451c6d
push 0x104
push ebp
lea edx, [esp + 0x144]
push 0x104
push edx
push esi
mov ecx, ebx
call fcn.00451ca0
test eax, eax
jne 0x451c4e
push esi
call dword [0x4fa404]
mov eax, dword [esp + 0x350]
mov ecx, dword [esp + 0x348]
push eax
push ebp
push ecx
call dword [0x4fa410]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret 0xc