Function at 0x1001c140
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x644]
sub esp, 0x644
push 0xffffffffffffffff
push 0x10064735
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1008a884]
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 [0x1006b2d4]
mov dword [ebp + 0x638], eax
mov ax, word [0x1006b2d8]
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 0x1001c3bf
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 0x1001c3a5
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 0x1001c220
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x1001c259
mov dword [ebp + 0x28], esi
lea eax, [ebp + 0x18]
add esi, esi
push esi
push edi
push eax
call fcn.100496c0
add esp, 0xc
xor eax, eax
mov word [ebp + esi + 0x18], ax
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
jmp 0x1001c2e8
cmp esi, 0x7ffffffe
ja 0x1001c4c1
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x1001c287
mov eax, 0xfffffffe
mov edi, 0x7ffffffe
push eax
call fcn.10001820
add esp, 4
jmp 0x1001c2c5
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x1001c4cb
add eax, eax
cmp eax, 0x1000
jb 0x1001c2b4
push eax
call fcn.10001820
add esp, 4
jmp 0x1001c2c5
test eax, eax
je 0x1001c2c3
push eax
call fcn.10046a4f
add esp, 4
jmp 0x1001c2c5
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.100496c0
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 0x1001c300
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 0x1001c35c
test ebx, ebx
jne 0x1001c32d
xor esi, esi
jmp 0x1001c35f
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 0x1001c356
mov cx, word [ebp + 0x430]
cmp word [esi], cx
je 0x1001c3e4
add esi, 2
sub eax, 1
jne 0x1001c345
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x2c]
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x1001c422
mov dword [ebp - 4], esi
cmp edx, 8
jb 0x1001c39f
lea ecx, [edx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1001c395
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c4c6
push ecx
push edi
call fcn.10046a7f
add esp, 8
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1001c3a5
movzx eax, word [ebx]
mov dword [ebp - 0x14], ebx
test ax, ax
jne 0x1001c1d0
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.10046da7
lea esp, [ebp + 0x644]
pop ebp
ret
lea ecx, [ebp + 0x430]
mov edx, ebx
test ebx, ebx
je 0x1001c407
mov edi, esi
mov eax, ecx
sub edi, eax
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x1001c417
add ecx, 2
sub edx, 1
jne 0x1001c3f6
sub esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x2c]
sar esi, 1
jmp 0x1001c35f
mov eax, dword [ebp - 0x1c]
add esi, 2
jmp 0x1001c338
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 0x1001c440
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.1001c5d0
lea ecx, [ebp]
call fcn.10001b40
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.1004f3fb
mov edx, dword [ebp + 0x2c]
add esp, 0xc
cmp edx, 8
jb 0x1001c4ba
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c4b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c4c6
push edx
push ecx
call fcn.10046a7f
add esp, 8
mov al, 1
jmp 0x1001c3c1
call fcn.10002410
call fcn.1004b97f
call fcn.100023f0
int3