Function at 0x39f170
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2ce4
call fcn.003a3360
mov eax, dword [0x3e206c]
xor eax, esp
mov dword [esp + 0x2ce0], eax
push ebx
push esi
xor esi, esi
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [0x3cd0a8]
mov dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x3dc]
push 0x3da788
push eax
call dword [0x3cd264]
add esp, 0xc
lea eax, [esp + 0x3d8]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [0x3cd208]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x39f4ae
push 0x2710
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x5dc]
movq qword [esp + 0x20], xmm0
push 0
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.003a48b0
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push ebx
call edi
test eax, eax
je 0x39f493
push 0x80
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.003a48b0
add esp, 0xc
lea eax, [esp + 0x258]
push 0x80
push 0
push eax
call fcn.003a48b0
add esp, 0xc
lea eax, [esp + 0x1d8]
push 0x80
push 0
push eax
call fcn.003a48b0
add esp, 0xc
lea eax, [esp + 0x2d8]
push 0x80
push 0
push eax
call fcn.003a48b0
add esp, 0xc
lea eax, [esp + 0x1d8]
push eax
push 0
push dword [esp + 0x5ec]
lea eax, [esp + 0x5e4]
push eax
call fcn.0039eff0
lea eax, [esp + 0x258]
push eax
push 0
push dword [esp + 0x5f0]
lea eax, [esp + 0x5e4]
push eax
call fcn.0039eff0
lea eax, [esp + 0x2d8]
push eax
push 0
push dword [esp + 0x5f4]
lea eax, [esp + 0x5e4]
push eax
call fcn.0039eff0
lea eax, [esp + 0x358]
push eax
push 1
push dword [esp + 0x5f8]
lea eax, [esp + 0x5e4]
push eax
call fcn.0039eff0
push 0x1a0
lea eax, [esp + 0x34]
mov dword [esp + 0x1d4], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [esp + 0x34], xmm0
call fcn.003a48b0
lea ecx, [esp + 0x1e4]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x39f350
sub ecx, edx
je 0x39f372
xor ecx, ecx
nop dword [eax]
mov al, byte [esp + ecx + 0x1d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x4f], al
test al, al
jne 0x39f360
lea ecx, [esp + 0x258]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x39f380
sub ecx, edx
je 0x39f3c2
lea edx, [esp + 0x258]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x39f394
lea edi, [esp + 0x50]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x39f3a2
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [0x3cd0a8]
xor ecx, ecx
mov al, byte [esp + ecx + 0x2d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x14f], al
test al, al
jne 0x39f3c4
xor eax, eax
nop dword [eax + eax]
mov cl, byte [esp + eax + 0x358]
lea eax, [eax + 1]
mov byte [esp + eax + 0xcf], cl
test cl, cl
jne 0x39f3e0
lea eax, [esp + 0xd0]
push eax
call fcn.0039f4e0
lea eax, [esp + 0x50]
push eax
call fcn.0039f4e0
lea eax, [esp + 0x150]
push eax
call fcn.0039f4e0
push 0x2710
lea eax, [esp + 0x5dc]
push 0
push eax
call fcn.003a48b0
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0
push 0
push 0x700a0
push ebx
call edi
test eax, eax
je 0x39f4ae
mov eax, dword [esp + 0x5f0]
mov ecx, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5f4]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp dword [esp + 0x5e0], 0xc
cmove eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1d0], eax
lea eax, [esp + 0x28]
push eax
call fcn.0039fae0
jmp 0x39f4a7
call dword [0x3cd1a4]
push eax
push 0x3da7b0
call fcn.00396800
add esp, 8
push ebx
call dword [0x3cd204]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
jl 0x39f1a1
mov ecx, dword [esp + 0x2cec]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.003a2376
mov esp, ebp
pop ebp
ret