Function at 0x7dd80719
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x40
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x4c], edi
jae 0x7ddaeb2b
cmp ecx, edi
je 0x7dd80a60
cmp eax, edi
je 0x7dd80a60
cmp dword [ebp + 0x14], edi
je 0x7dd80a60
push edi
push edi
push edi
xor edx, edx
push ecx
mov word [eax], dx
call fcn.7dd741e1
mov esi, eax
cmp esi, edi
je 0x7dd80a67
add esi, 0xa
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea edi, [esi + esi]
push edi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call ebx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x7ddaeb35
push edi
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x34]
call fcn.7dd741e1
push dword [ebp - 0x28]
test eax, eax
je 0x7ddaeb3c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx ecx, word [ebp - 0x24]
mov eax, dword [ebp - 0x20]
shr ecx, 1
cmp word [eax + ecx*2 - 2], 0x5c
je 0x7dd80811
add word [ebp - 0x24], 2
movzx ecx, word [ebp - 0x24]
push 0x5c
shr ecx, 1
pop edx
mov word [eax + ecx*2 - 2], dx
movzx eax, word [ebp - 0x24]
mov edx, dword [ebp - 0x20]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
mov esi, 0x4000
push esi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call ebx
xor edi, edi
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x7ddaeb54
push esi
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov esi, dword [ebp - 0x20]
push esi
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], 1
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
test eax, eax
jl 0x7ddaeb6c
movzx eax, word [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
shr eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x7ddaeb79
push esi
call fcn.7dd74298
push 0x7dd80028
push esi
mov ebx, eax
call dword [sym.imp.ntdll.dll__wcsicmp]
push 0x7dd80014
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 0x10
cmp ebx, 4
je 0x7ddaeb80
xor ebx, ebx
cmp word [ebp - 0x3c], 6
je 0x7dd80962
cmp word [ebp - 0x3c], 0xe
je 0x7ddaec4d
mov edi, 0x2000
push edi
push dword [ebp - 0x1c]
push esi
call fcn.7dd80210
cmp eax, ebx
jne 0x7dd80986
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x1c]
push esi
call fcn.7dd80631
cmp eax, ebx
jne 0x7ddaecd6
cmp dword [ebp - 0x2c], ebx
je 0x7dd80a35
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
push 0x5c
pop esi
cmp word [eax], bx
jne 0x7ddaebc5
cmp dword [ebp - 0x2c], ebx
je 0x7dd80a48
cmp word [ebp - 0x24], 2
jbe 0x7dd80989
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
shr eax, 1
dec eax
dec eax
je 0x7dd80933
cmp word [ecx + eax*2], si
je 0x7dd80933
dec eax
jne 0x7dd8092a
cmp eax, ebx
je 0x7dd80989
cmp dword [ebp - 0x2c], ebx
je 0x7dd80a6b
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x30], eax
movzx ecx, word [eax]
mov dword [ebp - 0x34], ecx
xor ecx, ecx
mov word [eax], cx
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x7dd8084d
mov eax, dword [ebp - 0x38]
cmp word [eax + 2], 0x3a
jne 0x7dd808c5
push 0x2000
push dword [ebp - 0x1c]
push esi
call fcn.7dd80210
cmp eax, ebx
je 0x7ddaec97
mov edi, dword [ebp - 0x28]
push dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 0x2c], ebx
je 0x7ddaece7
cmp word [ebp - 0x24], 2
jb 0x7dd80a58
movzx ebx, word [ebp - 0x24]
shr ebx, 1
je 0x7dd809c9
lea eax, [ebx + 1]
cmp eax, dword [ebp + 0x14]
ja 0x7ddaee98
movzx eax, word [ebp - 0x24]
mov edx, dword [ebp + 0x14]
lea ecx, [eax + 2]
add edx, edx
cmp edx, ecx
jb 0x7ddaeebd
mov edi, dword [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [ebp - 0x28]
xor eax, eax
mov word [edi + ebx*2], ax
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0x10
call fcn.7dd711c7
cmp eax, 5
jne 0x7dd808fb
jmp 0x7ddaebb9
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x7dd80916
jmp 0x7ddaee81
mov ebx, dword [ebp - 0x4c]
jmp 0x7dd809c9
push 0x57
jmp 0x7ddaeed5
xor eax, eax
jmp 0x7dd80a08
xor edx, edx
mov word [ecx + eax*2 + 2], dx
jmp 0x7dd80952
push 0xa1
jmp 0x7ddaeed5
push 8
jmp 0x7ddaeed5
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd80a67
push dword [ebp - 0x28]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7ddaeb35
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor ebx, ebx
jmp 0x7dd808fb
push 0xc0000033
jmp 0x7ddaeb6d
xor ebx, ebx
cmp edi, ebx
je 0x7dd808af
cmp eax, ebx
je 0x7dd808af
lea eax, [ebp - 0x2c]
push eax
push 0x2000
push dword [ebp - 0x1c]
push esi
call fcn.7dd80631
cmp eax, ebx
jne 0x7dd80986
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddaec9a
mov dword [ebp - 0x2c], 1
jmp 0x7dd808fb
movzx edx, word [edi]
cmp dx, si
jne 0x7ddaebfc
cmp word [edi + 2], si
jne 0x7ddaebfc
movzx eax, word [edi + 4]
cmp ax, 0x2e
je 0x7ddaebe7
cmp ax, 0x3f
jne 0x7dd8090d
cmp word [edi + 6], si
jne 0x7dd8090d
cmp word [edi + 0xa], 0x3a
jne 0x7dd8090d
movzx ecx, word [edi + 2]
cmp cx, 0x3a
je 0x7ddaec47
cmp dx, si
jne 0x7ddaed05
cmp cx, si
jne 0x7ddaed05
movzx eax, word [edi + 4]
cmp ax, 0x2e
je 0x7ddaec2c
cmp ax, 0x3f
jne 0x7ddaed05
cmp word [edi + 6], si
jne 0x7ddaed05
cmp word [edi + 0xa], 0x3a
jne 0x7ddaed05
cmp cx, 0x3a
jne 0x7ddaeca7
mov word [ebp - 0x18], dx
jmp 0x7ddaecaf
mov eax, dword [ebp - 0x38]
cmp word [eax], 0x5c
jne 0x7dd808c5
cmp word [eax + 2], 0x5c
jne 0x7dd808c5
movzx ecx, word [eax + 4]
cmp cx, 0x2e
je 0x7ddaec79
cmp cx, 0x3f
jne 0x7dd808c5
cmp word [eax + 6], 0x5c
jne 0x7dd808c5
cmp word [eax + 0xa], 0x3a
jne 0x7dd808c5
add esi, 8
jmp 0x7dd80970
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [ecx], ax
jmp 0x7dd808f2
mov ax, word [edi + 8]
mov word [ebp - 0x18], ax
push 0x3a
pop eax
mov word [ebp - 0x16], ax
mov eax, esi
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
call fcn.7dd8f174
cmp eax, 4
je 0x7dd8090d
jmp 0x7ddaed05
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x1c]
call fcn.7dd80210
jmp 0x7dd80986
cmp dword [ebp - 0x30], ebx
jne 0x7dd809aa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
jmp 0x7dd80a67
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call edi
mov ebx, dword [ebp - 0x1c]
cmp word [ebx], 0x5c
jne 0x7ddaed8b
cmp word [ebx + 2], 0x3f
jne 0x7ddaed8b
cmp word [ebx + 4], 0x3f
jne 0x7ddaed8b
cmp word [ebx + 6], 0x5c
jne 0x7ddaed8b
lea esi, [ebx + 8]
cmp word [esi], 0
je 0x7ddaed6a
cmp word [ebx + 0xa], 0x3a
jne 0x7ddaed6a
push ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx eax, word [ebp - 0x24]
sub eax, 6
push eax
push esi
push ebx
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
jmp 0x7ddaed71
push 0x5c
pop eax
mov word [ebx + 2], ax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp - 0x40]
inc eax
push dword [ebp - 0x1c]
push eax
call fcn.7dd80719
mov ebx, eax
jmp 0x7ddaee63
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x24]
push eax
call esi
push 0x7ddaeee0
lea eax, [ebp - 0x48]
push eax
call esi
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
movzx edx, word [ebp - 0x24]
lea ebx, [eax + ecx]
mov word [ebp - 0x3c], bx
mov eax, dword [ebp - 0x3c]
add eax, 2
movzx ecx, cx
movzx esi, ax
add ecx, edx
cmp esi, ecx
jb 0x7ddaee7d
cmp ax, bx
jb 0x7ddaee7d
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push esi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x7ddaee0f
push dword [ebp - 0x1c]
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
jmp 0x7ddaeb35
movzx eax, word [ebp - 0x48]
push eax
push dword [ebp - 0x44]
push esi
call sub.ntdll.dll_memcpy
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x48]
push dword [ebp - 0x20]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0x18
push dword [ebp + 0x14]
movzx eax, bx
push dword [ebp - 0x40]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp + 8]
push esi
inc eax
push eax
call fcn.7dd80719
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
push dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
mov eax, ebx
jmp 0x7dd80a08
push 0x6f
jmp 0x7ddaeed5
mov cx, word [ebp - 0x34]
mov word [eax], cx
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x7dd80989
mov eax, dword [ebp - 0x20]
lea eax, [eax + ebx*2 - 2]
cmp word [eax], 0x5c
jne 0x7dd809c9
xor ecx, ecx
mov word [eax], cx
mov eax, 0xfffe
add word [ebp - 0x24], ax
dec ebx
jmp 0x7dd809c9
push dword [ebp - 0x28]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
push 0xce
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd80a67