Function at 0x455400
Capabilities:
Get disk information
Get disk information via ioctl
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6b4
cmp ax, 0x61
jb 0x455417
cmp ax, 0x7a
ja 0x455417
and eax, 0xffdf
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
mov ecx, 0x5c
mov word [esp + 0x34], ax
mov word [esp + 0x44], ax
mov edx, 0x3a
push ebx
lea eax, [esp + 0x40]
push eax
mov word [esp + 0x3e], dx
mov word [esp + 0x40], cx
mov word [esp + 0x42], bx
mov word [esp + 0x44], cx
mov word [esp + 0x46], cx
mov word [esp + 0x48], 0x2e
mov word [esp + 0x4a], cx
mov word [esp + 0x4e], dx
mov word [esp + 0x50], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x455486
pop esi
mov eax, 1
pop ebx
add esp, 0x6b4
ret
push edi
push ebx
lea ecx, [esp + 0x44]
push ecx
push 0xc
lea edx, [esp + 0x9c]
push edx
push ebx
push ebx
push 0x2d1080
push esi
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4554c6
mov eax, dword [esp + 0x94]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x4554d5
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6b4
ret
push ebp
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [esp + 0x14], ebx
jb 0x4556bd
cmp eax, 3
jbe 0x455507
cmp eax, 5
jne 0x4556bd
mov edi, 0x4f4444
mov dword [esp + 0x18], edi
jmp 0x455513
mov dword [esp + 0x18], 0x4f4454
mov edi, dword [esp + 0x18]
push 0x12
push ebx
push ebx
push edi
call dword [0x51d190]
mov esi, eax
cmp esi, 0xffffffff
je 0x4556bd
xor ecx, ecx
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x78], ecx
push ebx
mov dword [esp + 0x80], ecx
push edi
mov dword [esp + 0x88], ecx
mov eax, 0x1c
push ebx
mov dword [esp + 0x90], ecx
push esi
xor ebp, ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xb4], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x455690
lea eax, [esp + 0xa0]
push eax
push ebp
push edi
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
lea edx, [esp + 0xb0]
push edx
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x455678
cmp eax, 0x400
ja 0x455678
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x2d0]
push edx
lea eax, [esp + 0xb0]
push eax
push esi
mov dword [esp + 0x2dc], 6
mov dword [esp + 0x68], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x455678
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x455674
push ebx
lea edx, [esp + 0x4c]
push edx
push 0xc
lea eax, [esp + 0x94]
push eax
push ebx
push ebx
push 0x2d1080
push edi
mov dword [esp + 0x68], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45566d
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esp + 0x8c]
je 0x4556a7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x6c]
push edx
inc ebp
push ebp
push edi
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x455582
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6b4
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x64]
cmp eax, ebx
jne 0x4556cd
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6b4
ret
push ebx
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov ecx, dword [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
mov ebp, dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
shr eax, 0xe
and al, 1
mov byte [esp + 0x13], al
mov esi, 1
mov edi, edi
push ebx
push 0x208
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x2c]
cmp al, bl
mov eax, dword [esp + 0x20]
push edx
mov word [esp + 0xcc], bx
push eax
je 0x455748
call edi
jmp 0x45574a
call ebp
cmp eax, ebx
jne 0x455754
cmp dword [esp + 0x20], ebx
je 0x455773
push 0xc8
mov ecx, 0x51d2a0
mov byte [esp + 0x16], bl
call fcn.0042072b
inc esi
cmp esi, 3
jg 0x455777
mov al, byte [esp + 0x13]
jmp 0x455720
mov al, 1
jmp 0x45577b
mov al, byte [esp + 0x12]
xor ecx, ecx
cmp al, bl
setne cl
pop ebp
pop edi
pop esi
pop ebx
dec ecx
and ecx, 2
mov eax, ecx
add esp, 0x6b4
ret