Function at 0x49a7b9
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 8], 0
jne 0x49a7e7
push 1
push dword [ebp + 0x1c]
push edi
push ebx
push dword [esi]
push dword [ebp + 8]
call fcn.004e5890
jmp 0x49ac6c
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x49a7f8
mov eax, 2
jmp 0x49ac6c
cmp dword [eax + 0x1c], 1
je 0x49a808
mov eax, 1
jmp 0x49ac6c
cmp dword [eax + 0xc], 0
jne 0x49ac5c
push dword [eax]
call fcn.0050ebab
push 2
push 0x566d0c
mov edx, dword [ebx + 0x40]
push dword [edx]
call fcn.0054e4e8
add esp, 0xc
test eax, eax
jne 0x49a8c2
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
push esi
push edi
mov esi, edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x5c
lea eax, [edi + 2]
push eax
call fcn.0054e1ec
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x49a8b2
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
cmp byte [edx], 0
je 0x49a8da
push 0x5c
push dword [ebp - 0x38]
call fcn.0054e1ec
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x49a8a2
inc dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov byte [ecx], 0
jmp 0x49a8da
push 0x566d10
push edi
call fcn.0054e1b0
add esp, 8
jmp 0x49a8da
push 0x566d13
push edi
call fcn.0054e1b0
add esp, 8
jmp 0x49a8da
mov eax, dword [ebx + 0x40]
mov edx, dword [eax]
xor ecx, ecx
mov cl, byte [edx]
push ecx
push str._c:_
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call sub.KERNEL32.dll_GetDriveTypeA
mov dword [ebp - 0x34], eax
cmp dword [ebx + 0x10], 0
je 0x49abf2
push 0x2e
push dword [ebx]
call fcn.0054e574
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x49abf2
cmp dword [ebp - 0x34], 1
jbe 0x49ac5c
push str..label
push dword [ebp - 0x38]
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x49a947
push 0x3e7
push dword [ebp + 0x1c]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x3e7
push dword [ebp + 0x14]
push edi
call sub.KERNEL32.dll_GetVolumeInformationA
jmp 0x49ac5c
push str..unc
push dword [ebp - 0x38]
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x49a99a
push edi
push dword [ebp + 0x1c]
call fcn.00519b50
test eax, eax
je 0x49ac5c
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
push esi
mov esi, eax
mov edi, edx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49ac5c
push str..free
push dword [ebp - 0x38]
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x49aa6c
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp dword [0x55efe0], 0
jne 0x49a9d0
push 0x566d31
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x55efe0], eax
mov eax, dword [0x55efe0]
test eax, eax
je 0x49aa11
push 0x566d3f
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x49aa11
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push edi
call eax
test eax, eax
je 0x49aa11
push dword [ebp - 4]
push dword [ebp - 8]
push 0x566d54
push dword [ebp + 0x14]
call fcn.00553044
add esp, 0x10
mov ecx, dword [ebp + 0x14]
cmp byte [ecx], 0
jne 0x49ac5c
mov eax, dword [ebp + 0x14]
push esi
push edi
mov esi, 0x566d5c
mov edi, eax
mov eax, edi
movsw word es:[edi], word [esi]
pop edi
pop esi
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push edx
push edi
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x49ac5c
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x20]
imul dword [ebp - 0x24]
push eax
push 0x566d5f
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x49ac5c
push 0x566d64
push dword [ebp - 0x38]
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x49ab3e
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
cmp dword [0x55efe0], 0
jne 0x49aaa2
push 0x566d6b
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x55efe0], eax
mov eax, dword [0x55efe0]
test eax, eax
je 0x49aae3
push str.GetDiskFreeSpaceExA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x49aae3
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push edi
call eax
test eax, eax
je 0x49aae3
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x566d8e
push dword [ebp + 0x14]
call fcn.00553044
add esp, 0x10
mov ecx, dword [ebp + 0x14]
cmp byte [ecx], 0
jne 0x49ac5c
mov eax, dword [ebp + 0x14]
push esi
push edi
mov esi, 0x566d96
mov edi, eax
mov eax, edi
movsw word es:[edi], word [esi]
pop edi
pop esi
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push edx
push edi
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x49ac5c
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x20]
imul dword [ebp - 0x28]
push eax
push 0x566d99
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x49ac5c
push 0x566d9e
push dword [ebp - 0x38]
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x49ac5c
cmp dword [ebp - 0x34], 2
jne 0x49ab73
mov edx, dword [ebp + 0x14]
push esi
mov esi, str.removable
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x49ac5c
cmp dword [ebp - 0x34], 3
jne 0x49ab8f
mov edx, dword [ebp + 0x14]
push esi
mov esi, str.fixed
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x49ac5c
cmp dword [ebp - 0x34], 4
jne 0x49abac
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x566db7
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49ac5c
cmp dword [ebp - 0x34], 5
jne 0x49abc8
mov edx, dword [ebp + 0x14]
push esi
mov esi, str.cdrom
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x49ac5c
cmp dword [ebp - 0x34], 6
jne 0x49abe0
mov edx, dword [ebp + 0x14]
push esi
mov esi, str.ramdisk
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x49ac5c
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x566dcf
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x49ac5c
cmp dword [ebp - 0x34], 1
ja 0x49ac0c
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x566dd8
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49ac5c
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push edx
push edi
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x49ac39
mov ecx, dword [ebp + 0x14]
push esi
mov esi, 0x566de0
mov edi, ecx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x49ac5c
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x566de7
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49ac5c
push dword [ebx + 0x40]
push dword [esi]
call fcn.004c6c7e
mov dword [esi], eax
dec dword [ebx + 8]
cmp dword [ebx + 8], 0
jg 0x49ac4d
xor edx, edx
mov dword [ebx + 8], edx
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18