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

Disassembly:
push ebp
sub esp, 0x204
lea ebp, [esp - 4]
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp + 0x204], eax
push 0x28
mov eax, 0x41d038
call fcn.0040d80d
mov eax, ecx
lea ecx, [eax + 0x18]
mov dword [ebp - 0x30], ecx
call fcn.0040ab78
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
mov eax, dword [0x425488]
mov ecx, dword [eax]
mov esi, str.CUDFindDeviceMgr::EnumVolumeInfo__
push esi
push str._s_start
push eax
call dword [ecx + 4]
add esp, 0x10
and dword [ebp - 0x14], 0
mov edi, 0x427bf0
push edi
lea ecx, [ebp - 0x10]
call fcn.00403187
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x18]
call fcn.00403187
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
xor edi, edi
add bl, 0x41
movsx eax, bl
inc edi
push eax
shl edi, cl
lea eax, [ebp - 0x10]
push str.DosDevices_c:
push eax
and edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00405d75
add esp, 0xc
test edi, edi
je 0x40b429
movsx eax, bl
push eax
lea eax, [ebp - 0x18]
push str._c:_
push eax
call fcn.00405d75
mov edi, dword [ebp - 0x18]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x40b32d
cmp eax, 5
je 0x40b32d
lea ecx, [edi - 0x10]
jmp 0x40b42f
lea eax, [ebp - 0x34]
push eax
push 0x20019
xor edi, edi
push edi
push str.SYSTEMMountedDevices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40b429
push 0x202
lea eax, [ebp]
push edi
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0x200
call fcn.0040d0d0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x40b429
lea eax, [ebp]
push eax
call fcn.0040fd9c
pop ecx
cmp eax, 2
jbe 0x40b3ab
cmp word [ebp], 0x5c
jne 0x40b3ab
push 0x5c
pop eax
mov word [ebp + 2], ax
lea ecx, [ebp - 0x24]
call fcn.004097ea
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov byte [ebp - 0x24], bl
call fcn.00405aba
mov eax, dword [0x425488]
mov ecx, dword [eax]
push esi
push str._s_______Volume_Info______
push eax
call dword [ecx + 4]
movsx edx, byte [ebp - 0x24]
mov eax, dword [0x425488]
mov ecx, dword [eax]
push edx
push esi
push str._s_DriveLetter:_c
push eax
call dword [ecx + 4]
push dword [ebp - 0x20]
mov eax, dword [0x425488]
mov ecx, dword [eax]
push esi
push str._s_DevicePath:_s
push eax
call dword [ecx + 4]
mov eax, dword [0x425488]
mov ecx, dword [eax]
push esi
push str._s________________________
push eax
call dword [ecx + 4]
mov ecx, dword [ebp - 0x30]
add esp, 0x38
lea eax, [ebp - 0x24]
push eax
call fcn.0040b203
lea ecx, [ebp - 0x24]
call fcn.004096c8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025f9
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004025f9
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x19
jle 0x40b2b0
push dword [ebp - 0x1c]
mov eax, dword [0x425488]
mov ecx, dword [eax]
push esi
push str._s_end
push eax
call dword [ecx + 4]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x204]
xor ecx, ebp
call fcn.0040d418
add ebp, 0x208
leave
ret