Function at 0x476da0
Capabilities:
Get storage device properties
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9b4
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x9b0], eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x4c], ecx
xor eax, eax
mov esi, dword [esp + 0x9c8]
xor edi, edi
push 0x3fc
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x47c], eax
mov dword [esp + 0x480], eax
mov dword [esp + 0x484], eax
mov dword [esp + 0x488], eax
mov dword [esp + 0x48c], eax
mov dword [esp + 0x490], eax
mov dword [esp + 0x494], eax
mov byte [esp + 0x498], al
lea eax, [esp + 0x7c]
push edi
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x480], edi
mov dword [esp + 0x80], edi
call fcn.004f67e0
mov eax, 0x539408
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ebx
add esi, 4
jmp 0x476e62
xor edi, edi
push ebx
lea ecx, [esp + 0x4a8]
push str..PhysicalDrive_d
push ecx
call fcn.004f726c
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push edi
push 0x8000000
push 3
push edi
push 1
push 0x20000
lea edx, [esp + 0x4bc]
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x476edc
push ebx
lea eax, [esp + 0x4a8]
push str..Scsi_d
push eax
call fcn.004f726c
add esp, 0xc
push 0
push 0x8000000
push 3
push 0
push 1
push 0x20000
lea ecx, [esp + 0x4bc]
push ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x4772b9
push 0
lea edx, [esp + 0x74]
push edx
push 0x18
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4772b2
cmp dword [esp + 0x38], 0xc
jne 0x4772b2
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov byte [esi + 8], bl
mov ebx, dword [esp + 0x40]
mov eax, ebp
mul ebx
push 0
push ecx
push edx
push eax
call fcn.004f81e0
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
push edx
push eax
call fcn.004f81e0
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x215], eax
xor eax, eax
push eax
mov dword [esi + 0x211], edx
lea edx, [esp + 0x2c]
push edx
push 0x18
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x64]
push eax
push 0
push 0
push 0x74080
mov dword [esi + 0x221], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov dword [esi + 0x225], 0xc
mov dword [esi + 0x219], ecx
mov dword [esi + 0x21d], ebx
call ebp
test eax, eax
je 0x4770bb
mov al, byte [esp + 0x5b]
test al, al
jbe 0x4770bb
mov ebx, dword [esp + 0x10]
mov cl, bl
shr al, cl
push 0x210
lea ecx, [esp + 0x7b4]
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x54], al
xor eax, eax
push eax
push ecx
mov dword [esp + 0x480], eax
mov dword [esp + 0x484], eax
mov dword [esp + 0x488], eax
mov dword [esp + 0x48c], eax
mov dword [esp + 0x490], eax
mov dword [esp + 0x494], eax
mov dword [esp + 0x498], eax
mov dword [esp + 0x49c], eax
mov byte [esp + 0x4a0], al
call fcn.004f67e0
mov eax, dword [esp + 0x5c]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push ebx
mov ebx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x7bc]
push ecx
lea edx, [esp + 0x484]
push edx
push edi
mov ecx, ebx
call fcn.00476ae0
test eax, eax
je 0x4770bb
xor eax, eax
jmp 0x477060
movzx ecx, word [esp + eax*2 + 0x7c0]
mov dword [esp + eax*4 + 0x74], ecx
inc eax
cmp eax, 0x100
jl 0x477060
lea edx, [esi + 9]
push edx
push 0x13
push 0xa
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.00476cf0
lea ecx, [esi + 0x10d]
push ecx
push 0x2e
push 0x1b
lea edx, [esp + 0x80]
push edx
mov ecx, ebx
call fcn.00476cf0
mov eax, dword [esp + 0x24]
inc dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
jmp 0x4772b9
xor eax, eax
push 8
mov dword [esp + 0x49c], eax
mov dword [esp + 0x4a0], eax
call fcn.004f803c
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x58]
push eax
push 8
push ebx
push 0xc
lea ecx, [esp + 0x4ac]
push ecx
push 0x2d1400
push edi
mov dword [esp + 0x68], ebx
call ebp
mov ebx, dword [ebx + 4]
push ebx
call fcn.004f803c
add esp, 4
push 0
lea edx, [esp + 0x58]
push edx
push ebx
push eax
push 0xc
mov dword [esp + 0x40], eax
lea eax, [esp + 0x4ac]
push eax
push 0x2d1400
push edi
call ebp
test eax, eax
jne 0x47717b
mov ecx, dword [str.Unknow]
mov dword [esi + 9], ecx
movzx edx, word [0x54802c]
mov word [esi + 0xd], dx
movzx eax, byte [0x54802e]
mov byte [esi + 0xf], al
mov ecx, dword [str.Unknow]
mov dword [esi + 0x10d], ecx
movzx edx, word [0x54802c]
mov word [esi + 0x111], dx
movzx eax, byte [0x54802e]
push edi
mov byte [esi + 0x113], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
jmp 0x4772b9
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x477191
cmp eax, 0xffffffff
je 0x477191
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4771a5
cmp eax, 0xffffffff
je 0x4771a5
add eax, ecx
mov dword [esp + 0x20], eax
jmp 0x4771a9
mov eax, dword [esp + 0x20]
lea ebp, [esi + 9]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4771b0
mov eax, dword [esp + 0x14]
lea ebx, [esi + 0x10d]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4771c8
push ebp
call fcn.00475c50
push ebx
call fcn.00475c50
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004f7ee5
mov edx, dword [esp + 0x38]
push edx
call fcn.004f7ee5
mov eax, dword [esi + 0x21d]
mov ecx, dword [esi + 0x219]
mov edx, dword [esi + 0x215]
push eax
mov eax, dword [esi + 0x211]
push ecx
push edx
push eax
push ebx
push ebp
lea ecx, [esp + 0x5d0]
push str._s_s__I64d__d__d
push ecx
call fcn.004f726c
lea eax, [esp + 0x5d8]
add esp, 0x30
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x477230
sub eax, edx
push eax
lea edx, [esp + 0x5ac]
push edx
push 0xffffffffffffffff
call fcn.00475950
mov dword [esi + 0x229], eax
lea eax, [esp + 0x5b4]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x477260
sub eax, edx
push eax
lea eax, [esp + 0x5ac]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00475a80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
not eax
not ecx
mov dword [esi + 0x22d], eax
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x231], ecx
inc dword [eax]
push edi
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
jmp 0x4772b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add esi, 0x235
cmp ebx, 4
mov dword [esp + 0x10], ebx
jl 0x476e60
mov ecx, dword [esp + 0x9c0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004f6592
add esp, 0x9b4
ret 4