Function at 0x5788d0
Capabilities:
Get disk information

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ec
mov edx, dword [0x8f0700]
test edx, edx
je 0x5796a0
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], str.C:_windows
mov dword [ebp - 0x1d0], eax
call eax
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov esi, dword fs:[0x18]
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x608
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.failed_to_open_file__error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [ebp - 0x1b0], ebx
lea ebx, [ebp - 0x198]
mov dword [esp], eax
call fcn.005744b0
lea ecx, [ebp - 0x170]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0x1a4]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x1a8]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x1ac]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], 0x14
mov dword [esp + 8], 0x14
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffff
call dword [0x8f0700]
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x60d
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.expected_failure_n
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x60e
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 6
sete al
mov dword [esp], eax
call fcn.005744b0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
call dword [0x8f0700]
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x611
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.got_error__lu_n
call fcn.005744b0
lea ecx, [ebp - 0x170]
mov dword [esp + 4], ebx
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0x1a4]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x1a8]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x1ac]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], 0x14
mov dword [esp + 8], 0x14
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
call dword [0x8f0700]
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x615
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x148]
mov dword [esp + 8], eax
mov dword [esp + 4], str.got_error__lu_n
call fcn.005744b0
xor eax, eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
xor eax, eax
lea ecx, [ebp - 0x148]
mov word [edi], ax
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x1a0]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 5
mov dword [esp + 0xc], 0x32
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
mov eax, dword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
mov dword [ebp - 0x1bc], eax
call eax
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x619
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.got_status__lx_n
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov edx, dword [ebp - 0x1a4]
mov dword [eax + 4], 0x61a
mov eax, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.expected_flags__lx__got__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov edx, dword [ebp - 0x1a8]
mov dword [eax + 4], 0x61c
mov eax, dword [ebp - 0x144]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.expected_filename_len__lu__got__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x61e
lea eax, [ebp - 0x170]
shr eax, 0x10
mov dword [ebp - 0x1cc], eax
je 0x5795d0
lea eax, [ebp - 0x170]
mov dword [esp + 4], 0xffffffff
mov esi, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x578c78
mov edx, 0xffffffff
lea eax, [ebp - 0x170]
call fcn.005739a0
mov esi, eax
lea eax, [ebp - 0x13c]
shr eax, 0x10
mov dword [ebp - 0x1c8], eax
je 0x579560
lea eax, [ebp - 0x13c]
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x578cc2
mov edx, 0xffffffff
lea eax, [ebp - 0x13c]
call fcn.005739a0
mov edi, eax
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x170]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_wcscmp]
mov dword [ebp - 0x1b8], eax
call eax
mov dword [esp + 0xc], esi
test eax, eax
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.expected_fsname__s__got__s_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x620
lea eax, [ebp - 0x170]
mov dword [esp], eax
mov dword [ebp - 0x1b4], edi
call edi
mov esi, eax
lea eax, [ebp - 0x170]
mov dword [esp], eax
call edi
mov dword [esp + 8], esi
mov edx, eax
mov dword [esp + 4], str.got__Iu_n
mov eax, dword [ebp - 0x140]
shr eax, 1
cmp eax, edx
sete al
movzx eax, al
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.005744b0
lea eax, [ebp - 0x170]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1a4]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
call dword [0x8f0700]
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x624
xor eax, eax
test edi, edi
lea edi, [ebp - 0x148]
sete al
mov dword [esp + 4], str.expected_failure_n
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x625
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x18
sete al
mov dword [esp], eax
call fcn.005744b0
xor eax, eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
xor eax, eax
lea ecx, [ebp - 0x148]
mov word [edi], ax
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x1a0]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x32
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
mov eax, dword [ebp - 0x1bc]
call eax
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x629
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.got_status__lx_n
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov edx, dword [ebp - 0x1ac]
mov dword [eax + 4], 0x62a
mov eax, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.expected_serial__08lx__got__08lx_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x62c
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x1c4], eax
je 0x5795b0
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x578f20
mov edx, 0xffffffff
mov eax, ebx
call fcn.005739a0
mov edi, eax
lea esi, [ebp - 0x136]
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x1c0], eax
je 0x579590
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x578f62
mov edx, 0xffffffff
mov eax, esi
call fcn.005739a0
mov edx, eax
mov dword [ebp - 0x1d4], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x1b8]
call eax
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x1d4]
test eax, eax
mov dword [esp + 4], str.expected_label__s__got__s_n
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x62e
mov dword [esp], ebx
mov eax, dword [ebp - 0x1b4]
call eax
mov dword [esp], ebx
mov edi, eax
mov eax, dword [ebp - 0x1b4]
call eax
mov dword [esp + 8], edi
lea edi, [ebp - 0x115]
mov edx, eax
mov dword [esp + 4], str.got__Iu_n
mov eax, dword [ebp - 0x13c]
shr eax, 1
cmp eax, edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x1d4], eax
call eax
sub esp, 4
mov dword [esp + 4], edi
mov dword [esp + 8], 0x104
mov dword [esp], 0x602250
call dword [sym.imp.kernel32.dll_GetVolumeNameForVolumeMountPointA]
sub esp, 0xc
mov dword [ebp - 0x1b0], eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x634
xor eax, eax
mov dword [esp + 4], str.GetVolumeNameForVolumeMountPointA_failed_n
cmp dword [ebp - 0x1b0], 1
sete al
mov dword [esp], eax
call fcn.005744b0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1d0]
call eax
sub esp, 0x1c
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov edx, dword fs:[0x18]
mov dword [eax + 4], 0x63a
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x1d0], edx
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 4], str.failed_to_open_file__error__lu_n
mov dword [esp], eax
call fcn.005744b0
lea eax, [ebp - 0x170]
mov dword [esp + 4], ebx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1a4]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1ac]
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x14
mov dword [ebp - 0x1b0], edi
mov dword [esp], edi
call dword [0x8f0700]
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov edx, dword [ebp - 0x1d0]
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x63e
mov eax, dword [edx + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x148]
mov dword [esp + 8], eax
mov dword [esp + 4], str.got_error__lu_n
call fcn.005744b0
xor eax, eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x148]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1a0]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x32
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x1b0]
mov dword [esp], edi
mov eax, dword [ebp - 0x1bc]
call eax
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x642
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.got_status__lx_n
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov edx, dword [ebp - 0x1ac]
mov dword [eax + 4], 0x643
mov eax, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.expected_serial__08lx__got__08lx_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x645
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x579620
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x57925d
mov edx, 0xffffffff
mov eax, ebx
call fcn.005739a0
mov edi, eax
mov eax, dword [ebp - 0x1c0]
test eax, eax
je 0x579600
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x579296
mov edx, 0xffffffff
mov eax, esi
call fcn.005739a0
mov edx, eax
mov dword [ebp - 0x1c0], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x1b8]
call eax
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x1c0]
test eax, eax
mov dword [esp + 4], str.expected_label__s__got__s_n
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x647
mov dword [esp], ebx
mov edi, dword [ebp - 0x1b4]
call edi
mov dword [esp], ebx
mov esi, eax
call edi
mov dword [esp + 8], esi
lea edi, [ebp - 0x148]
mov edx, eax
mov dword [esp + 4], str.got__Iu_n
mov eax, dword [ebp - 0x13c]
shr eax, 1
cmp eax, edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
xor eax, eax
mov ecx, 0xc
xor edx, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x148]
mov word [edi], dx
mov dword [esp + 8], eax
lea eax, [ebp - 0x1a0]
mov dword [esp + 0x10], 5
mov dword [esp + 0xc], 0x32
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
mov eax, dword [ebp - 0x1bc]
call eax
sub esp, 0x14
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x64b
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.got_status__lx_n
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov edx, dword [ebp - 0x1a4]
mov dword [eax + 4], 0x64c
mov eax, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.expected_flags__lx__got__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov edx, dword [ebp - 0x1a8]
mov dword [eax + 4], 0x64e
mov eax, dword [ebp - 0x144]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.expected_filename_len__lu__got__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov ecx, dword [ebp - 0x1cc]
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x650
test ecx, ecx
je 0x579670
lea eax, [ebp - 0x170]
mov dword [esp + 4], 0xffffffff
mov ebx, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x579467
mov edx, 0xffffffff
lea eax, [ebp - 0x170]
call fcn.005739a0
mov ebx, eax
mov eax, dword [ebp - 0x1c8]
test eax, eax
je 0x579640
lea eax, [ebp - 0x13c]
mov dword [esp + 4], 0xffffffff
mov esi, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x5794aa
mov edx, 0xffffffff
lea eax, [ebp - 0x13c]
call fcn.005739a0
mov esi, eax
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x170]
mov dword [esp], eax
mov eax, dword [ebp - 0x1b8]
call eax
mov dword [esp + 0xc], ebx
test eax, eax
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.expected_fsname__s__got__s_n
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x652
lea eax, [ebp - 0x170]
mov dword [esp], eax
mov esi, dword [ebp - 0x1b4]
call esi
mov ebx, eax
lea eax, [ebp - 0x170]
mov dword [esp], eax
call esi
mov dword [esp + 8], ebx
mov edx, eax
mov dword [esp + 4], str.got__Iu_n
mov eax, dword [ebp - 0x140]
shr eax, 1
cmp eax, edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
mov eax, dword [ebp - 0x1d4]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x1b4], eax
movzx eax, word [ebp - 0x1b4]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov edi, eax
jmp 0x578cc2
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov edx, eax
jmp 0x578f62
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov edi, eax
jmp 0x578f20
lea eax, [ebp - 0x170]
mov dword [ebp - 0x1b4], eax
movzx eax, word [ebp - 0x1b4]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov esi, eax
jmp 0x578c78
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov edx, eax
jmp 0x579296
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov edi, eax
jmp 0x57925d
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x1bc], eax
movzx eax, word [ebp - 0x1bc]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov esi, eax
jmp 0x5794aa
lea eax, [ebp - 0x170]
mov dword [ebp - 0x1bc], eax
movzx eax, word [ebp - 0x1bc]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00573bb0
mov ebx, eax
jmp 0x579467
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x602
mov dword [esp], str.GetVolumeInformationByHandleW_is_not_present._n
call fcn.00574480
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret