Function at 0x417050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ad78
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0040f5e0
movzx eax, byte [0x483528]
test eax, eax
jne 0x4171d7
mov ecx, dword [ebp + 8]
call fcn.0040f5e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4170ae
xor al, al
jmp 0x4172ed
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004138d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00437500
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 0x4170e5
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jbe 0x417100
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041b0a0
mov al, byte [ebp - 0xd]
jmp 0x4172ed
lea ecx, [ebp - 0x54]
call fcn.0040fd70
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
jmp 0x417125
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x28]
jae 0x417191
lea ecx, [ebp - 0x18]
call fcn.00437500
mov ecx, dword [ebp - 0x14]
movsx edx, byte [eax + ecx]
test edx, edx
jne 0x41718f
lea ecx, [ebp - 0x18]
call fcn.00437500
add eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.00410140
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.004119b0
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.0040f520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.0041b0a0
jmp 0x41711c
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x28]
jne 0x4171a2
mov dword [ebp - 0x3c], 1
jmp 0x4171a9
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.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041b0a0
mov al, byte [ebp - 0xe]
jmp 0x4172ed
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4171f1
xor al, al
jmp 0x4172ed
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00413910
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00437500
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 0x417228
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jbe 0x417243
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041b0a0
mov al, byte [ebp - 0xf]
jmp 0x4172ed
lea ecx, [ebp - 0x60]
call fcn.00410050
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
jmp 0x417268
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x30]
jae 0x4172b1
lea ecx, [ebp - 0x20]
call fcn.00437500
mov ecx, dword [ebp - 0x1c]
movzx edx, word [eax + ecx*2]
test edx, edx
jne 0x4172af
lea ecx, [ebp - 0x20]
call fcn.00437500
mov ecx, dword [ebp - 0x38]
lea edx, [eax + ecx*2]
push edx
lea ecx, [ebp - 0x60]
call fcn.00410340
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.0040f520
jmp 0x41725f
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x30]
jne 0x4172c2
mov dword [ebp - 0x40], 1
jmp 0x4172c9
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.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041b0a0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4