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

Disassembly:
push 0xffffffffffffffff
push 0x5e0ab2
mov eax, dword fs:[0]
push eax
mov eax, 0x3d10
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x3d0c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
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.0059cf80
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x34c]
push str..PhysicalDrive_d
push ecx
mov dword [esp + 0x3d38], ebx
call fcn.005bd49b
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 0x59f63e
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 pe_nt_image_headers32
push ecx
mov dword [esp + 0x38], ebx
call fcn.005be4fe
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1a0]
push eax
mov ecx, esi
mov dword [esp + 0x348], edx
call fcn.0059cd00
lea ecx, [esp + 0x1a0]
push ecx
mov ecx, esi
call fcn.0059cb90
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 0x59ed0f
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.005c2e4e
add esp, 0xc
mov al, byte [esp + 0x3b]
cmp al, bl
mov dword [esp + 0x30], ebx
jbe 0x59eeca
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.005c0cf0
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 0x59eeb3
xor eax, eax
movzx ecx, word [esp + eax*2 + 0xc40]
mov dword [esp + eax*4 + 0x830], ecx
add eax, 1
cmp eax, 0x100
jl 0x59ee11
push 0x13
push 0xa
lea edx, [esp + 0x838]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call fcn.0059d5d0
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
mov byte [esp + 0x3d30], 1
call fcn.0059de40
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
push edx
lea ecx, [esi + 0x40]
call fcn.00407630
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xc44]
push ecx
mov ecx, esi
call fcn.0059d6a0
lea edx, [esp + 0x1a0]
push edx
mov ecx, esi
call fcn.0059da20
cmp dword [esp + 0x80], 0x10
mov byte [esp + 0x3d2c], bl
jb 0x59f358
mov eax, dword [esp + 0x6c]
push eax
call fcn.005a1b1d
add esp, 4
jmp 0x59f358
lea ecx, [esp + 0x348]
push ecx
push str.DoIDENTIFY_failed_for__s_n
call fcn.005c2e4e
add esp, 8
jmp 0x59eee6
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.005c2e4e
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 0x59ef40
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.005c2e4e
add esp, 0xc
jmp 0x59f16a
push 0x221
call fcn.005becf6
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 0x59ef90
lea edx, [esp + 0x348]
push edx
push str.SMART_RCV_DRIVE_DATA_failed_for__s_n
call fcn.005c2e4e
add esp, 8
jmp 0x59f153
push 0x3fc
lea eax, [esp + 0x838]
push ebx
push eax
mov dword [esp + 0x83c], ebx
call fcn.005c0cf0
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 0x59efb0
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.0059d8b0
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
mov ecx, esi
mov byte [esp + 0x3d30], 3
call fcn.0059de40
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0xc0]
call fcn.004a2f90
push eax
push ebx
lea ecx, [esp + 0xbc]
call fcn.004076f0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0xc4]
call fcn.004d0260
add eax, 1
push eax
lea ecx, [esp + 0xbc]
call fcn.004076f0
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0x74]
call fcn.004a2f90
push eax
push ebx
lea ecx, [esp + 0x70]
call fcn.004076f0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0x78]
call fcn.004d0260
add eax, 1
push eax
lea ecx, [esp + 0x70]
call fcn.004076f0
cmp dword [esp + 0xcc], 0x10
mov eax, dword [esp + 0xb8]
jae 0x59f0b3
lea eax, [esp + 0xb8]
push 0x14
push eax
lea eax, [esp + 0x2ba]
push eax
call fcn.005be200
mov eax, dword [esp + 0x78]
add esp, 0xc
cmp dword [esp + 0x80], 0x10
jae 0x59f0d8
lea eax, [esp + 0x6c]
push 0x28
push eax
lea ecx, [esp + 0x2d6]
push ecx
call fcn.005be200
add esp, 0xc
lea edx, [esp + 0x1a0]
push edx
mov ecx, esi
call fcn.0059da20
cmp dword [esp + 0xcc], 0x10
mov dword [esp + 0x30], 1
jb 0x59f11c
mov eax, dword [esp + 0xb8]
push eax
call fcn.005a1b1d
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 0x59f153
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.005a1b1d
add esp, 4
push edi
call fcn.005bd2e6
mov edi, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x30], ebx
jne 0x59f358
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.005c0cf0
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 0x59f624
push 0x3e7
lea eax, [esp + 0x44d]
push ebx
push eax
mov byte [esp + 0x454], bl
call fcn.005c0cf0
push 0x3e7
lea ecx, [esp + 0xe51]
push ebx
push ecx
mov byte [esp + 0xe58], bl
call fcn.005c0cf0
push 0x3e7
lea edx, [esp + 0x1245]
push ebx
push edx
mov byte [esp + 0x124c], bl
call fcn.005c0cf0
push 0x3e7
lea eax, [esp + 0x859]
push ebx
push eax
mov byte [esp + 0x860], bl
call fcn.005c0cf0
mov edx, dword [esp + 0x164c]
lea ecx, [esp + 0x1258]
push ecx
push ebx
push edx
lea eax, [esp + 0x164c]
push eax
call fcn.0059c990
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.0059c990
mov edx, dword [esp + 0x1634]
lea ecx, [esp + 0x840]
push ecx
push ebx
push edx
lea eax, [esp + 0x162c]
push eax
call fcn.0059c990
mov edx, dword [esp + 0x1648]
lea ecx, [esp + 0x468]
push ecx
push 1
push edx
lea eax, [esp + 0x163c]
push eax
call fcn.0059c990
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 0x59f2c7
lea eax, [esp + 0x448]
push eax
lea ecx, [esp + 0x2b6]
push 0x6029cc
push ecx
call fcn.005bd49b
lea edx, [esp + 0xe4c]
push edx
lea eax, [esp + 0x2de]
push 0x6029cc
push eax
call fcn.005bd49b
movzx ecx, byte [esp + 0x460]
push ecx
call fcn.005c45a8
add esp, 0x1c
test eax, eax
jne 0x59f5a7
movzx edx, byte [esp + 0x45b]
push edx
call fcn.005c45a8
add esp, 4
test eax, eax
jne 0x59f5a7
lea eax, [esp + 0x348]
push eax
push str.isalnum_failed_for__s_n
call fcn.005c2e4e
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.0059c8c0
test eax, eax
jne 0x59f386
lea ecx, [esp + 0x348]
push ecx
push 0x60dbe0
call fcn.005c2e4e
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.0059dc60
push 1
mov ecx, esi
mov ebp, eax
call fcn.0059d2b0
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
lea ecx, [esp + 0xd0]
mov dword [eax], ebp
call fcn.0059cec0
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 0x59f3d0
sub eax, edi
push eax
lea ecx, [esp + 0x2d2]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00408ea0
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0xdc]
call fcn.004a2f90
push eax
push ebx
lea ecx, [esp + 0xd8]
call fcn.004076f0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0xe0]
call fcn.004d0260
add eax, 1
push eax
lea ecx, [esp + 0xd8]
call fcn.004076f0
lea eax, [esp + 0x2b2]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x59f443
sub eax, edi
push eax
lea edx, [esp + 0x2b6]
push edx
lea ecx, [esp + 0xf4]
call fcn.00408ea0
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.0059df40
test eax, eax
jne 0x59f510
lea eax, [esp + 0x348]
push eax
push 0x60dbb8
call fcn.005c2e4e
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.0059dda0
push 1
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.0059d3f0
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 0x59f56c
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0xe8], edi
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
jb 0x59f643
mov edx, dword [esp + 0xd4]
push edx
call fcn.005a1b1d
add esp, 4
jmp 0x59f643
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 0x59f5c4
sub eax, edx
push eax
lea ecx, [esp + 0x44c]
push ecx
lea ecx, [esp + 0x70]
call fcn.00408ea0
lea edx, [esp + 0x68]
push edx
mov ecx, esi
mov byte [esp + 0x3d30], 4
call fcn.0059de40
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x24], 1
mov byte [esp + 0x3d2c], bl
jb 0x59f354
mov eax, dword [esp + 0x6c]
push eax
call fcn.005a1b1d
add esp, 4
jmp 0x59f354
lea ecx, [esp + 0x348]
push ecx
push str.IOCTL_STORAGE_QUERY_PROPERTY_failed_for__s_n
call fcn.005c2e4e
add esp, 8
jmp 0x59f358
mov edi, 0x10
add dword [esp + 0x28], 1
cmp dword [esp + 0x310], edi
mov dword [esp + 0x3d2c], 0xffffffff
jb 0x59f66c
mov eax, dword [esp + 0x2fc]
push eax
call fcn.005a1b1d
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x59ec10
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.005bd2d7
add esp, 0x3d1c
ret