Function at 0x46d210
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4986a8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00401460
movzx eax, byte [0x4b92e1]
test eax, eax
jne 0x46d397
mov ecx, dword [ebp + 8]
call fcn.00401460
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x46d26e
xor al, al
jmp 0x46d4ad
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402980
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401380
push eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x46d2a5
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jbe 0x46d2c0
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004012a0
mov al, byte [ebp - 0xd]
jmp 0x46d4ad
lea ecx, [ebp - 0x54]
call fcn.00469de0
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
jmp 0x46d2e5
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x28]
jae 0x46d351
lea ecx, [ebp - 0x18]
call fcn.00401380
mov ecx, dword [ebp - 0x14]
movsx edx, byte [eax + ecx]
test edx, edx
jne 0x46d34f
lea ecx, [ebp - 0x18]
call fcn.00401380
add eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.0046a210
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.004688a0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.004012a0
jmp 0x46d2dc
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x28]
jne 0x46d362
mov dword [ebp - 0x3c], 1
jmp 0x46d369
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004012a0
mov al, byte [ebp - 0xe]
jmp 0x46d4ad
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x46d3b1
xor al, al
jmp 0x46d4ad
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402930
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401380
push eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x46d3e8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jbe 0x46d403
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004012a0
mov al, byte [ebp - 0xf]
jmp 0x46d4ad
lea ecx, [ebp - 0x60]
call fcn.0046a020
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
jmp 0x46d428
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x30]
jae 0x46d471
lea ecx, [ebp - 0x20]
call fcn.00401380
mov ecx, dword [ebp - 0x1c]
movzx edx, word [eax + ecx*2]
test edx, edx
jne 0x46d46f
lea ecx, [ebp - 0x20]
call fcn.00401380
mov ecx, dword [ebp - 0x38]
lea edx, [eax + ecx*2]
push edx
lea ecx, [ebp - 0x60]
call fcn.0046a080
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401560
jmp 0x46d41f
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x30]
jne 0x46d482
mov dword [ebp - 0x40], 1
jmp 0x46d489
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x10], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004012a0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4