Function at 0x4913c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49fc6e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e24e0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push edi
mov eax, dword [0x4e24e0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
mov edi, esi
call fcn.00403310
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x20], ecx
call fcn.004032b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push ebx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.00403170
mov edx, dword [0x4e768c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e768c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 8]
push ecx
xor ebx, ebx
push str..PhysicalDrive_u
lea edi, [esp + 0x28]
mov dword [esp + 0x78], ebx
call fcn.00410c60
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x491612
xor eax, eax
push eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x34]
push ecx
push 0xc
lea edx, [esp + 0x68]
push edx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4915fa
mov eax, dword [esp + 0x2c]
push 0x4e777e
push eax
mov dword [esp + 0x18], eax
call fcn.00446936
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4915fa
mov eax, dword [esp + 0x10]
push eax
push 0
push ebx
call fcn.0044b7d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push 0xc
lea eax, [esp + 0x68]
push eax
push 0x2d1400
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4915fa
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4915fa
cmp eax, dword [esp + 0x10]
jae 0x4915fa
lea edx, [esp + 0x10]
lea ecx, [eax + ebx]
push edx
call fcn.00402630
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x74], 1
call fcn.00405310
mov edi, eax
call fcn.004053a0
mov edx, dword [esp + 0x10]
mov eax, edx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491581
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.004100e0
lea ecx, [esp + 0x30]
push esi
push ecx
mov byte [esp + 0x78], 2
call fcn.0048fe60
add esp, 8
cmp dword [esp + 0x48], 0x10
jb 0x4915bc
mov edx, dword [esp + 0x34]
push edx
call fcn.0044556f
add esp, 4
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4915f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
test edi, edi
je 0x491605
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x491612
push ebx
call fcn.00446717
add esp, 4
cmp dword [esi + 0x14], 0
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x20]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491641
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0044557a
mov esp, ebp
pop ebp
ret