Function at 0x4c4280
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x651ff6
mov eax, dword fs:[0]
push eax
mov eax, 0x32e4
call fcn.006222c0
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x32e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x32f8]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
xor ebx, ebx
xor esi, esi
call fcn.004024f0
mov dword [esp + 0x3300], ebx
mov eax, dword [esp + 0x3308]
push eax
lea ecx, [esp + 0x1c]
push str..PhysicalDrive_d
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x24]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4c4320
mov dword [esp + 0x3300], eax
lea ecx, [esp + 0x18]
call fcn.00402560
xor eax, eax
jmp 0x4c4506
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0x2710
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xbe8]
push ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00621270
add esp, 0xc
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x2710
lea edx, [esp + 0xbf0]
push edx
push 0xc
lea eax, [esp + 0x34]
push eax
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c44e9
mov edx, dword [esp + 0xbf4]
lea ecx, [esp + 0x414]
push ecx
push ebx
push edx
lea eax, [esp + 0xbf0]
push eax
mov ecx, edi
call fcn.004c4050
mov edx, dword [esp + 0xbf8]
lea ecx, [esp + 0x7fc]
push ecx
push ebx
push edx
lea eax, [esp + 0xbf0]
push eax
mov ecx, edi
call fcn.004c4050
mov edx, dword [esp + 0xbfc]
lea ecx, [esp + 0x2c]
push ecx
push 1
push edx
lea eax, [esp + 0xbf0]
push eax
mov ecx, edi
call fcn.004c4050
movzx ecx, byte [esp + 0x2c]
push ecx
call fcn.00622cf5
add esp, 4
test eax, eax
jne 0x4c4404
movzx edx, byte [esp + 0x3f]
push edx
call fcn.00622cf5
add esp, 4
test eax, eax
je 0x4c44e9
lea ecx, [esp + 0x14]
call fcn.004024f0
mov byte [esp + 0x3300], 1
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x18]
push 0x678ea8
push ecx
call fcn.00402f60
add esp, 0xc
push 0x67997c
push 0x678e14
lea ecx, [esp + 0x1c]
call fcn.00402c00
mov ecx, dword [esp + 0x14]
mov eax, ecx
lea esi, [eax + 1]
jmp 0x4c4450
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4c4450
sub eax, esi
cmp eax, 0x30
jbe 0x4c44a4
mov esi, dword [ecx - 0xc]
cmp esi, 0x30
jg 0x4c4470
push 0x80070057
call fcn.00401090
cmp dword [ecx - 4], 1
jle 0x4c4486
mov edx, esi
push edx
lea ecx, [esp + 0x18]
call fcn.00401710
mov ecx, dword [esp + 0x14]
cmp esi, ebx
mov byte [ecx + 0x30], bl
jl 0x4c4466
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x4c4466
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x14]
mov byte [esi + eax], bl
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x800]
push eax
push ecx
lea esi, [edi + 4]
push str._s__s__s
push esi
call fcn.00402f60
add esp, 0x14
push 0x67997c
push 0x678e14
mov ecx, esi
call fcn.00402c00
mov esi, 1
mov byte [esp + 0x3300], bl
lea ecx, [esp + 0x14]
call fcn.00402560
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3300], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402560
mov eax, esi
mov ecx, dword [esp + 0x32f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32e0]
xor ecx, esp
call fcn.00620b8d
add esp, 0x32f0
ret 4