Function at 0x42f3f0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x4b3a11
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2be0]
xor eax, esp
push eax
lea eax, [esp + 0x85c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x86c]
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
xor ebp, ebp
mov dword [esp + 0x24], ebp
push esi
push str..PhysicalDrive_d
mov eax, 0x200
lea ebx, [esp + 0x65c]
mov dword [esp + 0x86c], ebp
call fcn.0042ef80
add esp, 8
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42f494
call fcn.0040cf4a
cmp eax, edi
je 0x42f49a
mov dword [esp + 0x864], 0xffffffff
jmp 0x42f779
mov ebp, eax
mov dword [esp + 0x24], ebp
push 0x3e8
lea edx, [esp + 0x270]
push edi
push edx
call fcn.00474a10
add esp, 0xc
xor eax, eax
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push 0x3e8
lea ecx, [esp + 0x278]
push ecx
push 0xc
lea edx, [esp + 0x4c]
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42f763
cmp ebp, edi
je 0x42f509
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x24], ebp
cmp byte [esp + 0x276], 0
jne 0x42f763
mov eax, dword [esp + 0x288]
cmp eax, 1
je 0x42f763
cmp eax, 0xa
je 0x42f763
cmp eax, 4
je 0x42f763
cmp eax, 7
je 0x42f763
cmp eax, 0xe
je 0x42f763
cmp eax, 0xf
je 0x42f763
lea ecx, [esp + 0x18]
call fcn.0042ad00
lea ecx, [esp + 0x1c]
call fcn.0042ad00
lea eax, [esp + 0x1c]
push eax
mov ebx, 2
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x86c], bl
call fcn.0042f1e0
add esp, 8
test eax, eax
je 0x42f595
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], edi
jne 0x42f7b5
lea ecx, [esp + 0x1c]
call fcn.0042b140
lea ecx, [esp + 0x18]
mov byte [esp + 0x864], 0
call fcn.0042b140
mov edi, dword [esp + 0x284]
mov eax, dword [esp + 0x270]
cmp edi, eax
jae 0x42f5d5
mov esi, dword [esp + 0x278]
cmp esi, eax
jae 0x42f5d5
cmp dword [esp + 0x27c], eax
jb 0x42f5dc
test ebp, ebp
jmp 0x42f765
push 0x104
lea edx, [esp + 0x168]
push 0
push edx
call fcn.00474a10
add esp, 0xc
test edi, edi
je 0x42f661
lea edi, [esp + 0x44]
mov dword [esp + 0x44], 0x11c
mov esi, 1
call fcn.00429ad0
test eax, eax
je 0x42f624
mov eax, dword [esp + 0x48]
cmp eax, 6
ja 0x42f622
jne 0x42f624
cmp dword [esp + 0x4c], ebx
jb 0x42f624
xor esi, esi
mov eax, dword [esp + 0x284]
lea eax, [esp + eax + 0x26c]
mov ecx, 0x104
lea edx, [esp + 0x164]
call fcn.0040b403
mov ebx, dword [esp + 0x20]
push esi
push ebx
lea ecx, [esp + 0x16c]
call fcn.0042f0e0
mov esi, dword [esp + 0x280]
add esp, 8
jmp 0x42f665
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x42f674
test ebp, ebp
jmp 0x42f765
push 0x104
lea ecx, [esp + 0x168]
push 0
push ecx
call fcn.00474a10
add esp, 0xc
test esi, esi
je 0x42f6c8
lea edi, [esp + 0x2c]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + esi + 0x26c]
call fcn.0042fa80
test eax, eax
jl 0x42f6c8
mov eax, dword [esp + 0x2c]
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax + 0x164]
mov eax, esi
call fcn.0042fa30
cmp byte [esp + 0x164], 0
je 0x42f6e5
push 0x4d7c8c
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x42f729
lea edi, [esp + 0x30]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + eax + 0x26c]
call fcn.0042fa80
test eax, eax
jl 0x42f729
mov eax, dword [esp + 0x30]
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax + 0x164]
mov eax, esi
call fcn.0042fa30
cmp byte [esp + 0x164], 0
je 0x42f755
push 0x4d7c8c
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [esp + 0x164]
push ecx
mov ecx, ebx
call fcn.0042f800
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
jne 0x42f7f5
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x864], 0xffffffff
je 0x42f779
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x28]
inc esi
cmp esi, 0x10
mov dword [esp + 0x28], esi
jl 0x42f43c
xor eax, eax
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.00474a8a
add esp, 0x854
ret
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0042e720
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0042ada0
lea ecx, [esp + 0x1c]
call fcn.0042b140
lea ecx, [esp + 0x18]
call fcn.0042b140
cmp ebp, edi
je 0x42f7ee
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x42f78d
test ebp, ebp
jmp 0x42f7e5