Function at 0x42beb0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x4bd4e1
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9b30]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], esi
xor ebp, ebp
mov dword [esp + 0x18], ebp
push esi
push str..PhysicalDrive_d
mov eax, 0x200
lea ebx, [esp + 0x65c]
mov dword [esp + 0x868], ebp
call fcn.0042b960
add esp, 8
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42bf54
call fcn.0042b840
cmp eax, ebx
je 0x42bf5a
mov dword [esp + 0x860], 0xffffffff
jmp 0x42c236
mov ebp, eax
mov dword [esp + 0x18], ebp
push 0x3e8
lea ecx, [esp + 0x270]
push ebx
push ecx
call fcn.00458690
add esp, 0xc
push ebx
xor eax, eax
lea edx, [esp + 0x38]
push edx
push 0x3e8
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x278]
push eax
push 0xc
lea ecx, [esp + 0x4c]
push ecx
push 0x2d1400
push ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42c220
cmp ebp, ebx
je 0x42bfc9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp byte [esp + 0x276], bl
jne 0x42c220
mov eax, dword [esp + 0x288]
cmp eax, 1
je 0x42c220
cmp eax, 0xa
je 0x42c220
cmp eax, 4
je 0x42c220
cmp eax, 7
je 0x42c220
cmp eax, 0xe
je 0x42c220
cmp eax, 0xf
je 0x42c220
lea ecx, [esp + 0x1c]
call fcn.004261b0
lea ecx, [esp + 0x24]
call fcn.004261b0
lea edx, [esp + 0x24]
push edx
mov ebx, 2
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x868], bl
call fcn.0042bc80
add esp, 8
test eax, eax
je 0x42c055
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x42c272
lea ecx, [esp + 0x24]
call fcn.004261d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x860], 0
call fcn.004261d0
lea eax, [esp + 0x26c]
call fcn.0042be90
test eax, eax
jne 0x42c098
lea esi, [esp + 0x18]
mov dword [esp + 0x860], 0xffffffff
call fcn.0042b8a0
jmp 0x42c236
push 0x104
lea ecx, [esp + 0x168]
push 0
push ecx
call fcn.00458690
add esp, 0xc
cmp dword [esp + 0x284], 0
je 0x42c11a
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], 0x11c
mov esi, 1
call fcn.00424ed0
add esp, 4
test eax, eax
je 0x42c0ea
mov eax, dword [esp + 0x48]
cmp eax, 6
ja 0x42c0e8
jne 0x42c0ea
cmp dword [esp + 0x4c], ebx
jb 0x42c0ea
xor esi, esi
mov eax, dword [esp + 0x284]
lea eax, [esp + eax + 0x26c]
mov edx, 0x104
lea ecx, [esp + 0x164]
call fcn.00427d80
push esi
push edi
lea ecx, [esp + 0x16c]
call fcn.0042bb80
add esp, 8
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x42c07f
push 0x104
lea ecx, [esp + 0x168]
push 0
push ecx
call fcn.00458690
mov eax, dword [esp + 0x284]
add esp, 0xc
test eax, eax
je 0x42c185
lea edi, [esp + 0x2c]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + eax + 0x26c]
call fcn.0042c6c0
test eax, eax
jl 0x42c181
mov eax, dword [esp + 0x2c]
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax + 0x164]
mov eax, esi
call fcn.0042c670
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x164], 0
je 0x42c1a2
push 0x4ce9dc
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x42c1ea
lea edi, [esp + 0x30]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + eax + 0x26c]
call fcn.0042c6c0
test eax, eax
jl 0x42c1e6
mov eax, dword [esp + 0x30]
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax + 0x164]
mov eax, esi
call fcn.0042c670
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x164], 0
je 0x42c216
push 0x4ce9dc
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [esp + 0x164]
push ecx
mov ecx, edi
call fcn.0042c2b0
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jne 0x42c29c
xor ebx, ebx
mov dword [esp + 0x860], 0xffffffff
cmp ebp, ebx
je 0x42c236
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 0x42bef7
xor eax, eax
mov ecx, dword [esp + 0x858]
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.0045870a
add esp, 0x850
ret
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0042a880
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004262b0
lea ecx, [esp + 0x24]
call fcn.004261d0
lea ecx, [esp + 0x1c]
call fcn.004261d0
lea esi, [esp + 0x18]
call fcn.0042b8a0
mov eax, 1
jmp 0x42c24a