Function at 0x10044870
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov esi, 1
xor edx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], esi
mov dword [ecx], ebx
mov dword [ebp - 0x2c], edx
push edi
jmp 0x100448b0
xor ecx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
cmp edx, 3
ja case.default.0x100448c4
jmp dword [edx*4 + 0x10044a68]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov edi, 8
lea esi, [ebp - 0x24]
jmp 0x10044941
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
mov edi, eax
cmp eax, ebx
je 0x100448ff
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x10044a27
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
jmp 0x1004493d
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov edi, 8
lea esi, [ebp - 0x24]
jmp 0x10044941
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov edi, eax
cmp eax, ebx
je 0x1004493a
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x10044a14
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x1004499e
push edi
push ebx
push esi
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [eax + 0x318]
push edi
push esi
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1004499b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
sub eax, 1
je 0x10044990
sub eax, 0x31
je 0x10044990
sub eax, 0xb8
jne 0x10044a11
push edi
push ebx
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
inc edx
mov dword [ebp - 0x2c], edx
cmp edx, 4
jae 0x100449c8
mov esi, 1
jmp 0x100448b0
push 0x24e
push str.d:_build_ob_bora_4448491_bora_lib_wiper_guestUnmap.c
push str.NOT_REACHED__s:_d_n
call sym.vmtools.dll_Panic
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x100449de
push str.No_adapter_descriptor_supported_on_the_device._n
call sym.vmtools.dll_Log
add esp, 4
jmp 0x100449e6
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
cmp dword [ebp - 0x14], ebx
jne 0x100449f8
push str.No_device_descriptor_supported_on_the_device._n
call sym.vmtools.dll_Log
add esp, 4
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
call fcn.10044640
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.10044750
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x10044a2a
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x10044a2a
mov esi, dword [ebp - 0x14]
pop edi
cmp esi, ebx
je 0x10044a39
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov esi, dword [ebp - 0x28]
cmp esi, ebx
je 0x10044a51
mov ecx, dword [ebp - 0x30]
push ecx
push str.Error_Getting_Alignment_mask_for_device__d._n
call sym.vmtools.dll_Log
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, ebx
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret