Function at 0x445d30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f49d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x482008]
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 [0x4842c9]
test eax, eax
jne 0x445eb7
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 0x445d8e
xor al, al
jmp 0x445fcd
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004012b0
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 0x445dc5
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jbe 0x445de0
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011d0
mov al, byte [ebp - 0xd]
jmp 0x445fcd
lea ecx, [ebp - 0x54]
call fcn.00442910
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
jmp 0x445e05
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x28]
jae 0x445e71
lea ecx, [ebp - 0x18]
call fcn.004012b0
mov ecx, dword [ebp - 0x14]
movsx edx, byte [eax + ecx]
test edx, edx
jne 0x445e6f
lea ecx, [ebp - 0x18]
call fcn.004012b0
add eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.00442d40
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.004413d0
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.00401550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.004011d0
jmp 0x445dfc
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x28]
jne 0x445e82
mov dword [ebp - 0x3c], 1
jmp 0x445e89
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.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011d0
mov al, byte [ebp - 0xe]
jmp 0x445fcd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x445ed1
xor al, al
jmp 0x445fcd
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402820
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004012b0
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 0x445f08
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jbe 0x445f23
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004011d0
mov al, byte [ebp - 0xf]
jmp 0x445fcd
lea ecx, [ebp - 0x60]
call fcn.00442b50
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
jmp 0x445f48
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x30]
jae 0x445f91
lea ecx, [ebp - 0x20]
call fcn.004012b0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [eax + ecx*2]
test edx, edx
jne 0x445f8f
lea ecx, [ebp - 0x20]
call fcn.004012b0
mov ecx, dword [ebp - 0x38]
lea edx, [eax + ecx*2]
push edx
lea ecx, [ebp - 0x60]
call fcn.00442bb0
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.00401550
jmp 0x445f3f
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x30]
jne 0x445fa2
mov dword [ebp - 0x40], 1
jmp 0x445fa9
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.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004011d0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4