Function at 0x4140dc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x34e0
call fcn.00413dc0
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x9e8]
push str..PhysicalDrive_d
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x9e8]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x414339
push esi
push edi
push 0xc
lea eax, [ebp - 0x18]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call sub.MSVCRT.dll_memset
mov esi, 0x2710
lea eax, [ebp - 0x34e0]
push esi
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x34e0]
push esi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x414275
mov edx, 0xf9
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], bl
mov byte [ebp - 0x7e8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x7e7]
mov byte [ebp - 0xdd0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xdcf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xdd0]
push eax
push ebx
push dword [ebp - 0x34d4]
lea eax, [ebp - 0x34e0]
push eax
call fcn.00413f7c
lea eax, [ebp - 0x7e8]
push eax
push ebx
push dword [ebp - 0x34d0]
lea eax, [ebp - 0x34e0]
push eax
call fcn.00413f7c
lea eax, [ebp - 0x400]
push eax
push 1
pop edi
lea eax, [ebp - 0x34e0]
push edi
push dword [ebp - 0x34c8]
push eax
call fcn.00413f7c
lea eax, [ebp - 0x7e8]
push eax
push 0x423f00
call sub.MSVCRT.dll_strcpy
add esp, 0x38
cmp byte [0x4234f0], bl
jne 0x414268
movzx eax, byte [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll_isalnum]
test eax, eax
pop ecx
jne 0x414253
movzx eax, byte [ebp - 0x3ed]
push eax
call dword [sym.imp.MSVCRT.dll_isalnum]
test eax, eax
pop ecx
je 0x414268
lea eax, [ebp - 0x400]
push eax
push 0x4234f0
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x41427b
cmp byte [0x423f00], bl
je 0x41427b
mov dword [ebp - 8], edi
jmp 0x41427b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea eax, [ebp - 0x34e0]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x34e0]
push esi
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x414328
mov ax, word [0x424300]
mov ecx, 0xf9
mov word [ebp - 0x400], ax
xor eax, eax
lea edi, [ebp - 0x3fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x34d0]
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strcpy
cmp byte [0x4234f0], bl
pop ecx
pop ecx
jne 0x41432e
movsx eax, byte [ebp - 0x400]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
push eax
call esi
test eax, eax
pop ecx
jne 0x41430c
movsx eax, byte [ebp - 0x3ed]
push eax
call esi
test eax, eax
pop ecx
je 0x41432e
lea eax, [ebp - 0x400]
push eax
push 0x4234f0
call sub.MSVCRT.dll_strcpy
pop ecx
mov dword [ebp - 8], 1
pop ecx
jmp 0x41432e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret