Function at 0x1001c152
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e00d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push esi
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x1001c1ac
lea eax, [ebp + 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
push 1
push dword [ebp - 0x98]
push 0x6ee0
push 0x2e06
mov eax, dword [ebp - 0x68]
push dword [eax]
call fcn.1001c574
add esp, 0x14
jmp 0x1001c565
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x1001c53a
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x80], 0x149e
cmp dword [ebp - 0x80], 0x7bd
jge 0x1001c3cd
mov dword [ebp - 0xd4], 0x6f
and dword [ebp - 0xb4], 0
lea eax, [ebp - 0xb4]
push eax
push 0x6f
lea ecx, [ebp - 0xc4]
call fcn.1002109d
and dword [ebp - 4], 0
and dword [ebp - 0x88], 0
lea eax, [ebp - 0x88]
push eax
push 0x6f
lea ecx, [ebp - 0xd0]
call fcn.1002109d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
push 0x10007740
call fcn.100569b2
pop ecx
pop ecx
and dword [ebp - 0x34], 0
jmp 0x1001c293
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jge 0x1001c305
lea eax, [ebp - 0x18]
push eax
push 0x10007740
call fcn.100569b2
pop ecx
pop ecx
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x18], 0
je 0x1001c303
push dword [ebp - 0x18]
lea ecx, [ebp - 0xc4]
call fcn.10009f14
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0xd0]
call fcn.10009f14
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
jmp 0x1001c2af
jmp 0x1001c28c
mov dword [ebp - 0x10], 0x6f
mov dword [ebp - 0x20], 0x6e
jmp 0x1001c31c
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x1001c341
push dword [ebp - 0x20]
lea ecx, [ebp - 0xc4]
call fcn.10009f14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jne 0x1001c33f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x1001c341
jmp 0x1001c315
push dword [ebp - 0x10]
lea ecx, [ebp - 0xd0]
call fcn.10009f14
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x6f
jge 0x1001c3a0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc4]
call fcn.10009f14
mov eax, dword [eax]
shl eax, 1
cmp eax, dword [ebp - 0x24]
jl 0x1001c3a0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc4]
call fcn.10009f14
mov eax, dword [eax]
shl eax, 1
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
jmp 0x1001c35c
push dword [ebp - 0x2c]
push 0x10007798
call fcn.10056b5a
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.10009ef8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.10009ef8
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1001c428
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jg 0x1001c538
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.10009f14
cmp dword [eax], 0xfffffffc
jge 0x1001c44c
mov dword [ebp - 0x50], 1
jmp 0x1001c450
and dword [ebp - 0x50], 0
imul eax, dword [ebp - 0x50], 0x7f6a
mov ecx, dword [ebp - 0x54]
cmp eax, dword [ecx]
jg 0x1001c467
mov dword [ebp - 0x38], 1
jmp 0x1001c46b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
cmp eax, dword [ecx]
jge 0x1001c486
mov dword [ebp - 0x58], 1
jmp 0x1001c48a
and dword [ebp - 0x58], 0
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.10009f14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x58]
jne 0x1001c4a4
mov dword [ebp - 0x3c], 1
jmp 0x1001c4a8
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jg 0x1001c4bb
mov dword [ebp - 0x44], 1
jmp 0x1001c4bf
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10009f14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
je 0x1001c4dc
mov dword [ebp - 0x4c], 1
jmp 0x1001c4e0
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10009f14
mov ecx, dword [ebp - 0x4c]
neg ecx
mov esi, dword [eax]
sub esi, ecx
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.10009f14
imul esi, dword [eax]
test esi, esi
jne 0x1001c515
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x1001c515
and dword [ebp - 0x5c], 0
jmp 0x1001c51c
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x54]
mov esi, dword [eax]
add esi, dword [ebp - 0x5c]
push 0
mov ecx, dword [ebp - 0x94]
call fcn.10009f14
mov dword [eax], esi
jmp 0x1001c41d
jmp 0x1001c565
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x1001c565
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret