Function at 0x470ae0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc48
mov eax, dword [0x4a4368]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xc54], ecx
je 0x470bd6
mov ebx, dword [0x481af0]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [ebp - 0x24c], cx
xor eax, eax
mov ecx, 0x27
lea edi, [ebp - 0x24a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea ecx, [ecx]
push edi
push 0x497044
push 0x497030
push 0x497028
lea edx, [ebp - 0x24c]
push 0x497014
push edx
call ebx
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x24c]
push eax
call dword [0x4811a0]
push 1
mov esi, eax
call fcn.00444e00
add esp, 4
cmp esi, 0xffffffff
jne 0x470bf3
test al, al
je 0x470bcc
call dword [0x481138]
push eax
push edi
push 0x496fe8
push 0x9b3
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
push eax
call fcn.00445080
add esp, 0x10
inc edi
cmp edi, 3
jl 0x470b50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0044afa5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, al
je 0x470c1a
push edi
push 0x496fb4
push 0x9b9
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
push eax
call fcn.00445080
add esp, 0xc
xor eax, eax
mov byte [ebp - 0x44c], 0
mov ecx, 0x7f
lea edi, [ebp - 0x44b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0xc4c], 0
mov ecx, 0x1ff
lea edi, [ebp - 0xc4b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x128], 0
mov ecx, 0x20
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
mov byte [ebp - 0xa4], al
mov ecx, 0x20
lea edi, [ebp - 0xa3]
rep stosd dword es:[edi], eax
xor ebx, ebx
push ebx
mov byte [ebp - 0x1ac], al
mov ecx, 0x20
lea edi, [ebp - 0x1ab]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xc50]
push ecx
push 0x800
lea edx, [ebp - 0xc4c]
push edx
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
push esi
mov dword [ebp - 0xc50], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0x48119c]
mov edi, eax
mov eax, dword [ebp - 0xc30]
cmp eax, 2
je 0x470bd6
cmp eax, 3
je 0x470bd6
mov edx, dword [ebp - 0xc40]
mov esi, dword [ebp - 0xc54]
push 0x80
lea ecx, [ebp - 0x1ac]
push ecx
push ebx
push edx
lea eax, [ebp - 0xc4c]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00470920
mov edx, dword [ebp - 0xc3c]
push 0x80
lea ecx, [ebp - 0xa4]
push ecx
push ebx
push edx
lea eax, [ebp - 0xc4c]
push eax
mov ecx, esi
call fcn.00470920
mov edx, dword [ebp - 0xc34]
push 0x80
lea ecx, [ebp - 0x128]
push ecx
push 1
push edx
lea eax, [ebp - 0xc4c]
push eax
mov ecx, esi
call fcn.00470920
push 1
call fcn.00444e00
add esp, 4
test al, al
je 0x470d85
push 0x9df
push 0x496fd8
push 1
call fcn.00444e50
mov ecx, dword [ebp - 0xc50]
mov edx, dword [ebp - 0xc30]
add esp, 0xc
push ecx
push edx
push edi
push 0x496f8c
push eax
call fcn.00445080
add esp, 0x14
push 1
call fcn.00444e00
add esp, 4
test al, al
je 0x470dbc
push 0x9e0
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
lea ecx, [ebp - 0x1ac]
push ecx
push 0x496f78
push eax
call fcn.00445080
add esp, 0xc
push 1
call fcn.00444e00
add esp, 4
test al, al
je 0x470df3
push 0x9e1
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
lea edx, [ebp - 0xa4]
push edx
push 0x496f64
push eax
call fcn.00445080
add esp, 0xc
push 1
call fcn.00444e00
add esp, 4
test al, al
je 0x470e2a
push 0x9e2
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push 0x496f50
push eax
call fcn.00445080
add esp, 0xc
lea ecx, [ebp - 0x128]
lea edx, [ebp - 0x44c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x470e36
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470e50
sub eax, edx
mov esi, eax
lea ecx, [ebp - 0xa4]
lea edx, [ebp + esi - 0x44c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x470e68
lea eax, [ebp - 0xa4]
lea edx, [eax + 1]
jmp 0x470e80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470e80
sub eax, edx
add esi, eax
lea ecx, [ebp - 0x1ac]
lea edx, [ebp + esi - 0x44c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x470e98
push 1
call fcn.00444e00
add esp, 4
test al, al
je 0x470ed9
push 0x9ee
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
lea edx, [ebp - 0x44c]
push edx
push 0x496f34
push eax
call fcn.00445080
add esp, 0xc
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ebp - 0x448]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x444]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x440]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x43c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
xor esi, esi
lea esp, [esp]
cmp esi, 0x14
jge 0x470f2b
movsx edx, byte [esi + edi]
push edx
call dword [0x481b20]
add esp, 4
test eax, eax
je 0x470f28
inc ebx
inc esi
jmp 0x470f10
cmp ebx, 0xf
jle 0x470f76
push 1
call fcn.00444e00
add esp, 4
test al, al
je 0x470f61
push 0xa00
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
push edi
push 0x496f10
push eax
call fcn.00445080
add esp, 0xc
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
jmp 0x470bd6
mov eax, edi
lea edx, [eax + 1]
jmp 0x470f80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470f80
sub eax, edx
cmp eax, 6
push 1
jae 0x470fd4
call fcn.00444e00
add esp, 4
test al, al
je 0x470fbf
push 0xa08
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
push edi
push 0x496ef0
push eax
call fcn.00445080
add esp, 0xc
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
jmp 0x470bd6
call fcn.00444e00
add esp, 4
test al, al
je 0x471003
push 0xa0d
push 0x496fd8
push 1
call fcn.00444e50
add esp, 0xc
push edi
push 0x496ed4
push eax
call fcn.00445080
add esp, 0xc
mov eax, 1
jmp 0x470bd8