Function at 0x7dd80749
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 0x7ddaeb0a
cmp ecx, edi
je 0x7dd80a90
cmp eax, edi
je 0x7dd80a90
cmp dword [ebp + 0x14], edi
je 0x7dd80a90
push edi
push edi
push edi
xor edx, edx
push ecx
mov word [eax], dx
call fcn.7dd741d1
mov esi, eax
cmp esi, edi
je 0x7dd80a97
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 0x7ddaeb14
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.7dd741d1
push dword [ebp - 0x28]
test eax, eax
je 0x7ddaeb1b
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 0x7dd80841
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 0x7ddaeb33
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 0x7ddaeb4b
movzx eax, word [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
shr eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x7ddaeb58
push esi
call fcn.7dd74288
push 0x7dd80058
push esi
mov ebx, eax
call dword [sym.imp.ntdll.dll__wcsicmp]
push 0x7dd80044
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 0x10
cmp ebx, 4
je 0x7ddaeb5f
xor ebx, ebx
cmp word [ebp - 0x3c], 6
je 0x7dd80992
cmp word [ebp - 0x3c], 0xe
je 0x7ddaec2c
mov edi, 0x2000
push edi
push dword [ebp - 0x1c]
push esi
call fcn.7dd80240
cmp eax, ebx
jne 0x7dd809b6
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x1c]
push esi
call fcn.7dd80661
cmp eax, ebx
jne 0x7ddaecb5
cmp dword [ebp - 0x2c], ebx
je 0x7dd80a65
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
push 0x5c
pop esi
cmp word [eax], bx
jne 0x7ddaeba4
cmp dword [ebp - 0x2c], ebx
je 0x7dd80a78
cmp word [ebp - 0x24], 2
jbe 0x7dd809b9
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
shr eax, 1
dec eax
dec eax
je 0x7dd80963
cmp word [ecx + eax*2], si
je 0x7dd80963
dec eax
jne 0x7dd8095a
cmp eax, ebx
je 0x7dd809b9
cmp dword [ebp - 0x2c], ebx
je 0x7dd80a9b
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 0x7dd8087d
mov eax, dword [ebp - 0x38]
cmp word [eax + 2], 0x3a
jne 0x7dd808f5
push 0x2000
push dword [ebp - 0x1c]
push esi
call fcn.7dd80240
cmp eax, ebx
je 0x7ddaec76
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 0x7ddaecc6
cmp word [ebp - 0x24], 2
jb 0x7dd80a88
movzx ebx, word [ebp - 0x24]
shr ebx, 1
je 0x7dd809f9
lea eax, [ebx + 1]
cmp eax, dword [ebp + 0x14]
ja 0x7ddaee77
movzx eax, word [ebp - 0x24]
mov edx, dword [ebp + 0x14]
lea ecx, [eax + 2]
add edx, edx
cmp edx, ecx
jb 0x7ddaee9c
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 0x7dd8092b
jmp 0x7ddaeb98
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x7dd80946
jmp 0x7ddaee60
mov ebx, dword [ebp - 0x4c]
jmp 0x7dd809f9
push 0x57
jmp 0x7ddaeeb4
xor eax, eax
jmp 0x7dd80a38
xor edx, edx
mov word [ecx + eax*2 + 2], dx
jmp 0x7dd80982
push 0xa1
jmp 0x7ddaeeb4
push 8
jmp 0x7ddaeeb4
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd80a97
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 0x7ddaeb14
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor ebx, ebx
jmp 0x7dd8092b
push 0xc0000033
jmp 0x7ddaeb4c
xor ebx, ebx
cmp edi, ebx
je 0x7dd808df
cmp eax, ebx
je 0x7dd808df
lea eax, [ebp - 0x2c]
push eax
push 0x2000
push dword [ebp - 0x1c]
push esi
call fcn.7dd80661
cmp eax, ebx
jne 0x7dd809b6
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddaec79
mov dword [ebp - 0x2c], 1
jmp 0x7dd8092b
movzx edx, word [edi]
cmp dx, si
jne 0x7ddaebdb
cmp word [edi + 2], si
jne 0x7ddaebdb
movzx eax, word [edi + 4]
cmp ax, 0x2e
je 0x7ddaebc6
cmp ax, 0x3f
jne 0x7dd8093d
cmp word [edi + 6], si
jne 0x7dd8093d
cmp word [edi + 0xa], 0x3a
jne 0x7dd8093d
movzx ecx, word [edi + 2]
cmp cx, 0x3a
je 0x7ddaec26
cmp dx, si
jne 0x7ddaece4
cmp cx, si
jne 0x7ddaece4
movzx eax, word [edi + 4]
cmp ax, 0x2e
je 0x7ddaec0b
cmp ax, 0x3f
jne 0x7ddaece4
cmp word [edi + 6], si
jne 0x7ddaece4
cmp word [edi + 0xa], 0x3a
jne 0x7ddaece4
cmp cx, 0x3a
jne 0x7ddaec86
mov word [ebp - 0x18], dx
jmp 0x7ddaec8e
mov eax, dword [ebp - 0x38]
cmp word [eax], 0x5c
jne 0x7dd808f5
cmp word [eax + 2], 0x5c
jne 0x7dd808f5
movzx ecx, word [eax + 4]
cmp cx, 0x2e
je 0x7ddaec58
cmp cx, 0x3f
jne 0x7dd808f5
cmp word [eax + 6], 0x5c
jne 0x7dd808f5
cmp word [eax + 0xa], 0x3a
jne 0x7dd808f5
add esi, 8
jmp 0x7dd809a0
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [ecx], ax
jmp 0x7dd80922
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.7dd8f19a
cmp eax, 4
je 0x7dd8093d
jmp 0x7ddaece4
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x1c]
call fcn.7dd80240
jmp 0x7dd809b6
cmp dword [ebp - 0x30], ebx
jne 0x7dd809da
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
jmp 0x7dd80a97
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 0x7ddaed6a
cmp word [ebx + 2], 0x3f
jne 0x7ddaed6a
cmp word [ebx + 4], 0x3f
jne 0x7ddaed6a
cmp word [ebx + 6], 0x5c
jne 0x7ddaed6a
lea esi, [ebx + 8]
cmp word [esi], 0
je 0x7ddaed49
cmp word [ebx + 0xa], 0x3a
jne 0x7ddaed49
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 0x7ddaed50
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.7dd80749
mov ebx, eax
jmp 0x7ddaee42
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x24]
push eax
call esi
push 0x7ddaeec0
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 0x7ddaee5c
cmp ax, bx
jb 0x7ddaee5c
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 0x7ddaedee
push dword [ebp - 0x1c]
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
jmp 0x7ddaeb14
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.7dd80749
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 0x7dd80a38
push 0x6f
jmp 0x7ddaeeb4
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 0x7dd809b9
mov eax, dword [ebp - 0x20]
lea eax, [eax + ebx*2 - 2]
cmp word [eax], 0x5c
jne 0x7dd809f9
xor ecx, ecx
mov word [eax], cx
mov eax, 0xfffe
add word [ebp - 0x24], ax
dec ebx
jmp 0x7dd809f9
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 0x7dd80a97