Function at 0x413170
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac8
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push 0x80
mov esi, edx
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0xab8], esi
mov dword [ebp - 0xac0], ebx
call fcn.004266c0
add esp, 0xc
lea eax, [ebx + 0x38]
mov dword [ebp - 0xabc], eax
test esi, esi
je 0x4131cf
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4131c0
sub esi, ecx
sar esi, 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [ebx + 0x48]
push eax
mov dword [ebp - 0xaa0], eax
lea ebx, [esi + esi]
lea eax, [esi*2 + 0x10]
mov dword [ebp - 0xab0], ebx
push eax
mov eax, dword [edx + 4]
push ecx
call eax
mov ebx, dword [ebp - 0xac0]
add esp, 0xc
test eax, eax
jne 0x413246
test edi, edi
je 0x4135e9
mov edx, dword [edi + 4]
test edx, edx
je 0x413226
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov dword [edi], 0x1d
xor eax, eax
mov dword [edi + 4], 0x4479a8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00425576
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi]
push eax
mov eax, dword [ebp - 0xaa0]
push dword [ebp - 0xab8]
push dword [eax]
call fcn.00426ea0
mov eax, dword [ebp - 0xaa0]
add esp, 0xc
mov dword [ebx + 0x50], esi
mov esi, dword [eax]
mov eax, dword [ebp - 0xab0]
add eax, esi
mov dword [ebp - 0xab8], esi
mov dword [ebp - 0xab0], eax
push 0x400
mov dword [eax], 0x5c
lea eax, [ebp - 0xa9c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4132fd
lea eax, [ebp - 0xaa0]
push eax
push 0x104
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0xa9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4132fd
cmp word [ebp - 0x29c], 0
je 0x4132ea
push esi
lea eax, [ebp - 0x29c]
push eax
mov eax, dword [ebx]
push str._VALT___S_is_the_mount_point_for__S.
push 2
push dword [eax]
call fcn.00401210
lea ecx, [ebp - 0x29c]
jmp 0x413333
xorps xmm0, xmm0
movlpd qword [ebp - 0xac8], xmm0
mov eax, dword [ebp - 0xac4]
jmp 0x41331f
xorps xmm0, xmm0
movlpd qword [ebp - 0xac8], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xa0
cmove eax, ecx
mov ecx, eax
call fcn.0041b480
push esi
push eax
mov eax, dword [ebx]
push str._VALT__Could_not_find_mount_point_for__S.
push 3
push dword [eax]
call fcn.00419c50
mov ecx, esi
add esp, 0x14
lea eax, [ebx + 0x38]
push eax
call fcn.00412d00
add esp, 4
test eax, eax
je 0x41335e
push esi
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebx]
push str._VALT___s_will_be_used_instead_of__S.
push 2
push dword [eax]
call fcn.00401210
add esp, 0x14
push 0x40
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xaa4]
push eax
lea eax, [ebp - 0xaa8]
push eax
lea eax, [ebp - 0xaac]
push eax
push 0x105
lea eax, [ebp - 0x29c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4133e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xa0
test esi, esi
cmove esi, eax
test edi, edi
je 0x4135e9
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4133c3
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
add esp, 4
mov ecx, esi
mov dword [edi], 0x19
call fcn.0041b480
mov dword [edi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00425576
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebx]
push str._VALT___s_has_label:__S__fs:__S.
push 2
push dword [eax]
call fcn.00401210
add esp, 0x18
lea esi, [ebp - 0x8c]
mov ebx, 0x80
movsx eax, byte [esi]
push eax
call fcn.0042b0eb
add esp, 4
mov byte [esi], al
lea esi, [esi + 1]
sub ebx, 1
jne 0x413416
lea eax, [ebp - 0x8c]
cmp dword [eax], 0x74006e
jne 0x413451
cmp dword [eax + 4], 0x730066
jne 0x413451
movzx eax, word [eax + 8]
test ax, ax
jne 0x413451
lea eax, [ebx + 1]
jmp 0x4134be
lea eax, [ebp - 0x8c]
cmp dword [eax], 0x610066
jne 0x41346c
cmp dword [eax + 4], 0x74
jne 0x41346c
mov eax, 0xe
jmp 0x4134be
lea eax, [ebp - 0x8c]
cmp dword [eax], 0x610066
jne 0x413490
cmp dword [eax + 4], 0x330074
jne 0x413490
cmp dword [eax + 8], 0x32
jne 0x413490
mov eax, 0xe
jmp 0x4134be
lea eax, [ebp - 0x8c]
cmp dword [eax], 0x780065
jne 0x4135cc
cmp dword [eax + 4], 0x610066
jne 0x4135cc
cmp dword [eax + 8], 0x74
jne 0x4135cc
mov eax, 0xa
mov ecx, dword [ebp - 0xabc]
mov esi, dword [ebp - 0xac0]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0xaa4]
shr eax, 0x13
and eax, 1
mov dword [esi + 0x60], eax
jne 0x4134e9
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0xab0]
xor ecx, ecx
mov dword [ebp - 0xab4], ecx
mov dword [ebp - 0xab0], ecx
mov word [eax], cx
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [ebp - 0xabc], eax
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [ebp - 0xab4]
push eax
mov eax, dword [edx + 4]
push 0x20
push ecx
call eax
add esp, 0xc
test eax, eax
jne 0x41356d
test edi, edi
je 0x413550
mov edx, dword [edi + 4]
test edx, edx
je 0x413543
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov dword [edi], 0x1d
mov dword [edi + 4], 0x4479a8
mov dword [esi + 0x80], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00425576
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xab4]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0xab4]
movups xmmword [eax + 0x10], xmm0
mov ebx, dword [ebp - 0xab4]
test ebx, ebx
je 0x413550
mov eax, dword [ebp - 0xabc]
lea edx, [esi + 0x38]
push edi
mov ecx, ebx
mov dword [ebx], eax
call fcn.00403800
add esp, 4
test eax, eax
jne 0x4135b0
mov ecx, ebx
call fcn.00403740
jmp 0x413550
mov dword [esi + 0x80], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00425576
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xab8]
lea eax, [ebp - 0x8c]
push eax
push str.Unsupported_file_system__S_on__S.
push 0
push edi
call fcn.0041bc20
add esp, 0x14
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425576
mov esp, ebp
pop ebp
ret