Function at 0x458cb4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.00458904
test al, al
je 0x45912d
mov eax, esi
call fcn.004546e8
test eax, eax
je 0x45912d
lea edx, [ebp - 0x5e]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea edx, [ebp - 0x5e]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x90]
lea eax, [ebp - 0x5e]
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
test eax, eax
jne 0x45912d
mov eax, dword [esi + 0x78]
mov edx, 2
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x56]
sub edx, dword [ebp - 0x5e]
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x78]
mov edx, 3
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x52]
sub edx, dword [ebp - 0x5a]
sub eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x78]
mov edx, 2
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x56]
sub edx, dword [ebp - 0x5e]
sub eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x78]
mov edx, 3
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x52]
sub edx, dword [ebp - 0x5a]
sub eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jle 0x458d7b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub dword [eax], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jle 0x458d8b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub dword [eax], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jle 0x458d9b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
sub dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jle 0x458dab
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
sub dword [eax], edx
xor eax, eax
push ebp
push 0x459126
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.004546e8
mov edi, eax
dec edi
test edi, edi
jl 0x459050
inc edi
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004546ac
mov ebx, eax
cmp byte [ebx + 0x57], 0
jne 0x458e21
test byte [ebx + 0x1c], 0x10
je 0x459046
test byte [ebx + 0x51], 4
jne 0x459046
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00458bf0
movzx eax, byte [ebx + 0x5b]
sub al, 1
jb 0x458e54
sub al, 2
jb 0x458e48
sub al, 2
je 0x458e4e
jmp 0x458eb7
mov byte [ebp - 0x4d], 1
jmp 0x458ebb
mov byte [ebp - 0x4d], 2
jmp 0x458ebb
movzx eax, byte [ebx + 0x61]
and al, byte [0x459138]
movzx edx, byte [0x459138]
cmp dl, al
jne 0x458eb1
mov byte [ebp - 0x4d], 1
cmp dword [ebp - 0x40], 0
jle 0x458e8e
mov eax, dword [ebx + 0x78]
mov edx, 2
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x56]
sub edx, dword [ebp - 0x5e]
sub edx, eax
sub edx, dword [ebp - 0x40]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x44], 0
jle 0x458ebb
mov eax, dword [ebx + 0x78]
mov edx, 2
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x56]
sub edx, dword [ebp - 0x5e]
add edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x44], edx
jmp 0x458ebb
mov byte [ebp - 0x4d], 0
jmp 0x458ebb
mov byte [ebp - 0x4d], 3
movzx eax, byte [ebx + 0x5b]
sub al, 1
jb 0x458ed9
add al, 0xfe
sub al, 2
jb 0x458ecd
je 0x458ed3
jmp 0x458f3c
mov byte [ebp - 0x4e], 1
jmp 0x458f40
mov byte [ebp - 0x4e], 2
jmp 0x458f40
movzx eax, byte [ebx + 0x61]
and al, byte [0x45913c]
movzx edx, byte [0x45913c]
cmp dl, al
jne 0x458f36
mov byte [ebp - 0x4e], 1
cmp dword [ebp - 0x48], 0
jle 0x458f13
mov eax, dword [ebx + 0x78]
mov edx, 3
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x52]
sub edx, dword [ebp - 0x5a]
sub edx, eax
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x4c], 0
jle 0x458f40
mov eax, dword [ebx + 0x78]
mov edx, 3
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x52]
sub edx, dword [ebp - 0x5a]
add edx, dword [ebp - 0x4c]
sub edx, eax
mov dword [ebp - 0x4c], edx
jmp 0x458f40
mov byte [ebp - 0x4e], 0
jmp 0x458f40
mov byte [ebp - 0x4e], 3
movzx eax, byte [ebp - 0x4d]
dec eax
sub al, 2
jb 0x458f4d
je 0x458fa3
jmp 0x458fc3
cmp dword [ebp - 0x40], 0
jle 0x458f77
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jge 0x458f77
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jle 0x458f77
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x44], 0
jle 0x458fc3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
jle 0x458fc3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x44]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jle 0x458fc3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x458fc3
mov eax, dword [ebx + 0x78]
mov edx, 2
mov ecx, dword [eax]
call dword [ecx + 0x10]
add dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x78]
mov edx, 2
mov ecx, dword [eax]
call dword [ecx + 0x10]
add dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x4e]
dec eax
sub al, 2
jb 0x458fd0
je 0x459026
jmp 0x459046
cmp dword [ebp - 0x48], 0
jle 0x458ffa
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x48]
jge 0x458ffa
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jle 0x458ffa
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x4c], 0
jle 0x459046
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
jle 0x459046
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x4c]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jle 0x459046
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
jmp 0x459046
mov eax, dword [ebx + 0x78]
mov edx, 3
mov ecx, dword [eax]
call dword [ecx + 0x10]
add dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x78]
mov edx, 3
mov ecx, dword [eax]
call dword [ecx + 0x10]
add dword [ebp - 0x3c], eax
inc dword [ebp - 0x1c]
dec edi
jne 0x458dfb
cmp dword [ebp - 0x20], 0
jle 0x45906e
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
cmp eax, dword [edx]
jle 0x45906e
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov dword [edx], eax
cmp dword [ebp - 0x24], 0
jle 0x459094
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x459089
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx]
jle 0x459094
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
cmp dword [ebp - 0x28], 0
jle 0x4590b2
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
cmp eax, dword [edx]
jle 0x4590b2
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dword [edx], eax
cmp dword [ebp - 0x2c], 0
jle 0x4590d8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4590cd
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
cmp eax, dword [edx]
jle 0x4590d8
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45912d
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jle 0x4590f5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add dword [eax], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jle 0x459105
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
add dword [eax], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jle 0x459115
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
add dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jle 0x459125
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
add dword [eax], edx
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8