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

Disassembly:
push 0xffffffffffffffff
push 0x5d3c22
mov eax, dword fs:[0]
push eax
mov eax, 0x3d10
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x3d0c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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.0058fb30
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x34c]
push str..PhysicalDrive_d
push ecx
mov dword [esp + 0x3d38], ebx
call fcn.005b0b2c
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 0x5921ee
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.005b1515
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1a0]
push eax
mov ecx, esi
mov dword [esp + 0x348], edx
call fcn.0058f8b0
lea ecx, [esp + 0x1a0]
push ecx
mov ecx, esi
call fcn.0058f740
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 0x5918bf
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.005b403f
add esp, 0xc
mov al, byte [esp + 0x3b]
cmp al, bl
mov dword [esp + 0x30], ebx
jbe 0x591a7a
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.005b4520
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 0x591a63
xor eax, eax
movzx ecx, word [esp + eax*2 + 0xc40]
mov dword [esp + eax*4 + 0x830], ecx
add eax, 1
cmp eax, 0x100
jl 0x5919c1
push 0x13
push 0xa
lea edx, [esp + 0x838]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call fcn.00590180
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
mov byte [esp + 0x3d30], 1
call fcn.005909f0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
push edx
lea ecx, [esi + 0x40]
call fcn.004080b0
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xc44]
push ecx
mov ecx, esi
call fcn.00590250
lea edx, [esp + 0x1a0]
push edx
mov ecx, esi
call fcn.005905d0
cmp dword [esp + 0x80], 0x10
mov byte [esp + 0x3d2c], bl
jb 0x591f08
mov eax, dword [esp + 0x6c]
push eax
call fcn.00594e98
add esp, 4
jmp 0x591f08
lea ecx, [esp + 0x348]
push ecx
push str.DoIDENTIFY_failed_for__s_n
call fcn.005b403f
add esp, 8
jmp 0x591a96
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.005b403f
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 0x591af0
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.005b403f
add esp, 0xc
jmp 0x591d1a
push 0x221
call fcn.005b2076
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 0x591b40
lea edx, [esp + 0x348]
push edx
push str.SMART_RCV_DRIVE_DATA_failed_for__s_n
call fcn.005b403f
add esp, 8
jmp 0x591d03
push 0x3fc
lea eax, [esp + 0x838]
push ebx
push eax
mov dword [esp + 0x83c], ebx
call fcn.005b4520
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 0x591b60
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.00590460
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
mov ecx, esi
mov byte [esp + 0x3d30], 3
call fcn.005909f0
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0xc0]
call fcn.0049f800
push eax
push ebx
lea ecx, [esp + 0xbc]
call fcn.00408170
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0xc4]
call fcn.004ca3c0
add eax, 1
push eax
lea ecx, [esp + 0xbc]
call fcn.00408170
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0x74]
call fcn.0049f800
push eax
push ebx
lea ecx, [esp + 0x70]
call fcn.00408170
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0x78]
call fcn.004ca3c0
add eax, 1
push eax
lea ecx, [esp + 0x70]
call fcn.00408170
cmp dword [esp + 0xcc], 0x10
mov eax, dword [esp + 0xb8]
jae 0x591c63
lea eax, [esp + 0xb8]
push 0x14
push eax
lea eax, [esp + 0x2ba]
push eax
call fcn.005b1b80
mov eax, dword [esp + 0x78]
add esp, 0xc
cmp dword [esp + 0x80], 0x10
jae 0x591c88
lea eax, [esp + 0x6c]
push 0x28
push eax
lea ecx, [esp + 0x2d6]
push ecx
call fcn.005b1b80
add esp, 0xc
lea edx, [esp + 0x1a0]
push edx
mov ecx, esi
call fcn.005905d0
cmp dword [esp + 0xcc], 0x10
mov dword [esp + 0x30], 1
jb 0x591ccc
mov eax, dword [esp + 0xb8]
push eax
call fcn.00594e98
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 0x591d03
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00594e98
add esp, 4
push edi
call fcn.005b0977
mov edi, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x30], ebx
jne 0x591f08
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.005b4520
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 0x5921d4
push 0x3e7
lea eax, [esp + 0x44d]
push ebx
push eax
mov byte [esp + 0x454], bl
call fcn.005b4520
push 0x3e7
lea ecx, [esp + 0xe51]
push ebx
push ecx
mov byte [esp + 0xe58], bl
call fcn.005b4520
push 0x3e7
lea edx, [esp + 0x1245]
push ebx
push edx
mov byte [esp + 0x124c], bl
call fcn.005b4520
push 0x3e7
lea eax, [esp + 0x859]
push ebx
push eax
mov byte [esp + 0x860], bl
call fcn.005b4520
mov edx, dword [esp + 0x164c]
lea ecx, [esp + 0x1258]
push ecx
push ebx
push edx
lea eax, [esp + 0x164c]
push eax
call fcn.0058f540
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.0058f540
mov edx, dword [esp + 0x1634]
lea ecx, [esp + 0x840]
push ecx
push ebx
push edx
lea eax, [esp + 0x162c]
push eax
call fcn.0058f540
mov edx, dword [esp + 0x1648]
lea ecx, [esp + 0x468]
push ecx
push 1
push edx
lea eax, [esp + 0x163c]
push eax
call fcn.0058f540
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 0x591e77
lea eax, [esp + 0x448]
push eax
lea ecx, [esp + 0x2b6]
push 0x5f453c
push ecx
call fcn.005b0b2c
lea edx, [esp + 0xe4c]
push edx
lea eax, [esp + 0x2de]
push 0x5f453c
push eax
call fcn.005b0b2c
movzx ecx, byte [esp + 0x460]
push ecx
call fcn.005b6dfb
add esp, 0x1c
test eax, eax
jne 0x592157
movzx edx, byte [esp + 0x45b]
push edx
call fcn.005b6dfb
add esp, 4
test eax, eax
jne 0x592157
lea eax, [esp + 0x348]
push eax
push str.isalnum_failed_for__s_n
call fcn.005b403f
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.0058f470
test eax, eax
jne 0x591f36
lea ecx, [esp + 0x348]
push ecx
push 0x5ff8f8
call fcn.005b403f
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.00590810
push 1
mov ecx, esi
mov ebp, eax
call fcn.0058fe60
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
lea ecx, [esp + 0xd0]
mov dword [eax], ebp
call fcn.0058fa70
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 0x591f80
sub eax, edi
push eax
lea ecx, [esp + 0x2d2]
push ecx
lea ecx, [esp + 0xd8]
call fcn.004098b0
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0xdc]
call fcn.0049f800
push eax
push ebx
lea ecx, [esp + 0xd8]
call fcn.00408170
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0xe0]
call fcn.004ca3c0
add eax, 1
push eax
lea ecx, [esp + 0xd8]
call fcn.00408170
lea eax, [esp + 0x2b2]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x591ff3
sub eax, edi
push eax
lea edx, [esp + 0x2b6]
push edx
lea ecx, [esp + 0xf4]
call fcn.004098b0
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.00590af0
test eax, eax
jne 0x5920c0
lea eax, [esp + 0x348]
push eax
push 0x5ff8d0
call fcn.005b403f
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.00590950
push 1
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.0058ffa0
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 0x59211c
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xe8], edi
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
jb 0x5921f3
mov edx, dword [esp + 0xd4]
push edx
call fcn.00594e98
add esp, 4
jmp 0x5921f3
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 0x592174
sub eax, edx
push eax
lea ecx, [esp + 0x44c]
push ecx
lea ecx, [esp + 0x70]
call fcn.004098b0
lea edx, [esp + 0x68]
push edx
mov ecx, esi
mov byte [esp + 0x3d30], 4
call fcn.005909f0
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x24], 1
mov byte [esp + 0x3d2c], bl
jb 0x591f04
mov eax, dword [esp + 0x6c]
push eax
call fcn.00594e98
add esp, 4
jmp 0x591f04
lea ecx, [esp + 0x348]
push ecx
push str.IOCTL_STORAGE_QUERY_PROPERTY_failed_for__s_n
call fcn.005b403f
add esp, 8
jmp 0x591f08
mov edi, 0x10
add dword [esp + 0x28], 1
cmp dword [esp + 0x310], edi
mov dword [esp + 0x3d2c], 0xffffffff
jb 0x59221c
mov eax, dword [esp + 0x2fc]
push eax
call fcn.00594e98
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x5917c0
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.005b0968
add esp, 0x3d1c
ret