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

Disassembly:
push 0xffffffffffffffff
push 0x4ea4ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
push ebx
push ebp
push esi
push edi
push 0x51d5ec
mov dword [esp + 0x40], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x2f4]
mov ebp, dword [esp + 0x2f0]
mov eax, ebx
and eax, 0x20000
mov dword [esp + 0x2c], eax
mov eax, ebx
and eax, 0x200000
xor edi, edi
mov esi, ebx
mov dword [esp + 0x40], eax
mov eax, dword [ebp]
and esi, 0x10000
mov word [eax], di
push 0x100001
mov dword [esp + 0x2ec], edi
mov dword [esp + 0x2c], esi
and ebx, 0xc000ffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], edi
call fcn.00449130
add esp, 4
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x45e6db
mov byte [eax], 0
push 0x1002
call fcn.00449130
add esp, 4
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x45e6f3
mov word [eax], di
cmp ebx, edi
lea ecx, [eax + 0x800]
mov word [eax], 0x20
mov word [eax + 2], di
mov byte [esp + 0x2e8], 2
mov word [ecx], 0x20
mov word [ecx + 2], di
jl 0x45e71f
mov edi, ebx
mov dword [esp + 0x1c], edi
jmp 0x45e72f
mov dword [esp + 0x1c], edi
cmp edi, 0x3e80
jge 0x45ec18
push edi
lea ecx, [esp + 0x19c]
push str..PhysicalDrive_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x45e768
test ebx, ebx
jl 0x45e768
mov edx, dword [esp + 0x20]
push 0x13
add edx, 2
push edx
lea eax, [esp + 0x1a0]
push eax
call fcn.0044e940
add esp, 0xc
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x2c], esi
mov byte [esp + 0x2e8], 3
je 0x45e785
cmp ebx, esi
jl 0x45e785
mov esi, 1
push 0
push 0x20000000
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [esp + 0x1b0]
push ecx
lea ecx, [esp + 0x34]
call fcn.00417e55
test esi, esi
mov esi, dword [esp + 0x18]
je 0x45e7c4
mov eax, dword [esp + 0x20]
add eax, 0x802
push eax
push edi
push esi
call fcn.004470d0
add esp, 0xc
test ebx, ebx
jge 0x45e89a
test esi, esi
je 0x45e872
push edi
lea edx, [esp + 0x19c]
push 0x4f5824
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp]
add esp, 0xc
xor edi, edi
test eax, eax
je 0x45e805
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ecx
call fcn.00449190
lea edx, [esi + esi]
push edx
lea ecx, [esp + 0x1a0]
push ecx
lea edx, [eax + edi*2]
push edx
mov dword [ebp], eax
call fcn.004b3b10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add esp, 0x10
inc edx
cmp eax, 0xffffffff
mov dword [esp + 0x10], edx
mov byte [esp + 0x2e8], 2
je 0x45e860
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
inc edi
mov dword [esp + 0x1c], edi
jmp 0x45e723
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x20
mov dword [esp + 0x14], eax
mov byte [esp + 0x2e8], 2
jge 0x45ec18
mov esi, dword [esp + 0x28]
inc edi
mov dword [esp + 0x1c], edi
jmp 0x45e723
test esi, esi
jne 0x45e8ab
mov byte [esp + 0x2e8], 2
jmp 0x45ec18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x24]
xor eax, eax
push eax
mov ecx, 0x30
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
push 0x100000
push ebx
push 0
push 0
push 0x70050
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [ebx]
test edx, edx
mov dword [esp + 0x14], 0x4f9cb4
jne 0x45e8f6
mov dword [esp + 0x14], 0x4f9cac
cmp edx, 1
jne 0x45e903
mov dword [esp + 0x14], 0x4f9ca4
mov ecx, dword [0x4f9c9c]
mov ax, word [0x4f9ca0]
mov dword [esp + 0x74], ecx
mov word [esp + 0x78], ax
xor eax, eax
test edx, edx
mov ecx, 0x27
lea edi, [esp + 0x7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x45e944
mov ecx, dword [ebx + 8]
push ecx
lea edx, [esp + 0x78]
push str._08lX
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x45e995
cmp edx, 1
jne 0x45e995
movzx eax, byte [ebx + 0x17]
movzx ecx, byte [ebx + 0x16]
movzx edx, byte [ebx + 0x15]
push eax
movzx eax, byte [ebx + 0x14]
push ecx
movzx ecx, byte [ebx + 0x13]
push edx
movzx edx, byte [ebx + 0x12]
push eax
movzx eax, byte [ebx + 0x11]
push ecx
movzx ecx, byte [ebx + 0x10]
push edx
movzx edx, word [ebx + 0xe]
push eax
movzx eax, word [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
push ecx
lea edx, [esp + 0xa0]
push str._08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea esi, [esp + 0x4c]
mov ebx, edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x70], eax
call fcn.00446f60
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
call fcn.0044b680
mov ecx, dword [ebp]
mov dword [esp + 0x3c], eax
push ecx
mov eax, 0x192
call fcn.00449190
add esp, 0xc
cmp eax, ebx
mov dword [ebp], eax
je 0x45ea06
mov word [eax + 0x190], bx
push ebx
mov eax, 0x19
call fcn.00449190
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x45ea1e
mov byte [esi + 0x18], 0
push ebx
mov dword [esp + 0x34], ebx
xor edx, edx
lea ecx, [esp + 0x34]
push ecx
push 0x18
push esi
mov eax, esi
mov dword [eax], edx
mov dword [eax + 4], edx
push ebx
mov dword [eax + 8], edx
push ebx
mov dword [eax + 0xc], edx
push 0x70000
mov dword [eax + 0x10], edx
push edi
mov dword [eax + 0x14], edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x45ea5b
mov edx, dword [esi + 8]
mov dword [esp + 0x10], edx
jmp 0x45ea63
mov dword [esp + 0x10], 0xffffffff
cmp esi, ebx
je 0x45ea78
mov eax, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
cmp eax, 0xc
mov bl, 0x3f
jne 0x45ea87
mov bl, 0x46
jmp 0x45ea8e
cmp eax, 0xb
jne 0x45ea8e
mov bl, 0x52
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
mov word [esp + 0x260], si
je 0x45eacc
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], esi
call fcn.0044fb50
mov ecx, dword [esp + 0x18]
push ecx
push edx
push eax
lea edx, [esp + 0x274]
push str.__I64d__u
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x120]
push edx
call fcn.004a48b0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x16c]
push edx
call fcn.004a48b0
mov eax, dword [ebp]
lea ecx, [esp + 0x278]
push ecx
mov ecx, dword [esp + 0x30]
movsx edx, bl
push edx
mov edx, dword [esp + 0x54]
push ecx
push edx
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push ecx
lea edx, [esp + 0x194]
push edx
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x158]
push ecx
push edx
push str._2d__14s__14s__6lu__4lu__4lu__4lu__s__2d__s__c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x78]
add esp, 0x50
cmp eax, esi
je 0x45ebb2
cmp ebx, esi
je 0x45ebb2
mov eax, dword [ebp]
xor edi, edi
cmp eax, esi
je 0x45eb82
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ecx
call fcn.00449190
lea edx, [esi + esi]
push edx
mov dword [ebp], eax
lea eax, [eax + edi*2]
push ebx
push eax
call fcn.004b3b10
mov edi, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45ec04
add ebx, 0x800
je 0x45ec04
mov eax, dword [ebp]
xor edi, edi
test eax, eax
je 0x45ebd4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ecx
call fcn.00449190
lea edx, [esi + esi]
push edx
mov dword [ebp], eax
lea eax, [eax + edi*2]
push ebx
push eax
call fcn.004b3b10
mov edi, dword [esp + 0x28]
add esp, 0x10
cmp edi, 0xffffffff
mov byte [esp + 0x2e8], 2
je 0x45ec18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp]
push ecx
call fcn.004201fa
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x45ec43
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45ec5d
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2d0]
mov eax, dword [esp]
mov dword fs:[0], ecx
add esp, 0x2dc
ret