Function at 0x7d705480
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c4
push esi
lea eax, [ebp - 0x6c4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, dword [0x7d7249b8]
movzx edx, byte [ecx]
and edx, 8
je 0x7d70551d
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c]
cmp ecx, 0x2e
jne 0x7d7054ce
mov dword [ebp - 0x28], 0x12
jmp 0x7d7054d5
mov dword [ebp - 0x28], 0x21
push 0x7d7242c0
push 0x30
push 0x7d7249c8
mov edx, dword [ebp - 0x28]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c
push edx
mov eax, dword [0x7d7249b8]
push eax
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d70551d
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.__p__p__d__x__n
call fcn.7d71f960
add esp, 0x14
mov edx, dword [ebp + 0x14]
and edx, 0xfffffff0
je 0x7d7055a1
mov eax, dword [0x7d7249b8]
movzx ecx, byte [eax]
and ecx, 4
je 0x7d705593
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c]
cmp eax, 0x2e
jne 0x7d70554f
mov dword [ebp - 0x1c], 0x12
jmp 0x7d705556
mov dword [ebp - 0x1c], 0x21
push 0x7d7242c0
push 0x34
push 0x7d7249c8
mov ecx, dword [ebp - 0x1c]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c
push ecx
mov edx, dword [0x7d7249b8]
push edx
push 2
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d705593
mov eax, dword [ebp + 0x14]
push eax
push str.Unknown_flags:__x_n
call fcn.7d71f960
add esp, 8
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d705b82
lea ecx, [ebp - 0x30]
push ecx
push 0x218
lea edx, [ebp - 0x6c4]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntext.dll_NtQueryObject]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x7d7055dd
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d705b82
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x7d7055f4
push 6
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d705b82
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 8
jb 0x7d70565e
mov edx, 2
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx]
cmp edx, 0x5c
jne 0x7d70565e
mov eax, 2
shl eax, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
movzx eax, word [edx + eax]
cmp eax, 0x3f
jne 0x7d70565e
mov ecx, 2
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx]
cmp ecx, 0x3f
jne 0x7d70565e
mov edx, 2
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + edx]
cmp edx, 0x5c
je 0x7d7056ef
mov eax, dword [0x7d7249b8]
movzx ecx, byte [eax]
and ecx, 1
je 0x7d7056e1
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c]
cmp eax, 0x2e
jne 0x7d705688
mov dword [ebp - 0x14], 0x12
jmp 0x7d70568f
mov dword [ebp - 0x14], 0x21
push 0x7d7242c0
push 0x48
push 0x7d7249c8
mov ecx, dword [ebp - 0x14]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c
push ecx
mov edx, dword [0x7d7249b8]
push edx
push 0
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d7056e1
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
shr ecx, 1
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.7d705b90
add esp, 8
push eax
push str.Unexpected_object_name:__s_n
call fcn.7d71f960
add esp, 8
push 0x1f
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d705b82
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
shr edx, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
xor eax, eax
mov word [ecx + edx*2], ax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
sub edx, 8
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
add edx, 8
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x14]
and ecx, 8
je 0x7d70579c
mov edx, dword [0x7d7249b8]
movzx eax, byte [edx]
and eax, 1
je 0x7d705793
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ecx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c]
cmp edx, 0x2e
jne 0x7d705754
mov dword [ebp - 0x20], 0x12
jmp 0x7d70575b
mov dword [ebp - 0x20], 0x21
push 0x7d7242c0
push 0x55
push 0x7d7249c8
mov eax, dword [ebp - 0x20]
add eax, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c
push eax
mov ecx, dword [0x7d7249b8]
push ecx
push 0
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d705793
push str.FILE_NAME_OPENED_not_supported_n
call fcn.7d71f960
add esp, 4
mov edx, dword [ebp + 0x14]
and edx, 0xfffffff7
mov dword [ebp + 0x14], edx
cmp dword [ebp + 0x14], 4
je 0x7d7057b2
cmp dword [ebp + 0x14], 1
je 0x7d7057b2
cmp dword [ebp + 0x14], 2
jne 0x7d7058cb
push 0x104
lea eax, [ebp - 0x2a0]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call sym.kernelbase.dll_GetVolumePathNameW
test eax, eax
jne 0x7d7057d5
xor eax, eax
jmp 0x7d705b82
lea eax, [ebp - 0x2a0]
push eax
call sub.ntext.dll_wcslen
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x7d705833
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call sub.ntext.dll_wcslen
add esp, 4
cmp dword [ebp - 0xc], eax
ja 0x7d705833
mov eax, dword [ebp - 0xc]
movzx ecx, word [ebp + eax*2 - 0x2a2]
cmp ecx, 0x5c
jne 0x7d705833
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x2a0]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call sub.ntext.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x7d7058cb
mov eax, dword [0x7d7249b8]
movzx ecx, byte [eax]
and ecx, 1
je 0x7d7058bd
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c]
cmp eax, 0x2e
jne 0x7d70585d
mov dword [ebp - 0x24], 0x12
jmp 0x7d705864
mov dword [ebp - 0x24], 0x21
push 0x7d7242c0
push 0x64
push 0x7d7249c8
mov ecx, dword [ebp - 0x24]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c
push ecx
mov edx, dword [0x7d7249b8]
push edx
push 0
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d7058bd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.7d701950
add esp, 4
push eax
lea edx, [ebp - 0x2a0]
push edx
call fcn.7d701950
add esp, 4
push eax
push str.Path__s_returned_by_GetVolumePathNameW_does_not_match_file_path__s_n
call fcn.7d71f960
add esp, 0xc
push 0x1f
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x7d705b82
cmp dword [ebp + 0x14], 4
jne 0x7d705920
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0xc]
lea eax, [ecx + edx*2 - 2]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntext.dll_wcslen
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jae 0x7d705912
mov eax, dword [ebp - 8]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntext.dll_memcpy
add esp, 0xc
jmp 0x7d70591b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x7d705b7f
cmp dword [ebp + 0x14], 1
jne 0x7d7059ce
push 0x32
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x2a0]
push eax
call sym.kernelbase.dll_GetVolumeNameForVolumeMountPointW
test eax, eax
jne 0x7d70594a
xor eax, eax
jmp 0x7d705b82
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xc]
lea ecx, [edx + eax*2]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x98]
push edx
call sub.ntext.dll_wcslen
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ntext.dll_wcslen
add esp, 4
add esi, eax
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x7d7059b9
mov edx, 2
imul edx, edx, 0
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx + edx], ax
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntext.dll_wcscat
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntext.dll_wcscat
add esp, 8
jmp 0x7d7059c9
push 8
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x7d705b7f
cmp dword [ebp + 0x14], 2
jne 0x7d705a8d
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [ebp + edx*2 - 0x2a2], cx
push 0x104
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call sym.kernelbase.dll_QueryDosDeviceW
test eax, eax
jne 0x7d705a08
xor eax, eax
jmp 0x7d705b82
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0xc]
lea edx, [eax + ecx*2 - 2]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x4a8]
push eax
call sub.ntext.dll_wcslen
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntext.dll_wcslen
add esp, 4
add esi, eax
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jae 0x7d705a78
mov eax, 2
imul eax, eax, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
lea eax, [ebp - 0x4a8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ntext.dll_wcscat
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntext.dll_wcscat
add esp, 8
jmp 0x7d705a88
push 8
call sub.kernel32.dll_SetLastError
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x7d705b7f
cmp dword [ebp + 0x14], 0
jne 0x7d705b07
push 0x7d7249bc
call sub.ntext.dll_wcslen
add esp, 4
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call sub.ntext.dll_wcslen
add esp, 4
add esi, eax
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x7d705af5
mov edx, 2
imul edx, edx, 0
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx + edx], ax
push 0x7d7249bc
mov edx, dword [ebp + 0xc]
push edx
call sub.ntext.dll_wcscat
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntext.dll_wcscat
add esp, 8
jmp 0x7d705b05
push 8
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x7d705b7f
mov ecx, dword [0x7d7249b8]
movzx edx, byte [ecx]
and edx, 4
je 0x7d705b78
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c]
cmp ecx, 0x2e
jne 0x7d705b32
mov dword [ebp - 0x18], 0x12
jmp 0x7d705b39
mov dword [ebp - 0x18], 0x21
push 0x7d7242c0
push 0xb4
push 0x7d7249c8
mov edx, dword [ebp - 0x18]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapperhandle.c
push edx
mov eax, dword [0x7d7249b8]
push eax
push 2
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d705b78
mov ecx, dword [ebp + 0x14]
push ecx
push str.Invalid_combination_of_flags:__x_n
call fcn.7d71f960
add esp, 8
push 0x57
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret 0x10