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

Disassembly:
mov eax, 0x1718
call fcn.00458590
mov edx, dword [0x496254]
mov eax, dword [str.DosDevices_:]
mov ecx, dword [0x496250]
push ebx
push ebp
mov dword [esp + 0x2c], edx
push esi
lea edx, [esp + 0x24]
push edi
mov dword [esp + 0x2c], eax
mov ax, word [0x496258]
mov dword [esp + 0x30], ecx
mov cl, byte [0x49625a]
push edx
xor ebp, ebp
push str.SYSTEMMountedDevices
push 0x80000002
mov word [esp + 0x44], ax
mov byte [esp + 0x46], cl
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44ca8f
mov byte [esp + 0x38], 0x41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
cmp edx, ebp
mov dword [esp + 0x10], edx
je 0x44ca84
mov edi, 0x4970cc
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + ebp + 0x2d8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test dl, 1
rep movsb byte es:[edi], byte [esi]
je 0x44ca64
lea ecx, [esp + 0x24]
lea edx, [esp + 0x148]
push ecx
lea eax, [esp + 0x44]
push edx
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push 0
push ecx
push edx
mov dword [esp + 0x58], 3
mov dword [esp + 0x3c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44ca64
mov ecx, dword [esp + 0x24]
test ecx, ecx
jbe 0x44ca4e
mov dl, byte [esp + eax + 0x148]
cmp dl, 0x23
jne 0x44ca3a
mov edx, eax
shr edx, 1
add edx, ebp
mov byte [esp + edx + 0x2d8], 0x5c
jmp 0x44ca47
mov esi, eax
shr esi, 1
add esi, ebp
mov byte [esp + esi + 0x2d8], dl
add eax, 2
cmp eax, ecx
jb 0x44ca1e
shr ecx, 1
add ecx, ebp
push ebx
mov byte [esp + ecx + 0x2dc], 0
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 4
mov dl, byte [esp + 0x38]
add ebp, 0xc8
inc dl
mov byte [esp + 0x38], dl
mov edx, dword [esp + 0x10]
shr edx, 1
mov dword [esp + 0x10], edx
jne 0x44c9ac
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x44caaf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1718
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CM_Get_Device_IDA
push edi
call esi
push str.CM_Get_Child_Ex
push edi
mov dword [esp + 0x24], eax
call esi
push str.CM_Get_Sibling
push edi
mov ebp, eax
call esi
mov ebx, dword [esp + 0x172c]
push 0
push 0
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov dword [esp + 0x4c], eax
call ebp
cmp eax, 0xd
jne 0x44caf3
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x48]
push 0x104
push edx
push eax
call dword [esp + 0x2c]
test eax, eax
jne 0x44cb55
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 4
xor esi, esi
lea edi, [esp + 0x2d8]
lea edx, [esp + 0x44]
push edx
push edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x44cb44
inc esi
add edi, 0xc8
cmp esi, 0x1a
jb 0x44cb23
jmp 0x44cb51
mov eax, 1
mov ecx, esi
shl eax, cl
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push ebx
push eax
call dword [esp + 0x48]
cmp eax, 0xd
jne 0x44cb6a
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call ebp
cmp eax, 0xd
jne 0x44cb87
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x48]
push 0x104
push ecx
push edx
call dword [esp + 0x2c]
test eax, eax
jne 0x44cbef
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 4
xor esi, esi
lea edi, [esp + 0x2d8]
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x44cbd8
inc esi
add edi, 0xc8
cmp esi, 0x1a
jb 0x44cbb7
jmp 0x44cbeb
mov eax, dword [esp + 0x18]
mov edx, 1
mov ecx, esi
shl edx, cl
or eax, edx
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1718
ret