Function at 0x10002560
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1001db8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x504
mov al, byte [esp + 3]
push ebx
mov dword [esp + 0x30], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.10001ba0
mov edi, 0x10055ad8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10055ad8
lea ecx, [esp + 0x1c]
call fcn.10001d90
mov dword [esp + 0x514], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x64], edx
jne 0x100025fa
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x518], 0xffffffff
call fcn.10001ba0
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x504]
mov dword fs:[0], ecx
add esp, 0x510
ret
xor ecx, ecx
push ebp
push esi
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], ebx
mov dword [esp + 0x40], ecx
mov eax, edx
shr eax, cl
cmp eax, ebx
je 0x10002bda
test al, 1
je 0x10002bcc
mov al, byte [esp + 0x13]
xor edx, edx
add cl, 0x41
mov dword [esp + 0x14], edx
mov byte [esp + 0x14], cl
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x1c], dl
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], dl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x50], al
call fcn.10001ba0
mov edi, 0x10055ad8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x50]
push ebp
call fcn.10001e50
test al, al
je 0x1000269c
mov edi, dword [esp + 0x50]
mov ecx, ebp
mov edx, ecx
mov esi, 0x10055ad8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
call fcn.10001e30
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x520], 1
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x30], al
call fcn.10001ba0
mov edi, 0x10055ad8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10055ad8
lea ecx, [esp + 0x34]
call fcn.10001d90
mov al, byte [esp + 0x14]
mov byte [esp + 0x51c], 2
cmp al, 0x41
je 0x10002b61
cmp al, 0x42
je 0x10002b61
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x74], cl
lea ecx, [esp + 0x74]
call fcn.10001ba0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.10001d90
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
mov byte [esp + 0x534], 3
call fcn.10010070
add esp, 0x18
lea ecx, [esp + 0x70]
mov bl, al
mov byte [esp + 0x51c], 2
push 1
call fcn.10001ba0
test bl, bl
je 0x100028d8
mov al, byte [esp + 0x44]
test al, 4
je 0x100027b6
mov edi, str.NetworkDisk
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291c
mov ecx, ebp
mov esi, str.NetworkDisk
jmp 0x10002900
test al, 3
je 0x100027f8
mov edi, str.HardDisk
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291c
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, str.HardDisk
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x1000290d
test al, 2
je 0x1000282d
mov edi, str.RemoveableDisk
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291c
mov ecx, ebp
mov esi, str.RemoveableDisk
jmp 0x10002900
test al, 5
je 0x1000286f
mov edi, 0x10024254
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291c
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, 0x10024254
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x1000290d
test al, 6
je 0x100028a1
mov edi, str.RamDisk
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291c
mov ecx, ebp
mov esi, str.RamDisk
jmp 0x10002900
mov edi, str.UnknownDisk
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291c
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, str.UnknownDisk
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x1000290d
mov edi, str.UnknownDisk
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291c
mov ecx, ebp
mov esi, str.UnknownDisk
mov edi, dword [esp + 0x30]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.10001e30
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
lea edx, [esp + 0x94]
push str._08X_t_I64d_t_I64d
push edx
call fcn.10012d4b
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.10001cd0
mov edi, 0x10024228
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10024228
lea ecx, [esp + 0x24]
call fcn.10001cd0
mov ecx, dword [0x1001f2cc]
lea edx, [esp + 0x2c]
push ecx
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.10001bf0
mov edi, 0x10024228
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10024228
lea ecx, [esp + 0x24]
call fcn.10001cd0
mov eax, dword [0x1001f2cc]
lea ecx, [esp + 0x4c]
push eax
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.10001bf0
mov edi, 0x10024228
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1001f2cc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
cmp edx, esi
ja 0x10002a11
call fcn.10011d8b
cmp esi, ebx
jbe 0x10002a55
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x20]
lea ebp, [eax + esi]
push ebp
call fcn.10001e50
test al, al
je 0x10002a55
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x10024228
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.10001e30
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x1001f2cc]
sub ecx, edx
cmp ecx, esi
ja 0x10002a7d
call fcn.10011d8b
cmp esi, ebx
jbe 0x10002ac3
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x20]
lea ebp, [edx + esi]
push ebp
call fcn.10001e50
test al, al
je 0x10002ac3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.10001e30
mov edi, 0x100241a8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
mov eax, dword [0x1001f2cc]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x10002ae8
call fcn.10011d8b
cmp esi, ebx
jbe 0x10002b2c
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x20]
lea ebp, [eax + esi]
push ebp
call fcn.10001e50
test al, al
je 0x10002b2c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x100241a8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.10001e30
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x520], 1
call fcn.10001ba0
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x51c], 0
cmp ecx, ebx
je 0x10002bb8
mov al, byte [ecx - 1]
test al, al
je 0x10002bae
cmp al, 0xff
je 0x10002bae
dec al
mov byte [ecx - 1], al
jmp 0x10002bb8
mov edi, str.FloppyDisk
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.10001e50
test al, al
je 0x1000291e
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, str.FloppyDisk
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.10001e30
jmp 0x1000291e
dec ecx
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x40], ecx
jl 0x1000260b
mov ebp, dword [esp + 0x24]
mov ecx, 0x114
xor eax, eax
lea edi, [esp + 0xc1]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3c]
cmp ebp, 0x44c
mov eax, 0x44c
mov edx, dword [ecx + 0x2ecc]
mov dword [esp + 0xc0], edx
jg 0x10002c0e
mov eax, ebp
mov esi, dword [esp + 0x20]
cmp esi, ebx
jne 0x10002c1b
mov esi, 0x1001f2c0
mov ecx, eax
lea edi, [esp + 0xc4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebp, 0x44c
rep movsb byte es:[edi], byte [esi]
jle 0x10002c68
mov ecx, dword [esp + 0x3c]
add eax, 4
push 0x2710
push eax
mov edx, dword [ecx]
lea eax, [esp + 0xc8]
push eax
push 0x1f
sub ebp, 0x44c
call dword [edx + 0x14]
cmp ebp, ebx
mov esi, eax
je 0x10002c8e
cmp esi, ebx
jl 0x10002c8e
jmp 0x10002bee
mov ecx, dword [esp + 0x3c]
mov byte [esp + eax + 0xc4], 0x3e
add eax, 5
push 0x2710
mov edx, dword [ecx]
push eax
lea eax, [esp + 0xc8]
push eax
push 0x1f
call dword [edx + 0x14]
mov esi, eax
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x10002cb2
mov al, byte [ecx - 1]
test al, al
je 0x10002ca8
cmp al, 0xff
je 0x10002ca8
dec al
mov byte [ecx - 1], al
jmp 0x10002cb2
dec ecx
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x514]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x510
ret