Function at 0x1001c660
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x644]
sub esp, 0x644
push 0xffffffffffffffff
push 0x10064c45
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1008b884]
xor eax, ebp
mov dword [ebp + 0x640], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x650]
mov edi, dword [ebp + 0x64c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1006c2f4]
mov dword [ebp + 0x638], eax
mov ax, word [0x1006c2f8]
mov word [ebp + 0x63c], ax
lea eax, [ebp + 0x30]
push eax
push 0x3ff
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1001c8df
movzx eax, word [ebp + 0x30]
lea ebx, [ebp + 0x30]
mov dword [ebp - 0x14], ebx
nop dword [eax]
nop dword [eax + eax]
mov word [ebp + 0x638], ax
lea eax, [ebp + 0x430]
push 0x104
push eax
lea eax, [ebp + 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1001c8c5
mov esi, edi
mov dword [ebp + 0x18], 0
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001c740
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x1001c779
mov dword [ebp + 0x28], esi
lea eax, [ebp + 0x18]
add esi, esi
push esi
push edi
push eax
call fcn.10049bd0
add esp, 0xc
xor eax, eax
mov word [ebp + esi + 0x18], ax
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
jmp 0x1001c808
cmp esi, 0x7ffffffe
ja 0x1001c9e1
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x1001c7a7
mov eax, 0xfffffffe
mov edi, 0x7ffffffe
push eax
call fcn.10001820
add esp, 4
jmp 0x1001c7e5
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x1001c9eb
add eax, eax
cmp eax, 0x1000
jb 0x1001c7d4
push eax
call fcn.10001820
add esp, 4
jmp 0x1001c7e5
test eax, eax
je 0x1001c7e3
push eax
call fcn.10046f5f
add esp, 4
jmp 0x1001c7e5
xor eax, eax
mov dword [ebp + 0x28], esi
add esi, esi
push esi
push dword [ebp - 0x18]
mov dword [ebp + 0x2c], edi
mov edi, eax
push edi
mov dword [ebp - 0x10], eax
call fcn.10049bd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp + 0x18], edi
lea ebx, [ebp + 0x430]
mov dword [ebp - 4], 0
lea ecx, [ebx + 2]
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1001c820
mov edx, dword [ebp + 0x2c]
sub ebx, ecx
mov eax, dword [ebp + 0x28]
lea ecx, [ebp + 0x18]
sar ebx, 1
cmp edx, 8
cmovae ecx, edi
mov dword [ebp - 0x20], ecx
cmp ebx, eax
ja 0x1001c87c
test ebx, ebx
jne 0x1001c84d
xor esi, esi
jmp 0x1001c87f
sub eax, ebx
mov esi, ecx
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x1c], eax
sub eax, esi
sar eax, 1
je 0x1001c876
mov cx, word [ebp + 0x430]
cmp word [esi], cx
je 0x1001c904
add esi, 2
sub eax, 1
jne 0x1001c865
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x2c]
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x1001c942
mov dword [ebp - 4], esi
cmp edx, 8
jb 0x1001c8bf
lea ecx, [edx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1001c8b5
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c9e6
push ecx
push edi
call fcn.10046f8f
add esp, 8
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1001c8c5
movzx eax, word [ebx]
mov dword [ebp - 0x14], ebx
test ax, ax
jne 0x1001c6f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x640]
xor ecx, ebp
call fcn.100472b7
lea esp, [ebp + 0x644]
pop ebp
ret
lea ecx, [ebp + 0x430]
mov edx, ebx
test ebx, ebx
je 0x1001c927
mov edi, esi
mov eax, ecx
sub edi, eax
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x1001c937
add ecx, 2
sub edx, 1
jne 0x1001c916
sub esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x2c]
sar esi, 1
jmp 0x1001c87f
mov eax, dword [ebp - 0x1c]
add esi, 2
jmp 0x1001c858
lea eax, [ebp + 0x430]
push eax
lea ecx, [ebp]
call fcn.10001850
mov edx, eax
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
mov byte [ebp - 4], 1
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001c960
mov eax, dword [edx + 0x10]
sub ecx, edi
sar ecx, 1
inc eax
push ecx
push ebx
push eax
push esi
lea ecx, [ebp + 0x18]
call fcn.1001caf0
lea ecx, [ebp]
call fcn.10001b50
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0x654]
push dword [ebp - 0x24]
call fcn.1004f909
mov edx, dword [ebp + 0x2c]
add esp, 0xc
cmp edx, 8
jb 0x1001c9da
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c9d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c9e6
push edx
push ecx
call fcn.10046f8f
add esp, 8
mov al, 1
jmp 0x1001c8e1
call fcn.100024c0
call fcn.1004be8f
call fcn.100024a0
int3