Function at 0x10055460
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
movzx eax, word [ebp + 0x10]
and dword [ebp - 0x28], 0
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov cl, al
sar ebx, 0x10
push esi
and ebx, 0xffdf
push edi
mov dword [ebp + 0x10], eax
and ecx, 0x20
test al, 1
mov dword [ebp - 0x30], ecx
je 0x100554a2
test al, 8
je 0x100554a2
and eax, 0xfffffff7
mov dword [ebp - 0x28], 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0xa00
push eax
lea ecx, [ebp - 0x1c]
call fcn.10045fcc
cmp dword [ebp + 0xc], 0
jne 0x100554cd
mov eax, dword [ebp - 0x1c]
add eax, 0x800
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
push 5
pop ecx
mov esi, 0x100cfb70
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
mov esi, str.__C:
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1b
pop edx
movsd dword es:[edi], dword [esi]
xor esi, esi
push 0xffffffffffffffb3
mov dword [ebp - 0x2c], esi
add eax, 0xc
pop ecx
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax - 4], ecx
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
mov dword [eax + 4], esi
mov word [eax + 0xc], si
add eax, 0x220
dec edx
jne 0x100554f7
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp bx, 0x61
mov dword [ebp - 0x34], eax
jb 0x1005552f
cmp bx, 0x7a
ja 0x1005552f
add ebx, 0xffe0
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x24], 0x19
jb 0x1005554d
cmp bx, 0x5a
ja 0x1005554d
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
movsx eax, ax
cmp eax, dword [ebp - 0x24]
jg 0x10055886
mov esi, eax
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x34]
test ecx, eax
je 0x10055876
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
mov eax, esi
imul eax, eax, 0x220
lea edi, [eax + ecx]
lea eax, [esi + 0x41]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x54]
add ebx, 0x41
push eax
mov word [ebp - 0x54], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov dword [ebp - 0x14], eax
je 0x100555cc
cmp eax, 2
je 0x100555cc
and dword [edi], 0
xor cl, cl
or byte [edi + 0x11], 0xc0
cmp eax, 1
mov word [ebp - 0x40], bx
je 0x10055876
cmp dword [ebp + 0x10], 8
je 0x100555e4
cmp dword [ebp + 0x10], 0x10
jne 0x100555d0
cmp eax, 2
jmp 0x100555e7
mov cl, 1
jmp 0x100555ae
cmp dword [ebp + 0x10], 4
je 0x100555ed
test cl, cl
jne 0x100555ed
cmp dword [ebp - 0x28], 0
je 0x10055876
cmp eax, 5
jne 0x10055876
xor ebx, ebx
cmp word [ebp - 0x30], bx
je 0x1005561c
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.100145e0
add esp, 0x10
push 0x104
push dword [ebp - 0x2c]
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, dword [ebp - 0x14]
or dword [ebp - 8], 0xffffffff
cmp eax, 2
jne 0x10055666
cmp word [ebp - 0x10], 1
jg 0x10055666
lea eax, [esi*4 + 0x100e3470]
cmp dword [eax], ebx
je 0x10055666
cmp dword [ebp + 0x10], 0x10
movsx eax, word [eax]
mov dword [ebp - 8], eax
jne 0x1005564e
cmp eax, 0xb
je 0x10055876
xor ebx, ebx
cmp dword [ebp + 0x10], 4
je 0x10055666
cmp dword [ebp + 0x10], 0x10
je 0x10055666
cmp dword [ebp - 8], 0xb
jne 0x10055876
xor ebx, ebx
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.10005b9d
cmp dword [ebp - 4], ebx
je 0x1005586e
cmp dword [ebp - 8], ebx
jge 0x100556a5
push esi
push 1
push ebx
push dword [ebp - 4]
call fcn.1004b0ea
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 2
jne 0x100556cc
cmp dword [ebp + 0x10], 0x10
jne 0x100556bc
cmp dword [ebp - 8], 0xb
jne 0x100556cc
jmp 0x1005586e
cmp dword [ebp + 0x10], 4
je 0x100556cc
cmp dword [ebp - 8], 0xb
jne 0x1005586e
mov ax, word [edi]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1ec], ebx
mov ebx, 0x90
push ebx
push 0
push esi
mov word [ebp - 0xc], ax
call fcn.100b40f0
or dword [esi + 0x18], 0xffffffff
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0x1ec]
push ecx
push ebx
push esi
push eax
push eax
push 0x70048
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebx, ebx
cmp eax, ebx
je 0x1005571d
mov ax, word [esi + 0x18]
mov word [ebp - 0xc], ax
jmp 0x1005574f
xor eax, eax
push eax
lea ecx, [ebp - 0x1ec]
push ecx
push 0x20
lea ebx, [esi + 8]
or dword [ebx + 0x14], 0xffffffff
push ebx
push eax
push eax
push 0x74004
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1005574d
mov ax, word [ebx + 0x14]
mov word [ebp - 0xc], ax
xor ebx, ebx
push ebx
mov dword [ebp - 0x1ec], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [esi + 4], 0xffffffff
push ebx
lea eax, [ebp - 0x1ec]
push eax
push 0xc
push esi
push ebx
push ebx
push 0x2d1080
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x28], ebx
je 0x100557c7
cmp dword [ebp - 0x14], 5
jne 0x100557c7
cmp dword [ebp - 0x20], ebx
je 0x1005586e
mov eax, dword [ebp - 0x1c]
push 0x100c8068
push ebx
push eax
mov word [eax], bx
movzx eax, word [esi + 4]
push eax
call fcn.10054fe7
mov eax, dword [ebp - 0x1c]
add esp, 0x10
cmp word [eax], bx
je 0x1005586e
movzx eax, word [ebp - 0x54]
mov dword [edi + 0x10], eax
jmp 0x1005583c
cmp dword [ebp - 0x14], 2
jne 0x1005583c
cmp dword [ebp - 0x20], ebx
je 0x100557d8
cmp word [esi + 4], bx
jge 0x1005583c
lea ecx, [ebp - 0x18]
call fcn.10046123
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100145e0
add esp, 0x10
push 0xe
push str.DeviceFloppy
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10055834
mov eax, dword [ebp - 0x18]
add eax, 0x1c
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10049634
test eax, eax
pop ecx
pop ecx
je 0x10055831
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov dword [edi + 4], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x18]
call fcn.1003f96c
cmp dword [ebp - 0x20], ebx
movsx eax, word [ebp - 0xc]
mov dword [edi], eax
je 0x1005584e
movsx eax, word [esi + 4]
mov dword [edi + 4], eax
cmp dword [ebp + 0x10], 4
jne 0x10055862
push dword [ebp - 4]
push ebx
call fcn.100480aa
pop ecx
pop ecx
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x14], eax
lea ecx, [ebp - 4]
call fcn.10002d56
inc dword [ebp - 0x10]
movsx esi, word [ebp - 0x10]
cmp esi, dword [ebp - 0x24]
jle 0x1005555e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x2c]
call fcn.1003f96c
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
pop edi
pop esi
pop ebx
leave
ret