Function at 0x431912
Capabilities:
Get storage device properties

Disassembly:
push ebp
sub esp, 0xd0c
lea ebp, [esp - 4]
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp + 0xd0c], eax
push 0x90
mov eax, 0x4969b8
call fcn.004648f7
mov eax, dword [ebp + 0xd18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xd1c]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xd20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x24], ebx
or edi, 0xffffffff
mov esi, 0x4a25a0
cmp byte [ebp - 0xd], bl
jne 0x431d7f
push 0x200
lea eax, [ebp + 0x80c]
push ebx
push eax
call fcn.00466400
push dword [ebp - 0x24]
lea eax, [ebp + 0x80c]
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.00430fa8
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp + 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0x44], eax
je 0x431d72
push 0xc
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 0x48], ebx
call fcn.00466400
push 0x800
lea eax, [ebp + 0xc]
push ebx
push eax
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.00466400
add esp, 0x18
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x800
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x431d63
push 0xff
lea eax, [ebp + 0xc0d]
push ebx
push eax
mov byte [ebp + 0xc0c], bl
call fcn.00466400
push 0xff
lea eax, [ebp + 0xb0d]
push ebx
push eax
mov byte [ebp + 0xb0c], bl
call fcn.00466400
push 0xff
lea eax, [ebp + 0xa0d]
push ebx
push eax
mov byte [ebp + 0xa0c], bl
call fcn.00466400
lea eax, [ebp + 0xb0c]
push eax
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.00430e53
lea eax, [ebp + 0xa0c]
push eax
push ebx
push dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push eax
call fcn.00430e53
add esp, 0x44
lea eax, [ebp + 0xc0c]
push eax
push 1
push dword [ebp + 0x24]
lea eax, [ebp + 0xc]
push eax
call fcn.00430e53
movsx eax, byte [ebp + 0xc0c]
push eax
call fcn.00468e0b
add esp, 0x14
test eax, eax
jne 0x431abe
movsx eax, byte [ebp + 0xc1f]
push eax
call fcn.00468e0b
test eax, eax
pop ecx
je 0x431d69
lea eax, [ebp + 0xc0c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403ffe
mov ecx, dword [ebp - 0x20]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
lea eax, [ebp + 0xb0c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403ffe
mov ecx, dword [ebp - 0x1c]
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
lea eax, [ebp + 0xa0c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403ffe
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
push esi
lea ecx, [ebp - 0x40]
call fcn.00403ffe
lea eax, [ebp - 0x40]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x20]
mov dword [ebp - 4], 3
call fcn.0040404b
lea eax, [ebp - 0x64]
push eax
call fcn.00430fc7
add esp, 0x24
mov ecx, dword [ebp - 0x20]
push edi
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004020a2
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
push esi
lea ecx, [ebp - 0x40]
call fcn.00403ffe
lea eax, [ebp - 0x40]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x20]
mov dword [ebp - 4], 5
call fcn.0040404b
lea eax, [ebp - 0x64]
push eax
call fcn.00430fc7
add esp, 0x24
mov ecx, dword [ebp - 0x20]
push edi
push ebx
push eax
mov byte [ebp - 4], 6
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004020a2
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
push esi
lea ecx, [ebp - 0x40]
call fcn.00403ffe
lea eax, [ebp - 0x40]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x1c]
mov dword [ebp - 4], 7
call fcn.0040404b
lea eax, [ebp - 0x64]
push eax
call fcn.00430fc7
add esp, 0x24
mov ecx, dword [ebp - 0x1c]
push edi
push ebx
push eax
mov byte [ebp - 4], 8
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004020a2
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
push esi
lea ecx, [ebp - 0x40]
call fcn.00403ffe
lea eax, [ebp - 0x40]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x1c]
mov dword [ebp - 4], 9
call fcn.0040404b
lea eax, [ebp - 0x64]
push eax
call fcn.00430fc7
add esp, 0x24
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1c]
push edi
push ebx
push eax
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004020a2
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
push esi
lea ecx, [ebp - 0x40]
call fcn.00403ffe
lea eax, [ebp - 0x40]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
call fcn.0040404b
lea eax, [ebp - 0x64]
push eax
call fcn.00430fc7
add esp, 0x24
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push eax
mov byte [ebp - 4], 0xc
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004020a2
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.004020a2
push esi
lea ecx, [ebp - 0x80]
call fcn.00403ffe
lea eax, [ebp - 0x80]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xd
call fcn.0040404b
lea eax, [ebp - 0x9c]
push eax
call fcn.00430fc7
add esp, 0x24
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push eax
mov byte [ebp - 4], 0xe
call fcn.00401ff1
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.004020a2
push ebx
push 1
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], edi
call fcn.004020a2
mov byte [ebp - 0xd], 1
jmp 0x431d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x10
jl 0x431964
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd0c]
xor ecx, ebp
call fcn.004648e8
add ebp, 0xd10
leave
ret