Function at 0x10001600
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10005a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x534
mov al, byte [esp + 0x17]
push ebx
mov byte [esp + 8], al
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push eax
push eax
push eax
mov dword [esp + 0x558], eax
call fcn.10002940
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov esi, eax
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.100025a0
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x1c], esi
mov ebx, 0x41
push ebx
lea edx, [esp + 0x14]
push 0x10007054
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
cmp edx, 2
jb 0x100016db
cmp edx, 5
ja 0x100016db
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov edx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.100025b0
inc ebx
cmp ebx, 0x5a
jl 0x1000166b
mov esi, dword [esp + 0x1c]
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x10001703
xor edx, edx
jmp 0x10001718
mov ecx, esi
mov eax, 0x3e0f83e1
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
xor ecx, ecx
cmp edx, ebx
setne cl
cmp edi, ebx
mov dword [esp + 0x134], ecx
jne 0x10001733
mov dword [esp + 0x138], ebx
jmp 0x1000174d
sub esi, edi
mov eax, 0x3e0f83e1
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x138], edx
lea ecx, [esp + 0x134]
push 0x410
push ecx
mov ecx, dword [esp + 0x30]
call fcn.10002440
test eax, eax
jne 0x10001779
mov edx, dword [esp + 0x18]
push edx
call fcn.10005812
add esp, 4
jmp 0x10001865
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x10001785
xor edx, edx
jmp 0x1000179c
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ecx, edx
shl ecx, 5
add ecx, edx
shl ecx, 3
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
xor ebp, ebp
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100017f7
mov edi, dword [esp + 0x1c]
mov eax, 0x3e0f83e1
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x100017f3
mov ecx, dword [esp + 0x10]
add esi, ebx
inc ebp
lea edi, [ebx + ecx]
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
add ebx, 0x108
jmp 0x100017b5
test esi, esi
jne 0x100017fd
xor edx, edx
xor esi, esi
jmp 0x10001812
sub edi, esi
mov eax, 0x3e0f83e1
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
mov edi, dword [esp + 0x10]
mov ecx, edx
shl ecx, 5
add ecx, edx
shl ecx, 3
push ecx
mov ecx, dword [esp + 0x2c]
push edi
call fcn.100023b0
mov edx, esi
push edi
shl edx, 5
add edx, esi
shl edx, 3
cmp eax, edx
jne 0x10001853
call fcn.10005812
mov eax, dword [esp + 0x1c]
push eax
call fcn.10005812
add esp, 8
mov eax, 1
jmp 0x10001867
call fcn.10005812
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10005812
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x544]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x540
ret