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

Disassembly:
push 0xffffffffffffffff
push 0x5d4c42
mov eax, dword fs:[0]
push eax
mov eax, 0x3d10
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x3d0c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x3d24]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
nop
lea ecx, [esp + 0x1a0]
call fcn.00590b50
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x34c]
push str..PhysicalDrive_d
push ecx
mov dword [esp + 0x3d38], ebx
call fcn.005b1b4c
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
lea edx, [esp + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x59320e
xor eax, eax
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 + 0x4c], eax
lea eax, [esp + 0x348]
push eax
lea ecx, [esp + 0x1a4]
push 0x100
push ecx
mov dword [esp + 0x38], ebx
call fcn.005b2535
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1a0]
push eax
mov ecx, esi
mov dword [esp + 0x348], edx
call fcn.005908d0
lea ecx, [esp + 0x1a0]
push ecx
mov ecx, esi
call fcn.00590760
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea edx, [esp + 0x30]
push edx
push 0x18
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push 0x74080
push edi
mov dword [esp + 0x44], 1
call ebp
test eax, eax
jne 0x5928df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34c]
push ecx
push str.DFP_GET_VERSION_failed_for__s_terrno_d_n
call fcn.005b505f
add esp, 0xc
mov al, byte [esp + 0x3b]
cmp al, bl
mov dword [esp + 0x30], ebx
jbe 0x592a9a
mov cl, byte [esp + 0x18]
shr al, cl
push 0x210
lea edx, [esp + 0xc34]
push ebx
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x27], al
xor eax, eax
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov byte [esp + 0xb0], al
call fcn.005b5540
mov al, byte [esp + 0x24]
mov dl, byte [esp + 0x2b]
add esp, 0xc
mov cl, al
push ebx
and cl, 1
or cl, 0xfa
mov byte [esp + 0x94], al
shl cl, 4
lea eax, [esp + 0x30]
push eax
push 0x210
mov byte [esp + 0x99], cl
lea ecx, [esp + 0xc3c]
push ecx
push 0x20
mov byte [esp + 0xa2], dl
lea edx, [esp + 0x98]
push edx
push 0x7c088
push edi
mov byte [esp + 0xa8], bl
mov byte [esp + 0xa9], 1
mov byte [esp + 0xaa], 1
mov byte [esp + 0xab], bl
mov byte [esp + 0xac], bl
mov dword [esp + 0xa4], 0x200
call ebp
test eax, eax
je 0x592a83
xor eax, eax
movzx ecx, word [esp + eax*2 + 0xc40]
mov dword [esp + eax*4 + 0x830], ecx
add eax, 1
cmp eax, 0x100
jl 0x5929e1
push 0x13
push 0xa
lea edx, [esp + 0x838]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call fcn.005911a0
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
mov byte [esp + 0x3d30], 1
call fcn.00591a10
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
push edx
lea ecx, [esi + 0x40]
call fcn.00407e40
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xc44]
push ecx
mov ecx, esi
call fcn.00591270
lea edx, [esp + 0x1a0]
push edx
mov ecx, esi
call fcn.005915f0
cmp dword [esp + 0x80], 0x10
mov byte [esp + 0x3d2c], bl
jb 0x592f28
mov eax, dword [esp + 0x6c]
push eax
call fcn.00595eb8
add esp, 4
jmp 0x592f28
lea ecx, [esp + 0x348]
push ecx
push str.DoIDENTIFY_failed_for__s_n
call fcn.005b505f
add esp, 8
jmp 0x592ab6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x34c]
push edx
push str.VersionParams_failed_for__s_terrno_d_n
call fcn.005b505f
add esp, 0xc
xor eax, eax
push ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x24]
push eax
push 0x18
lea ecx, [esp + 0x5c]
push ecx
push ebx
push ebx
push 0x74080
push edi
mov dword [esp + 0x40], ebx
call ebp
test eax, eax
jne 0x592b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x34c]
push edx
push str.SMART_GET_VERSION_failed_for__s_terrno_d_n
call fcn.005b505f
add esp, 0xc
jmp 0x592d3a
push 0x221
call fcn.005b3096
mov ecx, dword [esp + 0x18]
add esp, 4
push ebx
mov edi, eax
lea eax, [esp + 0x38]
push eax
push 0x221
push edi
push 0x21
push edi
push 0x7c088
mov byte [edi + 0xa], 0xec
push ecx
mov dword [esp + 0x54], ebx
call ebp
test eax, eax
jne 0x592b60
lea edx, [esp + 0x348]
push edx
push str.SMART_RCV_DRIVE_DATA_failed_for__s_n
call fcn.005b505f
add esp, 8
jmp 0x592d23
push 0x3fc
lea eax, [esp + 0x838]
push ebx
push eax
mov dword [esp + 0x83c], ebx
call fcn.005b5540
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [edi + eax*2 + 0x10]
mov dword [esp + eax*4 + 0x830], ecx
add eax, 1
cmp eax, 0x100
jl 0x592b80
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x834]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov byte [esp + 0x3d38], 2
call fcn.00591480
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
mov ecx, esi
mov byte [esp + 0x3d30], 3
call fcn.00591a10
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0xc0]
call fcn.0049f210
push eax
push ebx
lea ecx, [esp + 0xbc]
call fcn.00407f00
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0xc4]
call fcn.004ca290
add eax, 1
push eax
lea ecx, [esp + 0xbc]
call fcn.00407f00
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0x74]
call fcn.0049f210
push eax
push ebx
lea ecx, [esp + 0x70]
call fcn.00407f00
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0x78]
call fcn.004ca290
add eax, 1
push eax
lea ecx, [esp + 0x70]
call fcn.00407f00
cmp dword [esp + 0xcc], 0x10
mov eax, dword [esp + 0xb8]
jae 0x592c83
lea eax, [esp + 0xb8]
push 0x14
push eax
lea eax, [esp + 0x2ba]
push eax
call fcn.005b2ba0
mov eax, dword [esp + 0x78]
add esp, 0xc
cmp dword [esp + 0x80], 0x10
jae 0x592ca8
lea eax, [esp + 0x6c]
push 0x28
push eax
lea ecx, [esp + 0x2d6]
push ecx
call fcn.005b2ba0
add esp, 0xc
lea edx, [esp + 0x1a0]
push edx
mov ecx, esi
call fcn.005915f0
cmp dword [esp + 0xcc], 0x10
mov dword [esp + 0x30], 1
jb 0x592cec
mov eax, dword [esp + 0xb8]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov byte [esp + 0x3d2c], bl
jb 0x592d23
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00595eb8
add esp, 4
push edi
call fcn.005b1997
mov edi, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x30], ebx
jne 0x592f28
push 0x2710
lea edx, [esp + 0x1614]
push ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
call fcn.005b5540
add esp, 0xc
push ebx
lea eax, [esp + 0x24]
push eax
push 0x2710
lea ecx, [esp + 0x161c]
push ecx
push 0xc
lea edx, [esp + 0xbc]
push edx
push 0x2d1400
push edi
call ebp
test eax, eax
je 0x5931f4
push 0x3e7
lea eax, [esp + 0x44d]
push ebx
push eax
mov byte [esp + 0x454], bl
call fcn.005b5540
push 0x3e7
lea ecx, [esp + 0xe51]
push ebx
push ecx
mov byte [esp + 0xe58], bl
call fcn.005b5540
push 0x3e7
lea edx, [esp + 0x1245]
push ebx
push edx
mov byte [esp + 0x124c], bl
call fcn.005b5540
push 0x3e7
lea eax, [esp + 0x859]
push ebx
push eax
mov byte [esp + 0x860], bl
call fcn.005b5540
mov edx, dword [esp + 0x164c]
lea ecx, [esp + 0x1258]
push ecx
push ebx
push edx
lea eax, [esp + 0x164c]
push eax
call fcn.00590560
mov edx, dword [esp + 0x1660]
add esp, 0x40
lea ecx, [esp + 0xe40]
push ecx
push ebx
push edx
lea eax, [esp + 0x161c]
push eax
call fcn.00590560
mov edx, dword [esp + 0x1634]
lea ecx, [esp + 0x840]
push ecx
push ebx
push edx
lea eax, [esp + 0x162c]
push eax
call fcn.00590560
mov edx, dword [esp + 0x1648]
lea ecx, [esp + 0x468]
push ecx
push 1
push edx
lea eax, [esp + 0x163c]
push eax
call fcn.00590560
add esp, 0x30
lea eax, [esp + 0x449]
mov edi, 0x1f4
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
sub edi, 1
jne 0x592e97
lea eax, [esp + 0x448]
push eax
lea ecx, [esp + 0x2b6]
push 0x5f553c
push ecx
call fcn.005b1b4c
lea edx, [esp + 0xe4c]
push edx
lea eax, [esp + 0x2de]
push 0x5f553c
push eax
call fcn.005b1b4c
movzx ecx, byte [esp + 0x460]
push ecx
call fcn.005b7e1b
add esp, 0x1c
test eax, eax
jne 0x593177
movzx edx, byte [esp + 0x45b]
push edx
call fcn.005b7e1b
add esp, 4
test eax, eax
jne 0x593177
lea eax, [esp + 0x348]
push eax
push str.isalnum_failed_for__s_n
call fcn.005b505f
add esp, 8
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1a0]
push edx
push eax
push edi
mov ecx, esi
call fcn.00590490
test eax, eax
jne 0x592f56
lea ecx, [esp + 0x348]
push ecx
push 0x6008f8
call fcn.005b505f
add esp, 8
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
lea edx, [esp + 0x1a0]
push edx
push eax
push edi
mov ecx, esi
call fcn.00591830
push 1
mov ecx, esi
mov ebp, eax
call fcn.00590e80
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
lea ecx, [esp + 0xd0]
mov dword [eax], ebp
call fcn.00590a90
lea eax, [esp + 0x2ce]
mov byte [esp + 0x3d2c], 5
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x592fa0
sub eax, edi
push eax
lea ecx, [esp + 0x2d2]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00409790
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0xdc]
call fcn.0049f210
push eax
push ebx
lea ecx, [esp + 0xd8]
call fcn.00407f00
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0xe0]
call fcn.004ca290
add eax, 1
push eax
lea ecx, [esp + 0xd8]
call fcn.00407f00
lea eax, [esp + 0x2b2]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x593013
sub eax, edi
push eax
lea edx, [esp + 0x2b6]
push edx
lea ecx, [esp + 0xf4]
call fcn.00409790
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x320]
mov edx, dword [esp + 0x324]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x328]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x32c]
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0x330]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x334]
mov dword [esp + 0x11c], ecx
mov ecx, dword [esp + 0x338]
mov dword [esp + 0x120], edx
mov edx, dword [esp + 0x33c]
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xd0]
push eax
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.00591b10
test eax, eax
jne 0x5930e0
lea eax, [esp + 0x348]
push eax
push 0x6008d0
call fcn.005b505f
add esp, 8
mov ebp, dword [esi + 0x1c]
mov edx, dword [ebp + 4]
lea edi, [esi + 0x18]
lea ecx, [esp + 0xd0]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.00591970
push 1
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.00590fc0
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x10
cmp dword [esp + 0x104], edi
jb 0x59313c
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xe8], edi
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
jb 0x593213
mov edx, dword [esp + 0xd4]
push edx
call fcn.00595eb8
add esp, 4
jmp 0x593213
lea eax, [esp + 0x448]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x593194
sub eax, edx
push eax
lea ecx, [esp + 0x44c]
push ecx
lea ecx, [esp + 0x70]
call fcn.00409790
lea edx, [esp + 0x68]
push edx
mov ecx, esi
mov byte [esp + 0x3d30], 4
call fcn.00591a10
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x24], 1
mov byte [esp + 0x3d2c], bl
jb 0x592f24
mov eax, dword [esp + 0x6c]
push eax
call fcn.00595eb8
add esp, 4
jmp 0x592f24
lea ecx, [esp + 0x348]
push ecx
push str.IOCTL_STORAGE_QUERY_PROPERTY_failed_for__s_n
call fcn.005b505f
add esp, 8
jmp 0x592f28
mov edi, 0x10
add dword [esp + 0x28], 1
cmp dword [esp + 0x310], edi
mov dword [esp + 0x3d2c], 0xffffffff
jb 0x59323c
mov eax, dword [esp + 0x2fc]
push eax
call fcn.00595eb8
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x5927e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3d24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3d0c]
xor ecx, esp
call fcn.005b1988
add esp, 0x3d1c
ret