Function at 0x1005697d
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.10046168
push 0xca
lea ecx, [ebp - 0x1c]
call fcn.10046141
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 0x10056a9f
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 0x10056a08
mov dword [ebp - 8], 0x19
jmp 0x10056a0c
and dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x10056a1f
cmp dword [ebp + 0x14], 1
not dword [ebp - 0xc]
jle 0x10056a1f
and dword [ebp - 0xc], 0xfffffffc
cmp dword [ebp - 8], 0x1a
jge 0x10056a96
jmp 0x10056a2a
mov dl, byte [ebp + 0x1b]
cmp dword [ebp - 8], 0
jl 0x10056a96
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 0x10056a8d
cmp dword [ebp - 0x14], 0
je 0x10056a5f
movsx ax, bl
push eax
call fcn.100b3696
test eax, eax
pop ecx
je 0x10056a8d
cmp byte [ebp - 1], 0
je 0x10056a73
mov ax, word [ebp + 0xc]
test ax, ax
je 0x10056a73
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 0x10056a8d
mov word [esi], 0x3a
inc esi
inc esi
cmp dword [ebp - 8], 0x1a
mov ebx, dword [ebp + 8]
jl 0x10056a27
and word [esi], 0
jmp 0x10056c4a
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 0x10056b36
cmp edi, ecx
jae 0x10056b36
movzx ebx, word [edi]
inc edi
inc edi
test ebx, ebx
je 0x10056b1c
cmp word [edi], 0x3a
jne 0x10056b1c
cmp word [edi + 2], 0
jne 0x10056b1c
cmp dword [ebp - 0x14], 0
je 0x10056af2
push ebx
call fcn.100b3696
test eax, eax
pop ecx
je 0x10056b1c
cmp byte [ebp - 1], 0
je 0x10056b06
mov ax, word [ebp + 0xc]
test ax, ax
je 0x10056b06
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 0x10056b1c
mov word [esi], 0x3a
inc esi
inc esi
xor eax, eax
jmp 0x10056b22
inc edi
inc edi
cmp word [edi], ax
jne 0x10056b20
inc edi
inc edi
cmp word [edi], ax
je 0x10056b33
cmp edi, dword [ebp - 0xc]
jb 0x10056acb
mov ebx, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
mov word [esi], cx
je 0x10056bef
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
je 0x10056bef
cmp word [eax], cx
mov edi, dword [ebx]
mov esi, eax
je 0x10056b79
xor eax, eax
mov ax, word [esi]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
test eax, eax
je 0x10056b6e
mov word [esi], 0x2a
inc esi
inc esi
cmp word [esi], 0
jne 0x10056b58
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
mov esi, dword [ebx]
mov byte [ebp - 1], 0
mov edi, eax
je 0x10056beb
mov cx, word [edi]
movzx eax, cx
cmp eax, 0x2a
je 0x10056be3
cmp dword [ebp + 0x14], 1
jle 0x10056ba5
and eax, 0xffffffdf
cmp eax, 0x41
je 0x10056be3
cmp eax, 0x42
je 0x10056be3
cmp dword [ebp - 0x14], 0
je 0x10056bb6
push ecx
call fcn.100b3696
test eax, eax
pop ecx
je 0x10056be3
cmp byte [ebp - 1], 0
je 0x10056bca
mov ax, word [ebp + 0xc]
test ax, ax
je 0x10056bca
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 0x10056be3
mov word [esi], 0x3a
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x10056b87
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 0x10056c4a
cmp dword [ebp - 8], 0
je 0x10056c4a
jmp 0x10056c46
lea ecx, [edi + eax]
cmp ecx, esi
mov dword [ebp + 0x10], ecx
jae 0x10056c43
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 0x10056c35
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 0x10056c12
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edx
jb 0x10056c08
xor eax, eax
cmp dword [ebp + 0x1c], eax
je 0x10056ca5
cmp dword [ebp - 0x18], eax
je 0x10056c5b
cmp dword [ebp + 0x14], eax
jne 0x10056ca5
lea eax, [esi + 2]
mov esi, dword [ebx]
xor ecx, ecx
mov cx, word [esi]
test cx, cx
je 0x10056ca5
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 0x10056c87
add esi, edi
jmp 0x10056c9d
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
push esi
call fcn.100144b5
add esp, 0xc
sub dword [ebp + 0xc], edi
mov cx, word [esi]
test cx, cx
jne 0x10056c75
mov ebx, dword [ebx]
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret