Function at 0x49cf00
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x49d145
mov edi, dword [ebp + 0x10]
test edi, edi
js 0x49d145
push ebx
call sub.msvcrt.dll__get_osfhandle
add esp, 4
cmp eax, 0xffffffff
je 0x49d05c
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x49d05c
push ebx
call sub.msvcrt.dll__telli64
add esp, 4
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x49d145
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, 9
test eax, eax
je 0x49d0e0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], ecx
sbb eax, edi
jae 0x49d0e3
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x49d063
push 2
push 0x33
call sub.msvcrt.dll_calloc
add esp, 8
mov dword [esp + 4], eax
push 2
push 0x106
call sub.msvcrt.dll_calloc
add esp, 8
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x49d06e
test eax, eax
mov edx, 9
je 0x49d0e0
mov dword [esp + 8], eax
push 0x32
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [esp + 0xc], eax
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 8], 0x105
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x4c]
je 0x49d079
push 0x32
push dword [esp + 8]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x49cfee
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push dword [esp + 4]
call sub.msvcrt.dll_free
add esp, 4
mov dword [esp + 4], 0
jmp 0x49d083
push 9
jmp 0x49d147
mov edx, 0x16
push edx
jmp 0x49d147
mov edx, 9
push edx
jmp 0x49d147
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, dword [esp + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
lea eax, [esp + 0x28]
push 0
push 0
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [esp + 8], eax
push dword [esp + 4]
call sub.msvcrt.dll_free
add esp, 4
mov edx, 0x1b
cmp dword [esp + 8], 0
je 0x49d0e0
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, edi
sbb ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x28], eax
sbb edx, ecx
mov edx, 0x1b
mov ecx, dword [ebp + 0xc]
jae 0x49d0e3
push edx
jmp 0x49d147
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
lea eax, [esp + 0x34]
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49d11c
cmp dword [esp + 0x30], 0xffffffff
je 0x49d11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x49d145
cmp eax, 0x83
jne 0x49d145
push 0x1b
jmp 0x49d147
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
je 0x49d145
push 0
push ecx
push eax
push ebx
call sub.msvcrt.dll__lseeki64
add esp, 0x10
and edx, eax
xor eax, eax
cmp edx, 0xffffffff
jne 0x49d154
push 0x16
call fcn.0060e340
add esp, 4
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret