Function at 0x577b20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x42c
mov ebx, dword [0x8f0708]
test ebx, ebx
je 0x578120
lea ebx, [ebp - 0x41c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0x603548
call dword [sym.imp.kernel32.dll_GetVolumeNameForVolumeMountPointW]
sub esp, 0xc
mov edi, eax
call fcn.0057d110
mov esi, dword fs:[0x18]
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x40f
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_get_volume_name__lu_n
call fcn.005744b0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x603544
call dword [0x8f0708]
mov edi, dword [esi + 0x34]
sub esp, 0x10
mov dword [ebp - 0x424], eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x414
xor eax, eax
mov dword [esp + 4], str.expected_failure_n
mov edx, dword [ebp - 0x424]
test edx, edx
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x415
xor eax, eax
cmp edi, 0x7b
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.expected_ERROR_INVALID_NAME_got__lu_n
mov dword [esp], eax
call fcn.005744b0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [0x8f0708]
mov edi, dword [esi + 0x34]
sub esp, 0x10
mov dword [ebp - 0x424], eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x41a
xor eax, eax
mov dword [esp + 4], str.expected_failure_n
mov edx, dword [ebp - 0x424]
test edx, edx
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x41b
xor eax, eax
cmp edi, 0xea
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.expected_ERROR_MORE_DATA_got__lu_n
call fcn.005744b0
lea eax, [ebp - 0x214]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x8f0708]
mov edi, dword [esi + 0x34]
sub esp, 0x10
mov dword [ebp - 0x424], eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x420
xor eax, eax
mov dword [esp + 4], str.expected_failure_n
mov edx, dword [ebp - 0x424]
test edx, edx
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x421
xor eax, eax
cmp edi, 0xea
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.expected_ERROR_MORE_DATA_got__lu_n
call fcn.005744b0
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x8f0708]
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x429
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x214]
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_get_path_names__lu_n
call fcn.005744b0
mov eax, 0xffffffff
mov ecx, 0x82
mov dword [ebp - 0x420], 0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
lea edi, [ebp - 0x420]
mov dword [esp], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
call dword [0x8f0708]
sub esp, 0x10
mov dword [ebp - 0x424], eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x42e
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.failed_to_get_path_names__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x424]
mov dword [esp], edx
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x42f
mov eax, dword [ebp - 0x420]
mov dword [esp + 4], str.expected_5_got__lu_n
cmp eax, 5
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x430
xor eax, eax
mov dword [esp + 4], str.expected_double_null_terminated_buffer_n
cmp word [ebp - 0x20c], 0
sete al
mov dword [esp], eax
call fcn.005744b0
mov ecx, 0x3f
cmp word [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
mov word [ebp - 0x41a], cx
je 0x578150
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x577ea8
sub eax, ebx
sar eax, 1
sub eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x41c], dx
lea eax, [ebp - 0x214]
mov esi, dword fs:[0x18]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x8f0708]
mov edx, dword [esi + 0x34]
sub esp, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], edx
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x438
xor eax, eax
mov dword [esp + 4], str.expected_failure_n
mov ecx, dword [ebp - 0x428]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.005744b0
call fcn.0057d110
mov edx, dword [ebp - 0x424]
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x439
xor eax, eax
cmp edx, 0x7b
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.expected_ERROR_INVALID_NAME_got__lu_n
call fcn.005744b0
lea eax, [ebp - 0x214]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0x5c
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x8f0708]
mov esi, dword [esi + 0x34]
sub esp, 0x10
mov dword [ebp - 0x424], eax
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x441
xor eax, eax
mov dword [esp + 4], str.expected_failure_n
mov edx, dword [ebp - 0x424]
test edx, edx
sete al
mov dword [esp], eax
call fcn.005744b0
mov ecx, dword [0x8f0770]
mov dword [ebp - 0x424], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x424]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x578046
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x442
xor eax, eax
cmp esi, 0x57
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.expected_ERROR_INVALID_PARAMETER_got__lu_n
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 0x578010
mov dword [ebp - 0x420], 0
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str._Volume00000000_0000_0000_0000_000000000000_]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x578068
lea eax, [ebp - 0x214]
mov edx, dword fs:[0x18]
mov dword [ebp - 0x424], edx
mov dword [edx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
call dword [0x8f0708]
mov edx, dword [ebp - 0x424]
sub esp, 0x10
mov esi, eax
mov ebx, dword [edx + 0x34]
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x449
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], 0x44a
xor eax, eax
cmp ebx, 2
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.expected_ERROR_FILE_NOT_FOUND_got__lu_n
mov dword [esp], eax
call fcn.005744b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0057d110
mov dword [eax], 0x601b57
mov dword [eax + 4], 0x40a
mov dword [esp], str.required_functions_not_found_n
call fcn.00574480
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x577eb8