Function at 0x456d7d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40000d
mov ecx, ebx
call fcn.004465d3
push 0xca
lea ecx, [ebp - 0x1c]
call fcn.004465ac
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x18]
movsx edi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 0x14], eax
xor eax, eax
and esi, 0x200
cmp word [ebp + 0xc], ax
mov dword [ebp - 0x18], esi
setne al
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
mov dword [ebp + 0x18], edi
setne cl
test esi, esi
mov byte [ebp - 1], 0
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x10], eax
jne 0x456e9f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [ebx]
test edi, edi
setge dl
test edi, edi
mov dword [ebp - 0xc], eax
lea edx, [edx + edx - 1]
mov byte [ebp + 0x1b], dl
jge 0x456e08
mov dword [ebp - 8], 0x19
jmp 0x456e0c
and dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x456e1f
cmp dword [ebp + 0x14], 1
not dword [ebp - 0xc]
jle 0x456e1f
and dword [ebp - 0xc], 0xfffffffc
cmp dword [ebp - 8], 0x1a
jge 0x456e96
jmp 0x456e2a
mov dl, byte [ebp + 0x1b]
cmp dword [ebp - 8], 0
jl 0x456e96
mov ecx, dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov bl, cl
movsx ecx, dl
add dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
add bl, 0x41
test ecx, eax
je 0x456e8d
cmp dword [ebp - 0x14], 0
je 0x456e5f
movsx ax, bl
push eax
call fcn.004b3ac8
test eax, eax
pop ecx
je 0x456e8d
cmp byte [ebp - 1], 0
je 0x456e73
mov ax, word [ebp + 0xc]
test ax, ax
je 0x456e73
mov word [esi], ax
inc esi
inc esi
movsx ax, bl
mov word [esi], ax
inc esi
inc esi
cmp dword [ebp + 0x10], 0
mov byte [ebp - 1], 1
je 0x456e8d
mov word [esi], 0x3a
inc esi
inc esi
cmp dword [ebp - 8], 0x1a
mov ebx, dword [ebp + 8]
jl 0x456e27
and word [esi], 0
jmp 0x45704a
mov esi, dword [ebx]
push 0x1ffffe
lea edi, [esi + 0x400008]
xor eax, eax
push edi
mov dword [edi], eax
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
lea ecx, [edi + eax*2]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jle 0x456f36
cmp edi, ecx
jae 0x456f36
movzx ebx, word [edi]
inc edi
inc edi
test ebx, ebx
je 0x456f1c
cmp word [edi], 0x3a
jne 0x456f1c
cmp word [edi + 2], 0
jne 0x456f1c
cmp dword [ebp - 0x14], 0
je 0x456ef2
push ebx
call fcn.004b3ac8
test eax, eax
pop ecx
je 0x456f1c
cmp byte [ebp - 1], 0
je 0x456f06
mov ax, word [ebp + 0xc]
test ax, ax
je 0x456f06
mov word [esi], ax
inc esi
inc esi
mov word [esi], bx
inc esi
inc esi
cmp dword [ebp + 0x10], 0
mov byte [ebp - 1], 1
je 0x456f1c
mov word [esi], 0x3a
inc esi
inc esi
xor eax, eax
jmp 0x456f22
inc edi
inc edi
cmp word [edi], ax
jne 0x456f20
inc edi
inc edi
cmp word [edi], ax
je 0x456f33
cmp edi, dword [ebp - 0xc]
jb 0x456ecb
mov ebx, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
mov word [esi], cx
je 0x456fef
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
je 0x456fef
cmp word [eax], cx
mov edi, dword [ebx]
mov esi, eax
je 0x456f79
xor eax, eax
mov ax, word [esi]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
test eax, eax
je 0x456f6e
mov word [esi], 0x2a
inc esi
inc esi
cmp word [esi], 0
jne 0x456f58
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
mov esi, dword [ebx]
mov byte [ebp - 1], 0
mov edi, eax
je 0x456feb
mov cx, word [edi]
movzx eax, cx
cmp eax, 0x2a
je 0x456fe3
cmp dword [ebp + 0x14], 1
jle 0x456fa5
and eax, 0xffffffdf
cmp eax, 0x41
je 0x456fe3
cmp eax, 0x42
je 0x456fe3
cmp dword [ebp - 0x14], 0
je 0x456fb6
push ecx
call fcn.004b3ac8
test eax, eax
pop ecx
je 0x456fe3
cmp byte [ebp - 1], 0
je 0x456fca
mov ax, word [ebp + 0xc]
test ax, ax
je 0x456fca
mov word [esi], ax
inc esi
inc esi
mov ax, word [edi]
mov word [esi], ax
inc esi
inc esi
cmp dword [ebp + 0x10], 0
mov byte [ebp - 1], 1
je 0x456fe3
mov word [esi], 0x3a
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x456f87
and word [esi], 0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx]
add edi, edi
mov edx, esi
sub edx, edi
cmp dword [ebp + 0x18], 0
je 0x45704a
cmp dword [ebp - 8], 0
je 0x45704a
jmp 0x457046
lea ecx, [edi + eax]
cmp ecx, esi
mov dword [ebp + 0x10], ecx
jae 0x457043
mov di, word [eax]
movzx ebx, word [ecx]
movzx edi, di
mov dword [ebp + 0xc], ebx
sub ebx, edi
imul ebx, dword [ebp + 0x18]
test ebx, ebx
jge 0x457035
mov di, word [eax]
mov word [ecx], di
mov di, word [ebp + 0xc]
mov word [eax], di
mov edi, dword [ebp - 0x10]
add edi, edi
add ecx, edi
cmp ecx, esi
jb 0x457012
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edx
jb 0x457008
xor eax, eax
cmp dword [ebp + 0x1c], eax
je 0x4570a5
cmp dword [ebp - 0x18], eax
je 0x45705b
cmp dword [ebp + 0x14], eax
jne 0x4570a5
lea eax, [esi + 2]
mov esi, dword [ebx]
xor ecx, ecx
mov cx, word [esi]
test cx, cx
je 0x4570a5
mov edi, dword [ebp - 0x10]
add edi, edi
sub eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push ecx
push dword [ebp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
test eax, eax
je 0x457087
add esi, edi
jmp 0x45709d
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
push esi
call fcn.004147ef
add esp, 0xc
sub dword [ebp + 0xc], edi
mov cx, word [esi]
test cx, cx
jne 0x457075
mov ebx, dword [ebx]
lea ecx, [ebp - 0x1c]
call fcn.0043fe25
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret