Function at 0x1003b4c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1020a518
push 0x1018d616
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x10223008]
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 0x1003b93e
cmp word [eax], 0
je 0x1003b93e
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003b93e
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1003b93e
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.1003ad40
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 0x1003b60b
movzx eax, word [ecx]
mov edx, eax
cmp word [ebp - 0x67c], ax
jne 0x1003b606
mov eax, 0x5c
mov word [ecx], ax
mov edx, eax
movzx eax, dx
jmp 0x1003b5e0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x434]
call fcn.1003ad40
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 0x1003b658
push 0xe
jmp 0x1003b940
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1003b937
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1003b937
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003b937
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x1003b937
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x640]
call fcn.1003ad40
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 0x1003b942
mov dword [ebp - 0x684], 0
xor esi, esi
mov dword [ebp - 0x694], esi
mov dword [ebp - 0x6a0], str.DeviceHarddisk
mov dword [ebp - 0x69c], 0x101e3f28
mov dword [ebp - 0x698], str.DosDevices_
xor edi, edi
mov dword [ebp - 0x684], edi
cmp edi, 3
jae 0x1003b78a
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 0x1003b742
inc edi
jmp 0x1003b705
lea eax, [ebp - 0x640]
push eax
test edi, edi
jne 0x1003b75a
lea ecx, [ebp - 0x228]
call fcn.1003ad40
jmp 0x1003b78a
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 0x101efa70
push 0x20a
lea eax, [ebp - 0x228]
push eax
call fcn.1003ad90
add esp, 0x14
test esi, esi
je 0x1003b7a0
push 0xa1
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1003b948
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 0x1003b7c9
push 0xe
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1003b948
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 0x1003b81d
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 0x1003b846
cmp eax, 0xffffffff
jne 0x1003b899
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x1003b859
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 0x1003b885
push dword [ebp - 0x678]
call eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1003b942
cmp eax, 0xffffffff
je 0x1003b942
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1003b8b4
push 0x32
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
jmp 0x1003b948
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 0x1003b942
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 0x1003b912
mov eax, dword [ebp - 0x650]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x654]
mov dword [esi + 0x14], eax
jmp 0x1003b92b
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 0x1003b942
cmp eax, 0xffffffff
je 0x1003b942
mov dword [ebp - 0x68c], 1
jmp 0x1003b942
push 0xa1
jmp 0x1003b940
push 0x57
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.1003b978
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.1018d5a4
mov esp, ebp
pop ebp
ret