Function at 0x1002a7c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10121ad8
push 0x100e1924
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x10142008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x688], esi
mov dword [ebp - 0x680], ecx
mov ecx, 0x1014614a
call fcn.100e3445
mov dword [ebp - 0x68c], 0
push 0x20a
push 0
lea eax, [ebp - 0x228]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
push 0
lea eax, [ebp - 0x434]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
push 0
lea eax, [ebp - 0x640]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 4], 0
push 0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x1002ac3f
cmp word [eax], 0
je 0x1002ac3f
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ac3f
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1002ac3f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0x680]
push ecx
lea ecx, [ebp - 0x228]
call fcn.10029e90
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x690], ecx
movzx eax, word [ecx]
mov dword [ebp - 0x67c], 0x2f
add ecx, 2
mov dword [ebp - 0x690], ecx
test ax, ax
je 0x1002a90c
movzx eax, word [ecx]
mov edx, eax
cmp word [ebp - 0x67c], ax
jne 0x1002a907
mov eax, 0x5c
mov word [ecx], ax
mov edx, eax
movzx eax, dx
jmp 0x1002a8e1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x434]
call fcn.10029e90
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMakePrettyW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov dword [esi], eax
test eax, eax
jne 0x1002a959
push 0xe
jmp 0x1002ac41
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1002ac38
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1002ac38
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1002ac38
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x1002ac38
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x640]
call fcn.10029e90
xor eax, eax
mov word [ebp - 0x224], ax
push 0x82
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1002ac43
mov dword [ebp - 0x684], 0
xor esi, esi
mov dword [ebp - 0x694], esi
mov dword [ebp - 0x6a0], str.DeviceHarddisk
mov dword [ebp - 0x69c], str.___
mov dword [ebp - 0x698], str.DosDevices_
xor edi, edi
mov dword [ebp - 0x684], edi
cmp edi, 3
jae 0x1002aa8b
mov esi, dword [ebp + edi*4 - 0x6a0]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x67c], eax
push eax
push esi
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov esi, eax
mov dword [ebp - 0x694], esi
test esi, esi
je 0x1002aa43
inc edi
jmp 0x1002aa06
lea eax, [ebp - 0x640]
push eax
test edi, edi
jne 0x1002aa5b
lea ecx, [ebp - 0x228]
call fcn.10029e90
jmp 0x1002aa8b
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov eax, dword [ebp - 0x67c]
lea ecx, [ebp - 0x434]
lea eax, [ecx + eax*2]
push eax
push 0x1010de24
push 0x20a
lea eax, [ebp - 0x228]
push eax
call fcn.10029ef0
add esp, 0x14
test esi, esi
je 0x1002aaa1
push 0xa1
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1002ac49
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov esi, dword [ebp - 0x688]
mov dword [esi + 4], eax
test eax, eax
jne 0x1002aaca
push 0xe
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1002ac49
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x678], eax
test edi, edi
je 0x1002ab1e
push str.Wow64DisableWow64FsRedirection
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x680], eax
push str.Wow64RevertWow64FsRedirection
push edi
call esi
mov dword [ebp - 0x67c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x688]
push 0
push 0x80
push 3
push 0
push 3
push 0x80
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x1002ab47
cmp eax, 0xffffffff
jne 0x1002ab9a
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x1002ab5a
lea ecx, [ebp - 0x678]
push ecx
call eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80
push dword [esi + 4]
call edi
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x67c]
test eax, eax
je 0x1002ab86
push dword [ebp - 0x678]
call eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1002ac43
cmp eax, 0xffffffff
je 0x1002ac43
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1002abb5
push 0x32
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1002ac49
push 0x34
push 0
lea eax, [ebp - 0x674]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1002ac43
mov ecx, dword [ebp - 0x674]
mov dword [esi + 0xc], ecx
mov eax, dword [ebp - 0x644]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x648]
mov dword [esi + 0x1c], eax
test ecx, 0xa00
jne 0x1002ac13
mov eax, dword [ebp - 0x650]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x654]
mov dword [esi + 0x14], eax
jmp 0x1002ac2c
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x1002ac43
cmp eax, 0xffffffff
je 0x1002ac43
mov dword [ebp - 0x68c], 1
jmp 0x1002ac43
push 0xa1
jmp 0x1002ac41
push 0x57
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.1002ac79
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100e0d24
mov esp, ebp
pop ebp
ret