Function at 0x40de20
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2c18
call fcn.0041f090
movsx eax, word [0x4274fc]
push ebx
push ebp
push esi
push edi
push eax
push 0x6451ffff
mov esi, ecx
call fcn.0040c7b0
mov ecx, dword [0x427528]
push ecx
push 0x6cb3ffff
mov byte [0x4274d9], al
call fcn.0040c8a0
mov edx, dword [0x427518]
mov dword [0x427514], eax
movsx eax, byte [0x4274dd]
push eax
or edx, 0x6823ffff
xor ebx, ebx
push 0xe875ffff
mov dword [0x42752c], edx
mov dword [esp + 0x2c], ebx
call fcn.0040c760
mov ecx, dword [0x427528]
movsx edx, byte [0x4274dd]
push ecx
push edx
mov word [0x4274fc], ax
call fcn.0040c7f0
add esp, 0x20
xor edi, edi
mov dword [0x427510], eax
mov byte [0x4274df], 1
mov dword [esp + 0x18], edi
lea esp, [esp]
mov eax, dword [0x427520]
push 0x42dbffff
push eax
mov dword [0x427524], 0xd7500001
call fcn.0040c8a0
push edi
lea ecx, [esp + 0x3c]
push str..PhysicalDrive_d
push ecx
mov dword [0x427518], eax
call dword [sym.imp.MSVCR71.dll_sprintf]
movsx ax, byte [0x4274d9]
movsx dx, byte [0x4274e0]
mov cx, word [0x427504]
or word [0x427500], cx
imul edx, eax
mov eax, dword [0x427520]
mov word [0x4274f4], dx
mov edx, dword [0x427514]
push edx
push eax
call fcn.0040c7f0
push 0xd589ffff
push 0x194fffff
mov byte [0x4274d8], al
call fcn.0040c870
add esp, 0x24
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x48]
push ecx
mov word [0x4274f4], ax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edx, dword [0x427518]
mov ebp, eax
push 0x6d05ffff
push edx
mov dword [esp + 0x24], ebp
mov byte [0x4274dc], 0xff
call fcn.0040c8e0
movsx ecx, byte [0x4274dc]
mov word [0x4274e8], ax
movsx eax, byte [0x4274d8]
push eax
push ecx
call fcn.0040c8e0
movsx dx, byte [0x4274de]
movsx cx, byte [0x4274d9]
add esp, 0x10
mov word [0x4274f4], ax
sub ecx, edx
cmp ebp, 0xffffffff
mov word [0x427500], cx
je 0x40e4bd
mov cl, byte [0x427514]
dec ax
mov word [0x427504], ax
mov al, byte [0x4274e4]
xor edx, edx
or al, cl
mov ecx, dword [0x427520]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
push ecx
push 0x18c5ffff
mov dword [esp + 0x28], ebx
mov dword [0x42750c], 0x767dffff
mov word [0x4274f0], 0xffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [0x4274de], al
call fcn.0040c760
movsx edx, byte [0x4274db]
mov word [0x4274ec], ax
movsx eax, byte [0x4274de]
push edx
push eax
call fcn.0040c8a0
mov edx, dword [0x42751c]
mov word [0x4274f0], ax
xor eax, eax
mov ecx, 0x9c4
lea edi, [esp + 0x528]
rep stosd dword es:[edi], eax
movsx ecx, byte [0x4274de]
push ecx
push edx
mov dword [0x427510], 0x2f480001
call fcn.0040c7b0
movsx cx, byte [0x4274dc]
add esp, 0x18
mov dword [0x427528], eax
movsx ax, byte [0x4274de]
push ebx
lea edx, [esp + 0x24]
push edx
push 0x2710
mov dword [0x42751c], 0x62140000
sub ecx, eax
lea eax, [esp + 0x524]
push eax
push 0xc
mov word [0x4274f4], cx
lea ecx, [esp + 0x38]
push ecx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x40e3da
mov edx, dword [0x427528]
movsx eax, word [0x4274fc]
imul edx, edx, 0xeb29ffff
push 0xf4c9ffff
push eax
mov dword [0x427524], edx
call fcn.0040c830
movsx ecx, word [0x4274e4]
mov byte [0x4274de], al
movsx eax, byte [0x4274db]
mov edx, 0x46ebffff
push eax
sub edx, ecx
push 0x207fffff
mov dword [0x427520], edx
call fcn.0040c8a0
movsx ecx, word [0x4274e8]
push 0x30cdffff
push ecx
mov dword [0x42751c], eax
call fcn.0040c720
push 0x1dd5ffff
push 0xf223ffff
mov byte [0x4274db], al
call fcn.0040c870
mov edx, dword [esp + 0x550]
mov byte [0x4274dd], al
add esp, 0x20
lea eax, [esp + edx + 0x518]
push eax
mov ecx, esi
call fcn.0040da20
lea ecx, [esp + 0x130]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp dl, bl
jne 0x40e160
mov edx, dword [0x42750c]
movsx cx, byte [0x4274d8]
mov eax, dword [0x427518]
mov edi, dword [esp + 0x528]
push edx
push eax
mov word [0x4274f4], cx
lea edi, [esp + edi + 0x520]
call fcn.0040c8e0
push 0x1743ffff
push 0x86dbffff
mov word [0x4274f0], ax
mov word [0x427500], 1
call fcn.0040c7b0
mov ecx, dword [0x427528]
movsx edx, word [0x4274e8]
mov ebp, dword [esp + 0x53c]
push ecx
push edx
mov dword [0x42752c], eax
lea ebp, [esp + ebp + 0x530]
call fcn.0040c870
push 0x4487ffff
push 0x8117ffff
mov word [0x427500], ax
call fcn.0040c870
mov word [0x4274f0], ax
mov eax, dword [0x42751c]
push eax
push 0x254bffff
call fcn.0040c870
mov word [0x427500], ax
mov byte [0x4274de], 0xff
mov al, byte [esi]
add esp, 0x28
cmp al, bl
jne 0x40e242
cmp byte [edi], bl
je 0x40e242
push 0x400
push edi
push esi
call dword [sym.imp.MSVCR71.dll_strncpy]
mov word [0x4274e4], 0xffff
add esp, 0xc
mov byte [esi + 0x3ff], bl
mov dl, byte [0x4274f0]
or cl, 0xff
sub cl, dl
lea edi, [esi + 0x400]
mov byte [0x4274db], cl
cmp byte [edi], bl
jne 0x40e2d6
cmp byte [ebp], bl
je 0x40e2d6
movsx edx, byte [0x4274d8]
push 0xf905ffff
push edx
call fcn.0040c720
push 0x400
push ebp
push edi
mov word [0x427504], ax
call dword [sym.imp.MSVCR71.dll_strncpy]
movsx eax, byte [0x4274db]
or eax, 0x3647ffff
push 0x2761ffff
mov dword [0x427524], eax
push 0xab67ffff
mov byte [esi + 0x7ff], bl
call fcn.0040c8a0
mov ecx, dword [0x427518]
push 0x5cb3ffff
push ecx
mov byte [0x4274df], al
mov dword [0x42751c], 0xb57dffff
call fcn.0040c7f0
add esp, 0x24
mov word [0x4274f0], ax
movsx edx, byte [0x4274df]
movsx eax, byte [0x4274e0]
push edx
push eax
call fcn.0040c8e0
push 0xa843ffff
push 0x3293ffff
mov word [0x4274f4], ax
call fcn.0040c720
movsx ecx, byte [0x4274d9]
movsx edx, byte [0x4274dc]
push ecx
push edx
mov byte [0x4274df], al
call fcn.0040c7f0
lea edi, [esi + 0x800]
mov byte [0x4274d8], al
mov word [0x4274f4], 0xffff
mov al, byte [edi]
add esp, 0x18
cmp al, bl
jne 0x40e3c2
cmp byte [esp + 0x130], bl
je 0x40e3c2
movsx ax, byte [0x4274da]
movsx cx, byte [0x4274de]
push 0x9e03ffff
push 0x3cd3ffff
add eax, ecx
mov word [0x427504], ax
call fcn.0040c830
push 0x400
lea edx, [esp + 0x13c]
push edx
push edi
mov dword [0x427510], eax
mov dword [0x427528], 0x27940001
call dword [sym.imp.MSVCR71.dll_strncpy]
mov dword [0x427520], 0x9e27fffe
mov byte [esi + 0xbff], bl
movsx eax, word [0x4274e4]
mov ecx, dword [0x427520]
push eax
push ecx
call fcn.0040c7f0
add esp, 0x1c
mov word [0x4274f4], ax
mov byte [0x4274df], 0xff
mov cx, word [0x4274fc]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
jmp 0x40e461
movsx edx, word [0x427504]
push edx
push 0xf6d5ffff
call fcn.0040c7b0
mov edx, dword [0x42750c]
mov di, ax
movsx eax, word [0x4274ec]
sub eax, edx
mov dword [0x427524], eax
mov al, byte [0x4274e0]
add esp, 8
cmp al, bl
mov word [0x4274e4], di
je 0x40e428
cmp byte [0x4274d8], bl
mov dword [0x427528], 1
jne 0x40e42e
mov dword [0x427528], ebx
xor ecx, ecx
cmp al, bl
movsx eax, byte [0x4274df]
setne cl
movsx edx, di
imul edx, eax
mov dword [0x427518], edx
movsx edx, word [0x4274f0]
movsx eax, cx
sub edx, eax
mov word [0x4274fc], cx
mov dword [0x42752c], edx
movsx ecx, cx
push 0x1255ffff
push ecx
call fcn.0040c870
push 0x7af9ffff
push 0x3b77ffff
mov word [0x4274fc], ax
call fcn.0040c870
mov edx, dword [0x427524]
push edx
push 0x4f03ffff
mov dword [0x42752c], eax
call fcn.0040c720
add esp, 0x18
push ebp
mov byte [0x4274df], al
mov dword [0x427514], 0x7fffffff
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x14], ebx
jne 0x40e4cb
mov edi, dword [esp + 0x18]
inc edi
cmp edi, 0x10
mov dword [esp + 0x18], edi
jl 0x40dec0
cmp dword [0x427528], ebx
je 0x40e4e2
cmp dword [0x42752c], ebx
mov byte [0x4274dd], 1
jne 0x40e4e8
mov byte [0x4274dd], bl
movsx eax, word [0x4274f8]
mov ecx, dword [0x42750c]
add eax, 0x6543ffff
push 0x2d4fffff
push ecx
mov dword [0x427510], eax
call fcn.0040c7b0
add esp, 8
pop edi
mov dword [0x427528], eax
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret