Function at 0x479790
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2cdc
call fcn.00485650
push ebx
push esi
push edi
xor edi, edi
lea eax, [esp + 0x3d8]
push edi
push 0x5a7ea4
push eax
mov ebx, edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x479aa2
push 0x2710
xorps xmm0, xmm0
mov dword [esp + 0x14], edi
lea eax, [esp + 0x5dc]
movq qword [esp + 0x20], xmm0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00515560
add esp, 0xc
lea eax, [esp + 0x10]
push edi
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x479a9b
push 0x80
lea eax, [esp + 0x35c]
push edi
push eax
call fcn.00515560
push 0x80
lea eax, [esp + 0x268]
push edi
push eax
call fcn.00515560
push 0x80
lea eax, [esp + 0x1f4]
push edi
push eax
call fcn.00515560
push 0x80
lea eax, [esp + 0x300]
push edi
push eax
call fcn.00515560
mov edx, dword [esp + 0x614]
lea eax, [esp + 0x208]
add esp, 0x30
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00479550
mov edx, dword [esp + 0x5f0]
lea eax, [esp + 0x260]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00479550
mov edx, dword [esp + 0x5f4]
lea eax, [esp + 0x2e0]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00479550
mov edx, dword [esp + 0x5f8]
lea eax, [esp + 0x360]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00479550
push 0x1a0
lea eax, [esp + 0x3c]
mov dword [esp + 0x1dc], edi
xorps xmm0, xmm0
push edi
push eax
movlpd qword [esp + 0x3c], xmm0
call fcn.00515560
lea ecx, [esp + 0x1ec]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479935
sub ecx, edx
je 0x479954
xor ecx, ecx
mov al, byte [esp + ecx + 0x1d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x4f], al
test al, al
jne 0x479942
lea ecx, [esp + 0x258]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479960
sub ecx, edx
je 0x47999e
lea edx, [esp + 0x258]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x479974
lea edi, [esp + 0x50]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x479982
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 + 0x14]
xor edi, edi
xor ecx, ecx
mov al, byte [esp + ecx + 0x2d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x14f], al
test al, al
jne 0x4799a0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x358]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0xcf], al
test al, al
jne 0x4799c0
lea ecx, [esp + 0xd0]
call fcn.004796c0
lea ecx, [esp + 0x50]
call fcn.004796c0
lea ecx, [esp + 0x150]
call fcn.004796c0
push 0x2710
lea eax, [esp + 0x5dc]
push 0
push eax
call fcn.00515560
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x479a9b
cmp dword [esp + 0x5e0], 0xc
mov eax, dword [esp + 0x5f0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5f4]
mov dword [esp + 0x2c], eax
jne 0x479a9b
lea edx, [esp + 0xd0]
mov dword [esp + 0x1d0], 2
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x479a70
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x479a92
nop
movsx ax, byte [esp + ecx + 0xd0]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x479a80
xor eax, eax
mov word [ebx + edx*2], ax
lea edi, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret