Function at 0x576420
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x2a4]
sub esp, 0x2c4
movzx eax, word [0x603652]
mov byte [ebp - 0x2a2], 0
mov word [ebp - 0x2a4], ax
jmp 0x576468
movzx eax, byte [ebp - 0x2a4]
add eax, 1
mov byte [ebp - 0x2a4], al
cmp al, 0x7a
jg 0x576d60
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
sub esp, 0xc
test eax, eax
jne 0x576450
cmp byte [ebp - 0x2a4], 0x7a
jg 0x576d60
mov eax, dword [sym.imp.kernel32.dll_DefineDosDeviceA]
mov dword [esp + 8], str.C:_windows_
mov dword [esp + 4], ebx
mov dword [esp], 0
mov dword [ebp - 0x2a8], eax
call eax
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x84
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.failed_to_define_drive__s__error__lu_n
call fcn.005744b0
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x87
mov eax, dword [edi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.failed_to_query_drive__s__error__lu_n
mov dword [esp], esi
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x88
lea eax, [ebp - 0x2a0]
call fcn.00573bf0
cmp dword [ebp - 0x2a0], 0x5c3f3f5c
mov edx, eax
je 0x576d20
mov eax, 1
xor eax, 1
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.got_path__s_n
call fcn.005744b0
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_system32
mov dword [esp], eax
call fcn.00573870
lea eax, [ebp - 0x2a0]
mov dword [esp + 0x18], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
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 [ebp - 0x2ac], eax
call eax
mov edi, dword [0x8f0770]
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
mov edi, dword fs:[0x18]
jmp 0x576659
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x8d
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.got_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x576620
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], esi
mov dword [ebp - 0x2b4], eax
call eax
lea eax, [ebp - 0x2a0]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6027d1
mov dword [esp], eax
call fcn.00573870
lea eax, [ebp - 0x19c]
mov dword [esp + 8], 0x190
mov dword [esp + 4], eax
lea eax, [ebp - 0x2a0]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetVolumeNameForVolumeMountPointA]
mov dword [ebp - 0x2b0], eax
call eax
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x94
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.expected_failure_n
mov dword [esp], eax
call fcn.005744b0
mov esi, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test esi, esi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
mov esi, dword fs:[0x18]
jmp 0x57675a
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x95
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], 0x57
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x576720
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 2
mov eax, dword [ebp - 0x2a8]
call eax
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x98
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.failed_to_remove_drive__s__error__lu_n
call fcn.005744b0
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x9b
xor eax, eax
test esi, esi
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], 0x9c
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.got_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 2
sete al
mov dword [esp], eax
call fcn.005744b0
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_system32
mov dword [esp], eax
call fcn.00573870
lea eax, [ebp - 0x2a0]
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], eax
mov eax, dword [ebp - 0x2ac]
call eax
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xa1
xor eax, eax
cmp esi, 0xffffffff
sete al
mov dword [esp + 4], str.expected_failure_n
mov dword [esp], eax
call fcn.005744b0
mov esi, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test esi, esi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x57692a
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xa2
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.got_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 3
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x5768f0
mov dword [esp + 8], str.__C:windows_
mov dword [esp + 4], ebx
mov dword [esp], 1
mov eax, dword [ebp - 0x2a8]
call eax
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xa7
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.failed_to_define_drive__s__error__lu_n
call fcn.005744b0
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xaa
mov eax, dword [edi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.failed_to_query_drive__s__error__lu_n
mov dword [esp], esi
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xab
lea eax, [ebp - 0x2a0]
call fcn.00573bf0
cmp dword [ebp - 0x2a0], 0x5c3f3f5c
mov edx, eax
je 0x576ce0
mov eax, 1
xor eax, 1
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.got_path__s_n
call fcn.005744b0
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_system32
mov dword [esp], eax
call fcn.00573870
lea eax, [ebp - 0x2a0]
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], eax
mov eax, dword [ebp - 0x2ac]
call eax
mov edi, dword [0x8f0770]
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
mov edi, dword fs:[0x18]
jmp 0x576af9
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xb0
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.got_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x576ac0
mov dword [esp], esi
mov eax, dword [ebp - 0x2b4]
call eax
lea eax, [ebp - 0x2a0]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6027d1
mov dword [esp], eax
call fcn.00573870
lea eax, [ebp - 0x19c]
mov dword [esp + 8], 0x190
mov dword [esp + 4], eax
lea eax, [ebp - 0x2a0]
mov dword [esp], eax
mov eax, dword [ebp - 0x2b0]
call eax
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xb5
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.expected_failure_n
mov dword [esp], eax
call fcn.005744b0
mov esi, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test esi, esi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
mov esi, dword fs:[0x18]
jmp 0x576bf2
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xb6
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], 0x57
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x576bb8
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], 2
mov eax, dword [ebp - 0x2a8]
call eax
sub esp, 0xc
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xb9
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.failed_to_remove_drive__s__error__lu_n
call fcn.005744b0
lea eax, [ebp - 0x2a0]
mov dword [esp], ebx
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0xbc
xor eax, eax
test ebx, ebx
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], 0xbd
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], 2
sete al
mov dword [esp], eax
call fcn.005744b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x29c], 0x775c3a43
jne 0x576a0d
cmp dword [ebp - 0x298], 0x6f646e69
jne 0x576a0d
xor eax, eax
cmp dword [ebp - 0x294], 0x5c7377
jne 0x576a0d
jmp 0x576a12
cmp dword [ebp - 0x29c], 0x775c3a43
jne 0x57656c
cmp dword [ebp - 0x298], 0x6f646e69
jne 0x57656c
xor eax, eax
cmp dword [ebp - 0x294], 0x5c7377
jne 0x57656c
jmp 0x576571
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x7f
mov dword [esp], str.cant_test_creating_a_dos_drive__none_available_n
call fcn.00573f10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret