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

Disassembly:
push 0xffffffffffffffff
push 0x46ee38
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x48b670]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x456493
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4564bd
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x2c], ebp
mov esi, dword [edi + 0x10]
mov dword [esp + 0x80], 0
cmp dword [edi + 0xc], esi
jbe 0x4564e5
call fcn.00430a7b
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
cmp ebx, dword [edi + 0x10]
jbe 0x4564f8
call fcn.00430a7b
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
push esi
push edx
push ebx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0040d690
push 0x12
push 0
push 0
push 0x48cd38
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x456581
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x490d6c], eax
add ebp, 0xfffffff0
or edx, 0xffffffff
lea ecx, [ebp + 0xc]
mov dword [esp + 0x80], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456559
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456579
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x4567fe
mov dword [esp + 0x58], 0x1c
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
push 0x48cd38
push 0
push esi
mov dword [esp + 0x50], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x45681d
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x4565e5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x4566e0
mov edx, dword [esp + 0x20]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x456828
lea eax, [esp + 0x58]
push eax
push 0
mov dword [ebx], 6
mov ecx, dword [esp + 0x28]
push ecx
push ebx
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov esi, eax
test esi, esi
je 0x4566c1
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x2c]
push 0x47a834
push ecx
call fcn.00402020
mov ebp, dword [esp + 0x38]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x456665
push 0x104
lea ecx, [esp + 0x30]
call fcn.00401ed0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push 0
push 0x104
push ebp
push 0
push 0xc
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.004311d4
add esp, 8
test eax, eax
jl 0x456837
cmp eax, dword [ebp - 8]
jg 0x456837
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], cx
test esi, esi
je 0x4566c1
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.0040c9c0
inc dword [esp + 0x14]
jmp 0x4566cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x490d6c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
mov esi, dword [esp + 0x18]
je 0x4566e7
jmp 0x456591
call ebx
mov dword [0x490d6c], eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jbe 0x4567b2
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45671d
call fcn.00430a7b
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x18]
push 0
mov eax, dword [eax + 4]
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45652a
push 0
lea ecx, [esp + 0x24]
push ecx
push 0xc
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x456841
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45678d
call fcn.00430a7b
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
push esi
mov dword [eax + ecx], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [esp + 0x18], 0xc
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x4566fe
add ebp, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4567da
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4567fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042fc9e
add esp, 0x70
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4566e2
mov dword [0x490d6c], 0xffffffff
jmp 0x4566e7
push 0x80070057
call fcn.00401f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [0x490d6c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x456535