Function at 0x1003b460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10208370
push 0x1018b766
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x10221008]
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 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 0x1003b8de
cmp word [eax], 0
je 0x1003b8de
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003b8de
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1003b8de
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.1003ace0
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
nop word [eax + eax]
add ecx, 2
mov dword [ebp - 0x690], ecx
test ax, ax
je 0x1003b5ab
movzx eax, word [ecx]
mov edx, eax
cmp word [ebp - 0x67c], ax
jne 0x1003b5a6
mov eax, 0x5c
mov word [ecx], ax
mov edx, eax
movzx eax, dx
jmp 0x1003b580
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x434]
call fcn.1003ace0
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 0x1003b5f8
push 0xe
jmp 0x1003b8e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1003b8d7
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1003b8d7
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003b8d7
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x1003b8d7
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x640]
call fcn.1003ace0
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 0x1003b8e2
mov dword [ebp - 0x684], 0
xor esi, esi
mov dword [ebp - 0x694], esi
mov dword [ebp - 0x6a0], str.DeviceHarddisk
mov dword [ebp - 0x69c], 0x101e1f28
mov dword [ebp - 0x698], str.DosDevices_
xor edi, edi
mov dword [ebp - 0x684], edi
cmp edi, 3
jae 0x1003b72a
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 0x1003b6e2
inc edi
jmp 0x1003b6a5
lea eax, [ebp - 0x640]
push eax
test edi, edi
jne 0x1003b6fa
lea ecx, [ebp - 0x228]
call fcn.1003ace0
jmp 0x1003b72a
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 0x101eda70
push 0x20a
lea eax, [ebp - 0x228]
push eax
call fcn.1003ad30
add esp, 0x14
test esi, esi
je 0x1003b740
push 0xa1
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1003b8e8
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 0x1003b769
push 0xe
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1003b8e8
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 0x1003b7bd
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 0x1003b7e6
cmp eax, 0xffffffff
jne 0x1003b839
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x1003b7f9
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 0x1003b825
push dword [ebp - 0x678]
call eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1003b8e2
cmp eax, 0xffffffff
je 0x1003b8e2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1003b854
push 0x32
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1003b8e8
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 0x1003b8e2
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 0x1003b8b2
mov eax, dword [ebp - 0x650]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x654]
mov dword [esi + 0x14], eax
jmp 0x1003b8cb
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 0x1003b8e2
cmp eax, 0xffffffff
je 0x1003b8e2
mov dword [ebp - 0x68c], 1
jmp 0x1003b8e2
push 0xa1
jmp 0x1003b8e0
push 0x57
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.1003b918
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.1018b6f4
mov esp, ebp
pop ebp
ret