Function at 0x57f0c0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x5e84
call fcn.006f8060
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push 0xb6ad20
push 0x80000002
call dword [fcn.00bba87b]
test eax, eax
je 0x57f0f4
or eax, 0xffffffff
add esp, 0x5e84
ret
push ebx
push ebp
lea eax, [esp + 0x9c0]
push esi
neg eax
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0x41
lea ebx, [esp + 0xae8]
mov dword [esp + 0x24], eax
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov edi, dword [fcn.00bba86b]
push ecx
lea edx, [esp + 0x48]
push 0xb6ad38
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call dword [fcn.00bba503]
cmp eax, 5
jne 0x57f585
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x88]
push 0xb6ad0c
push edx
mov byte [esp + 0x56], 0
mov dword [esp + 0x2c], 0x100
call edi
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x94]
push eax
push ecx
mov dword [esp + 0x34], 3
call dword [fcn.00bba877]
test eax, eax
jne 0x57f585
mov esi, dword [esp + 0x20]
xor ecx, ecx
test esi, esi
jle 0x57f1cf
mov eax, ecx
cdq
sub eax, edx
mov dl, byte [esp + ecx + 0xc4]
sar eax, 1
add ecx, 2
cmp ecx, esi
mov byte [esp + eax + 0x1c4], dl
jl 0x57f1b3
mov eax, dword [esp + 0x14]
push eax
lea ecx, [ebx - 0x124]
push 0xb6ad1c
push ecx
call edi
mov dl, byte [esp + 0x1d4]
add esp, 0xc
cmp dl, 0x23
lea eax, [esp + 0x1c8]
lea ecx, [ebx - 0x120]
je 0x57f20c
mov edi, edi
mov byte [ecx], dl
mov dl, byte [eax + 1]
inc ecx
inc eax
cmp dl, 0x23
jne 0x57f200
inc eax
mov byte [ecx], 0
mov cl, byte [eax]
cmp cl, 0x23
lea esi, [ebx - 0x100]
mov edx, esi
je 0x57f22c
nop
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x57f220
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x23
mov byte [edx], 0
mov edx, ebx
je 0x57f24c
lea ebx, [ebx]
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x57f240
push ebx
push esi
mov esi, dword [fcn.00bba86b]
lea eax, [ebx - 0x120]
push eax
lea edx, [esp + 0x5d0]
push 0xb6ae00
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x30]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x5d0]
push ecx
push 0x80000002
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x100
call dword [fcn.00bba87b]
test eax, eax
jne 0x57f2f4
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0xb6adf0
push edx
mov dword [esp + 0x34], 3
call dword [fcn.00bba877]
test eax, eax
jne 0x57f2e9
lea eax, [esp + 0xc4]
push eax
lea ecx, [ebx + 0x100]
push 0xb63914
push ecx
call esi
add esp, 0xc
mov edx, dword [esp + 0x30]
push edx
call dword [fcn.00bba883]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x5c]
push eax
call dword [fcn.00bba48f]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x57f585
xor ebp, ebp
push ebp
lea edx, [esp + 0x38]
push edx
push 0x990
push 0x99b0b8
xor eax, eax
mov ecx, 0x264
mov edi, 0x99b0b8
rep stosd dword es:[edi], eax
push 0xc
xor ecx, ecx
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
push 0x2d1400
push esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call dword [fcn.00bba5f7]
test eax, eax
jne 0x57f374
push esi
jmp 0x57f57f
mov eax, dword [0x99b0c4]
cmp eax, ebp
mov ebp, dword [fcn.00bba86b]
lea esi, [ebx + 0x200]
jne 0x57f3c9
push 0x99b0e8
push 0xb6ad04
push esi
mov dword [0x99b0c4], 0x30
call ebp
mov ecx, dword [0x99b0c4]
lea edx, [ecx + 0x99b0c0]
push edx
lea edi, [ebx + 0x209]
push 0xb6acfc
push edi
call ebp
mov eax, dword [0x99b0c4]
lea ecx, [eax + 0x99b0d0]
push ecx
jmp 0x57f3ff
lea edx, [eax + 0x99b0b8]
push edx
push 0xb6ad04
push esi
call ebp
mov eax, dword [0x99b0c8]
lea ecx, [eax + 0x99b0b8]
push ecx
lea edi, [ebx + 0x209]
push 0xb6acfc
push edi
call ebp
mov edx, dword [0x99b0cc]
lea eax, [edx + 0x99b0b8]
push eax
lea ebp, [ebx + 0x21a]
push 0xb6acf4
push ebp
call dword [fcn.00bba86b]
mov eax, dword [esp + 0x5ebc]
add eax, 0x50
add esp, 0x24
mov dword [esp + 0x10], 0
sub esi, eax
mov cl, byte [eax]
mov dl, byte [esi + eax]
inc eax
cmp cl, dl
jne 0x57f511
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 8
mov dword [esp + 0x10], ecx
jl 0x57f428
mov eax, dword [esp + 0x5e98]
add eax, 0x60
xor esi, esi
sub edi, eax
mov cl, byte [eax]
mov dl, byte [edi + eax]
inc eax
cmp cl, dl
jne 0x57f511
inc esi
cmp esi, 0x10
jl 0x57f452
mov eax, dword [esp + 0x5e98]
add eax, 0x74
xor esi, esi
sub ebp, eax
mov cl, byte [eax]
mov dl, byte [eax + ebp]
inc eax
cmp cl, dl
jne 0x57f511
inc esi
cmp esi, 4
jl 0x57f474
cmp byte [esp + 0x1c4], 0x7b
lea eax, [esp + 0x1c4]
mov dword [esp + 0x10], eax
je 0x57f4ad
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x7b
jne 0x57f4a0
mov dword [esp + 0x10], eax
lea esi, [ebx - 0x120]
xor edi, edi
jmp 0x57f4c0
mov ebp, dword [esp + 0x24]
mov cl, byte [esi]
mov dl, byte [esi + ebp + 0xb6adec]
inc esi
cmp cl, dl
jne 0x57f518
inc edi
cmp edi, 3
jl 0x57f4c0
mov eax, dword [esp + 0x5e98]
add eax, 0x40
mov esi, 0xb6ade4
xor edi, edi
sub esi, eax
jmp 0x57f4f0
mov cl, byte [eax]
mov dl, byte [esi + eax]
inc eax
cmp cl, dl
jne 0x57f511
inc edi
cmp edi, 5
jl 0x57f4f0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
sub eax, 4
mov dword [esp + 0x10], eax
jmp 0x57f537
mov eax, dword [esp + 0x18]
push eax
jmp 0x57f57f
lea esi, [ebx - 0x120]
xor edi, edi
mov cl, byte [esi]
mov dl, byte [esi + ebp + 0xb6addc]
inc esi
cmp cl, dl
jne 0x57f57a
inc edi
cmp edi, 4
jl 0x57f520
sub eax, 3
movsx eax, byte [eax]
mov esi, dword [esp + 0x5e98]
movsx ecx, byte [esi + 1]
sub eax, 0x30
cmp eax, ecx
jne 0x57f568
mov eax, dword [esp + 0x28]
mov dl, byte [esp + 0x14]
mov byte [eax + esi + 0x10], dl
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push eax
call dword [fcn.00bba483]
sub ebp, 0x343
mov dword [esp + 0x24], ebp
add ebx, 0x343
jmp 0x57f585
mov ecx, dword [esp + 0x18]
push ecx
call dword [fcn.00bba483]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x5a
mov dword [esp + 0x14], eax
jle 0x57f120
mov ecx, dword [esp + 0x28]
test ecx, ecx
pop edi
pop esi
pop ebp
pop ebx
jne 0x57f5c2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x5e88]
push ecx
mov byte [edx + 0x10], 0x3f
call dword [fcn.00bba883]
xor eax, eax
add esp, 0x5e84
ret
cmp ecx, 2
jl 0x57f5e6
jmp 0x57f5d0
dec ecx
mov eax, dword [esp + 0x5e88]
mov dl, byte [eax + ecx + 0x10]
mov byte [eax + ecx + 0x11], dl
jne 0x57f5d0
mov byte [eax + 0x10], 0x3f
mov ecx, dword [esp + 0x1c]
push ecx
call dword [fcn.00bba883]
xor eax, eax
add esp, 0x5e84
ret