Function at 0x42f8b0
Capabilities:
Get storage device properties

Disassembly:
push 0x2e4
mov eax, 0x48e5d1
call fcn.0046dbc1
mov dword [ebp - 0x2e0], ecx
xor eax, eax
mov dword [ebp - 0x2d4], eax
push eax
lea eax, [ebp - 0x210]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42fbe9
xor eax, eax
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d0]
push eax
push 8
lea eax, [ebp - 0x2dc]
push eax
push 0xc
lea eax, [ebp - 0x234]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x42f968
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42fbe9
mov esi, dword [ebp - 0x2d8]
push esi
call fcn.0043c7c4
pop ecx
push esi
mov edi, eax
push 0
push edi
call fcn.0046be70
add esp, 0xc
lea eax, [ebp - 0x2d0]
push 0
push eax
push esi
push edi
push 0xc
lea eax, [ebp - 0x234]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x42f9b0
push edi
call fcn.0043c7bf
pop ecx
jmp 0x42f95c
push 7
pop edx
xor ecx, ecx
mov dword [ebp - 0x250], edx
xor eax, eax
mov dword [ebp - 0x254], ecx
mov word [ebp - 0x264], ax
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], ecx
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], ecx
cmp byte [edi + 0xa], al
jne 0x42fb95
mov eax, dword [edi + 0x18]
test eax, eax
je 0x42fabf
add eax, edi
lea ecx, [ebp - 0x228]
push eax
call fcn.004035dc
mov byte [ebp - 4], 1
lea esi, [ebp - 0x228]
cmp dword [ebp - 0x214], 0x10
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x228]
cmovae esi, dword [ebp - 0x228]
add esi, dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0x10
cmovae eax, dword [ebp - 0x228]
add eax, dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0x10
push eax
cmovae ecx, dword [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x2e8]
call fcn.0043013e
pop ecx
pop ecx
push esi
push dword [eax]
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x228]
call fcn.0041162c
push 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00410b63
add eax, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
cmp ecx, eax
je 0x42faa1
push 0xffffffffffffffff
push 0
push eax
call fcn.0040509e
lea ecx, [ebp - 0x2cc]
call fcn.00410e35
push 0
push 1
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0
call fcn.00403790
mov eax, dword [edi + 0x10]
test eax, eax
je 0x42fb95
add eax, edi
lea ecx, [ebp - 0x228]
push eax
call fcn.004035dc
mov byte [ebp - 4], 3
lea esi, [ebp - 0x228]
cmp dword [ebp - 0x214], 0x10
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x228]
cmovae esi, dword [ebp - 0x228]
add esi, dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0x10
cmovae eax, dword [ebp - 0x228]
add eax, dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0x10
push eax
cmovae ecx, dword [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x2ec]
call fcn.0043013e
pop ecx
pop ecx
push esi
push dword [eax]
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x228]
call fcn.0041162c
push 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x298]
call fcn.00410b63
add eax, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
cmp ecx, eax
je 0x42fb77
push 0xffffffffffffffff
push 0
push eax
call fcn.0040509e
lea ecx, [ebp - 0x298]
call fcn.00410e35
push 0
push 1
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0
call fcn.00403790
push edi
call fcn.0043c7bf
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
jne 0x42fbb5
cmp dword [ebp - 0x23c], 0
je 0x42fbc7
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x264]
push eax
call fcn.0042fda7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
push 0
push 1
call fcn.00405131
push 0
push 1
lea ecx, [ebp - 0x264]
call fcn.00405131
mov eax, dword [ebp - 0x2d4]
inc eax
mov dword [ebp - 0x2d4], eax
cmp eax, 5
jb 0x42f8cd
call fcn.0046db70
ret