Function at 0x4acf83
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5984ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push edi
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x270], 0
push 0x14
lea ecx, [ebp - 0x218]
call fcn.00499510
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
push 0
push str..PhysicalDrive
lea ecx, [ebp - 0x218]
call fcn.0049e690
mov ecx, eax
call fcn.004ae420
lea ecx, [ebp - 0x218]
call fcn.0049eca0
push eax
mov ecx, dword [ebp - 0x274]
call fcn.004ad9cf
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4ad037
mov ecx, dword [ebp + 8]
call fcn.00540f00
mov ecx, dword [ebp - 0x270]
or ecx, 1
mov dword [ebp - 0x270], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.004995e0
mov eax, dword [ebp + 8]
jmp 0x4ad2f9
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x21c], 0
mov byte [ebp - 0x210], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0x200
lea eax, [ebp - 0x210]
push eax
push 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x230], eax
push 0x14
lea ecx, [ebp - 0x22c]
call fcn.00498e30
mov byte [ebp - 4], 2
cmp dword [ebp - 0x230], 0
je 0x4ad29c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
cmp dword [edx + 0x10], 0
je 0x4ad0fc
cmp dword [ebp + 0x14], 0
je 0x4ad0fc
push 0
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax + 0x10]
lea edx, [ebp + ecx - 0x210]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00499170
mov eax, dword [ebp - 0x260]
cmp dword [eax + 0x14], 0
je 0x4ad129
cmp dword [ebp + 0x18], 0
je 0x4ad129
push 0
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 0x14]
lea eax, [ebp + edx - 0x210]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.00499170
mov ecx, dword [ebp - 0x260]
cmp dword [ecx + 0x18], 0
je 0x4ad156
cmp dword [ebp + 0x10], 0
je 0x4ad156
push 0
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 0x18]
lea ecx, [ebp + eax - 0x210]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00499170
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp - 0x274]
call fcn.004adb13
mov byte [ebp - 4], 3
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x254], 3
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x24c], 0xd
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x244], 0x12
mov dword [ebp - 0x240], 0x13
mov dword [ebp - 0x23c], 0x17
mov dword [ebp - 0x238], 0x19
mov dword [ebp - 0x234], 0x1f
push 0
push 0xa
lea ecx, [ebp - 0x22c]
call fcn.004991d0
mov dword [ebp - 0x25c], 0
jmp 0x4ad205
mov edx, dword [ebp - 0x25c]
add edx, 1
mov dword [ebp - 0x25c], edx
cmp dword [ebp - 0x25c], 0xa
jge 0x4ad28d
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp + eax*4 - 0x258]
sub ecx, 1
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x264]
call fcn.004adfc0
mov al, byte [eax]
mov byte [ebp - 0x268], al
mov ecx, dword [ebp - 0x268]
and ecx, 0xff
cmp ecx, 0x41
jl 0x4ad26e
mov edx, dword [ebp - 0x268]
and edx, 0xff
cmp edx, 0x5a
jg 0x4ad26e
mov al, byte [ebp - 0x268]
add al, 0x20
mov byte [ebp - 0x268], al
mov ecx, dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.004adfc0
mov dl, byte [ebp - 0x268]
mov byte [eax], dl
jmp 0x4ad1f6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.004995e0
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x22c]
call fcn.004992b0
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00498ea0
mov edx, dword [ebp - 0x270]
or edx, 1
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.004995e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.004995e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0x14