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

Disassembly:
sub esp, 0x368
mov ecx, dword [0x4e8320]
mov eax, dword [str.CheckStorageDev__]
mov edx, dword [0x4e8324]
mov dword [esp + 0x18], ecx
mov cx, word [0x4e832c]
mov dword [esp + 0x14], eax
mov eax, dword [0x4e8328]
mov word [esp + 0x24], cx
mov ecx, dword [0x4fa4c8]
mov dword [esp + 0x20], eax
mov eax, dword [0x4fa4b8]
mov dword [esp + 0x1c], edx
test cl, 2
mov byte [esp + 3], 0
je 0x450f80
test al, 2
jne 0x450f84
call fcn.00453ee0
mov eax, dword [0x4fa4b8]
mov dword [0x4fa4c8], eax
test al, 2
je 0x450fac
test byte [0x4fa4c4], 4
je 0x450fac
test byte [0x4fa4b4], 4
jne 0x450fac
call fcn.00453ee0
mov edx, dword [0x4fa4b4]
mov eax, dword [0x4fa4b8]
mov dword [0x4fa4c4], edx
test ah, 8
je 0x450fb6
mov byte [esp + 3], 1
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
push 0x20019
push 0
push str.SYSTEMMountedDevices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x451017
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e82c8
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov edx, dword [0x4d2de4]
lea ecx, [esp + 0x34]
push 0x599
push ecx
push edx
call fcn.0044fa60
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x1c], eax
mov ebp, 0x41
test al, 1
je 0x45123b
push ebp
lea eax, [esp + 0x174]
push str._c:_
push eax
call fcn.00467d68
add esp, 0xc
lea ecx, [esp + 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x451077
test byte [0x4fa4b4], 2
je 0x45123b
lea edx, [esp + 0x170]
push edx
jmp 0x451230
cmp eax, 2
jne 0x4511f0
lea eax, [esp + 0x6c]
push 0x104
lea ecx, [esp + 0x174]
push eax
push ecx
call dword [0x4fa3e8]
test eax, eax
jne 0x4510b7
push 0x4e82b0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
push 0x5b7
jmp 0x451119
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x6d], 0x3f
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x6c]
mov dword [esp + 0x20], 3
mov byte [esp + ecx + 0x6b], al
lea ecx, [esp + 0x14]
push ecx
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x14]
add ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x451131
push 0x4e82a0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
push 0x5c4
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.0044fa60
add esp, 0x18
jmp 0x45123b
mov ecx, dword [esp + 0x14]
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 + 0x6c]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push esi
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
je 0x4511a9
lea ecx, [esp + 0x6c]
push ecx
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e828c
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x38]
push 0x5cc
push edx
push eax
call fcn.0044fa60
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x45123b
mov ecx, dword [0x4d2f84]
push ecx
push esi
call fcn.004694d5
add esp, 8
test eax, eax
mov al, byte [0x4fa4b4]
je 0x4511d0
test al, 1
je 0x4511e7
lea edx, [esp + 0x170]
push edx
jmp 0x4511dc
test al, 4
je 0x4511e7
lea eax, [esp + 0x170]
push eax
call dword [0x4fa3f0]
call fcn.00452420
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x45123b
cmp eax, 3
jne 0x45123b
push ebp
lea ecx, [esp + 0x3c]
push str.._c:
push ecx
call fcn.00467d68
mov al, byte [0x4fa4b4]
add esp, 0xc
test al, 4
mov byte [esp + 0x69], 0
je 0x45123b
lea edx, [esp + 0x38]
push edx
call fcn.00455a70
add esp, 4
cmp eax, 7
jne 0x45123b
lea eax, [esp + 0x170]
push eax
call dword [0x4fa3f0]
call fcn.00452420
mov eax, dword [esp + 0x1c]
inc ebp
shr eax, 1
lea ecx, [ebp - 0x41]
mov dword [esp + 0x1c], eax
cmp ecx, 0x1a
jl 0x45102c
lea edx, [esp + 0x6c]
push 0x104
push edx
mov dword [esp + 0x1c], 0x104
call dword [0x4fa400]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
jne 0x4512b8
push 0x4e82b0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov ecx, dword [0x4d2de4]
lea eax, [esp + 0x30]
push 0x5f7
push eax
push ecx
call fcn.0044fa60
mov edx, dword [esp + 0x30]
add esp, 0x18
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x451311
test byte [0x4fa4b4], 2
jne 0x451589
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
push eax
call fcn.00455920
movsx ecx, al
add esp, 8
lea edx, [esp + 0x170]
push ecx
push str._c:_
push edx
call fcn.00467d68
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push ecx
jmp 0x451583
cmp eax, 2
jne 0x45150b
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x274]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 3
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x274]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x274]
or ecx, 0xffffffff
mov byte [esp + 0x275], 0x3f
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x273], al
lea ecx, [esp + 0x14]
push ecx
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x14]
add ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4513c9
push 0x4e82a0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x30]
push 0x613
push edx
push eax
call fcn.0044fa60
add esp, 0x18
push ebp
jmp 0x451882
mov edx, dword [esp + 0x14]
xor eax, eax
mov edi, esi
lea ecx, [edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x274]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push esi
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
je 0x451448
lea ecx, [esp + 0x274]
push ecx
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e828c
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x38]
push 0x61d
push edx
push eax
call fcn.0044fa60
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
jmp 0x451882
mov edx, dword [0x4d2f84]
push edx
push esi
call fcn.004694d5
add esp, 8
test eax, eax
mov al, byte [0x4fa4b4]
je 0x4514b4
test al, 1
jne 0x4514fd
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 1
push eax
call fcn.00455920
movsx eax, al
add esp, 8
lea ecx, [esp + 0x170]
push eax
push str._c:_
push ecx
call fcn.00467d68
add esp, 0xc
lea edx, [esp + 0x6c]
lea eax, [esp + 0x170]
push edx
push eax
call dword [0x4fa408]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call ebp
jmp 0x45158f
test al, 4
jne 0x4514fd
mov al, byte [esp + 0x13]
test al, al
jne 0x4514fd
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
push eax
call fcn.00455920
movsx ecx, al
add esp, 8
lea edx, [esp + 0x170]
push ecx
push str._c:_
push edx
call fcn.00467d68
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push ecx
call dword [0x4fa408]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call ebp
jmp 0x45158f
cmp eax, 3
jne 0x451589
lea edx, [esp + 0x6c]
push 0x32
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00466df0
mov al, byte [0x4fa4b4]
add esp, 0xc
test al, 4
mov byte [esp + 0x68], 0
jne 0x451589
lea ecx, [esp + 0x38]
push ecx
call fcn.00455a70
add esp, 4
cmp eax, 7
jne 0x451589
mov al, byte [esp + 0x13]
test al, al
jne 0x451589
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
push eax
call fcn.00455920
movsx edx, al
add esp, 8
lea eax, [esp + 0x170]
push edx
push str._c:_
push eax
call fcn.00467d68
add esp, 0xc
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x170]
push ecx
push edx
call dword [0x4fa408]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push eax
push ecx
push esi
call dword [0x4fa410]
test eax, eax
je 0x451881
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x451605
test byte [0x4fa4b4], 2
jne 0x451864
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
push eax
call fcn.00455920
movsx eax, al
add esp, 8
lea ecx, [esp + 0x170]
push eax
push str._c:_
push ecx
call fcn.00467d68
add esp, 0xc
lea edx, [esp + 0x6c]
lea eax, [esp + 0x170]
push edx
push eax
jmp 0x45185e
cmp eax, 2
jne 0x4517e6
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x274]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 3
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x274]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x274]
or ecx, 0xffffffff
mov byte [esp + 0x275], 0x3f
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x273], al
lea ecx, [esp + 0x14]
push ecx
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x14]
add ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4516bc
push 0x4e82a0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x30]
push 0x65f
push edx
push eax
call fcn.0044fa60
add esp, 0x18
jmp 0x451864
mov ecx, dword [esp + 0x14]
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 + 0x274]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push esi
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
je 0x451736
lea ecx, [esp + 0x274]
push ecx
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e828c
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x38]
push 0x667
push edx
push eax
call fcn.0044fa60
add esp, 0x20
push esi
call ebp
jmp 0x451864
mov ecx, dword [0x4d2f84]
push ecx
push esi
call fcn.004694d5
add esp, 8
test eax, eax
mov al, byte [0x4fa4b4]
je 0x451798
test al, 1
jne 0x451790
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 1
push eax
call fcn.00455920
movsx edx, al
add esp, 8
lea eax, [esp + 0x170]
push edx
push str._c:_
push eax
call fcn.00467d68
add esp, 0xc
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x170]
push ecx
push edx
call dword [0x4fa408]
push esi
call ebp
jmp 0x451864
test al, 4
jne 0x4517e1
mov al, byte [esp + 0x13]
test al, al
jne 0x4517e1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
push eax
call fcn.00455920
movsx eax, al
add esp, 8
lea ecx, [esp + 0x170]
push eax
push str._c:_
push ecx
call fcn.00467d68
add esp, 0xc
lea edx, [esp + 0x6c]
lea eax, [esp + 0x170]
push edx
push eax
call dword [0x4fa408]
push esi
call ebp
jmp 0x451864
cmp eax, 3
jne 0x451864
lea ecx, [esp + 0x6c]
push 0x32
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00466df0
mov al, byte [0x4fa4b4]
add esp, 0xc
test al, 4
mov byte [esp + 0x68], 0
jne 0x451864
lea eax, [esp + 0x38]
push eax
call fcn.00455a70
add esp, 4
cmp eax, 7
jne 0x451864
mov al, byte [esp + 0x13]
test al, al
jne 0x451864
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
push eax
call fcn.00455920
movsx ecx, al
add esp, 8
lea edx, [esp + 0x170]
push ecx
push str._c:_
push edx
call fcn.00467d68
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push ecx
call dword [0x4fa408]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
push edx
push eax
push esi
call dword [0x4fa410]
test eax, eax
jne 0x4515ac
push esi
call dword [0x4fa414]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret