Function at 0x7de16193
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x7de161b2
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7de164a1
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
test eax, eax
jge 0x7de161c9
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7de161ab
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push esi
push 0x5c
shr eax, 1
pop esi
cmp word [ecx + eax*2 - 2], si
je 0x7de161e9
push 0xc0000033
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7de161fc
push ebx
call fcn.7dd74288
cmp eax, 4
jne 0x7de16203
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7de164a0
cmp word [ebp - 0x10], 6
jne 0x7de162a7
mov eax, dword [ebp - 0xc]
cmp word [eax + 2], 0x3a
je 0x7de162f4
push edi
or edi, 0xffffffff
push edi
push 0x80
push 3
push 0
push 3
mov esi, 0xc0000000
push esi
push 0x7dd80508
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
cmp eax, edi
je 0x7de1649d
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push edi
push 0x2200080
push 3
push 0
push 7
push esi
push ebx
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
mov dword [ebp - 4], eax
cmp eax, edi
je 0x7de1649d
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 dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x7de162ff
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7de1649d
cmp word [ebp - 0x10], 0xe
jne 0x7de1621c
mov eax, dword [ebp - 0xc]
cmp word [eax], si
jne 0x7de1621c
cmp word [eax + 2], si
jne 0x7de1621c
movzx ecx, word [eax + 4]
cmp cx, 0x2e
je 0x7de162dc
cmp cx, 0x3f
jne 0x7de1621c
cmp word [eax + 6], si
jne 0x7de1621c
cmp word [eax + 0xa], 0x3a
jne 0x7de1621c
add ebx, 8
push ebx
call fcn.7de15ff5
jmp 0x7de164a0
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
push ebx
push 0x900a8
push dword [ebp - 4]
call sub.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl
test eax, eax
je 0x7de16481
cmp dword [edi], 0xa0000003
jne 0x7de16481
movzx eax, word [edi + 8]
mov dx, word [edi + 0xa]
lea esi, [eax + edi + 0x10]
cmp dx, 0x60
je 0x7de16350
cmp dx, 0x62
jne 0x7de1645e
cmp word [esi + 0x60], 0x5c
jne 0x7de1645e
cmp word [esi], 0x5c
jne 0x7de1645e
movzx ecx, word [esi + 2]
cmp cx, 0x3f
je 0x7de1636e
cmp cx, 0x5c
jne 0x7de1645e
cmp word [esi + 4], 0x3f
jne 0x7de1645e
cmp word [esi + 6], 0x5c
jne 0x7de1645e
cmp word [esi + 8], 0x56
jne 0x7de1645e
cmp word [esi + 0xa], 0x6f
jne 0x7de1645e
cmp word [esi + 0xc], 0x6c
jne 0x7de1645e
cmp word [esi + 0xe], 0x75
jne 0x7de1645e
cmp word [esi + 0x10], 0x6d
jne 0x7de1645e
cmp word [esi + 0x12], 0x65
jne 0x7de1645e
cmp word [esi + 0x14], 0x7b
jne 0x7de1645e
push 0x2d
pop eax
cmp word [esi + 0x26], ax
jne 0x7de1645e
cmp word [esi + 0x30], ax
jne 0x7de1645e
cmp word [esi + 0x3a], ax
jne 0x7de1645e
cmp word [esi + 0x44], ax
jne 0x7de1645e
cmp word [esi + 0x5e], 0x7d
jne 0x7de1645e
cmp dx, 0x62
jne 0x7de1645e
cmp cx, 0x3f
jne 0x7de1645e
push ebx
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 8
push edi
push 0x900ac
push dword [ebp - 4]
call sub.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl
push dword [ebp - 4]
mov ebx, eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
test ebx, ebx
je 0x7de16445
push 0x5c
pop eax
mov word [esi + 2], ax
xor eax, eax
push eax
push esi
push dword [ebp + 8]
mov word [esi + 0x62], ax
call fcn.7de15e99
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x7de1649f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 0x57
jmp 0x7de1629c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4